npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

spec-runner

v1.1.7

Published

フェーズ駆動で設計先行を強制。npx で .spec-runner を展開し、次のステップ .md に従って進める

Readme

spec-runner

フェーズ駆動で設計を飛ばさないようにする仕組み。npx spec-runner でプロジェクトに .spec-runner/ を入れ、次のステップ を 1 本だけ返すコマンドに従って進める。


インストール

npx spec-runner

または:

curl -sSL https://raw.githubusercontent.com/TEEE88/spec-runner/main/install.sh | bash

いずれも、プロジェクト直下に .spec-runner/ ができる。

あわせて、未有効時のみプロジェクトルートに次が配置される(Material for MkDocs で docs/ 配下の設計書をプレビューするため)。

  • mkdocs.yml / requirements-docs.txt
  • docs/index.md(サイトのホーム)

.spec-runner/ がすでにあり 2 回目以降はエラーで止まる 場合も、その手前で上記 MkDocs 用ファイルの不足分だけ補完される(初回導入以前のリポジトリで MkDocs だけ足したいときに便利)。


使い方

  1. プロジェクトルートで次を実行する。

    ./.spec-runner/spec-runner.sh 次のステップ --json
  2. 出力の command_file に書いてある .spec-runner/steps/*.md を開き、その指示に従って作業する。

  3. 作業が終わったら、再度 1 を実行する。次のステップが返る。

AI から使う場合は、/spec-runner のように「spec-runner を実行する」と伝えればよい。フェーズやコマンド名を覚える必要はない。

Git: フェーズごとにブランチを切る必要はない。コミットしたくなったときに、AI と project.json の命名に沿ってブランチ名・メッセージを相談し、一緒にコミットする運用でよい(詳細は同梱の docs/flow.md.spec-runner/steps/仕様策定.md)。


フロー(全体像)

設計書(docs/01..06)と UC 仕様(docs/02_ユースケース仕様/)をどんな順で作っていくかは docs/flow.md にまとめています。

Skills テンプレート(任意)

  • templates/skills/uc-k1-work-card-init/SKILL.mddocs/work.md 初期化)
  • templates/skills/uc-k2-pre-commit-check/SKILL.md(コミット前チェック案内)
  • templates/skills/uc-k3-spec-impl-diff-review/SKILL.md(仕様-実装差分レビュー)
  • npx spec-runner 実行時に、不足分のみ .claude/skills/ へ自動コピーされます(既存ファイルは上書きしない)。

ドキュメントサイト(MkDocs + Material)

npx spec-runner したプロジェクト側

憲章・設計書は steps.json どおり docs/01_憲章/docs/06_API仕様/ に置かれる。mkdocs.ymldocs/ がそのままサイトの文書ルートになるので、追加コピーなしでこれらの Markdown をナビに載せられる(nav で先頭に固定した index.md の後ろへ、残りのページが自動で続く)。

プレビュー起動(Python 3 必須・仮想環境 .venv-docs/ を使用):

python3 -m venv .venv-docs && ./.venv-docs/bin/pip install -q -r requirements-docs.txt && ./.venv-docs/bin/mkdocs serve --dev-addr 127.0.0.1:8000

8000 が使用中のとき:

python3 -m venv .venv-docs && ./.venv-docs/bin/pip install -q -r requirements-docs.txt && ./.venv-docs/bin/mkdocs serve --dev-addr 127.0.0.1:8001

導入後にできるもの

<プロジェクトルート>/
├── .spec-runner/
│   ├── spec-runner.sh          # 入口(次のステップ --json)
│   ├── project.json            # 設定(ブランチ命名・必須ドキュメント・テストコマンド等)
│   ├── phase-locks.json        # フェーズの通過状態
│   ├── scripts/                # spec-runner-core.sh, check, branch 等
│   ├── steps/                  # 憲章・ドメイン設計・仕様策定・曖昧さ解消・テスト設計・実装 等の .md
│   └── templates/              # UC 仕様書ひな形
├── .claude/commands/spec-runner.md   # Claude 用コマンド定義(/spec-runner)
├── .claude/skills/                   # Skills テンプレート(不足分のみ自動配置)
├── mkdocs.yml                 # MkDocs(未有効時のみ配置)
├── requirements-docs.txt      # mkdocs / mkdocs-material(未有効時のみ配置)
├── docs/                      # 設計書(01..06)+ work.md + index.md 等。MkDocs の文書ルート
└── (AI は Claude Code 前提)

必要環境

  • Node.js 16+
  • jq
  • git
  • bash 4.0+
  • 設計書の MkDocs プレビュー: Python 3(venv + mkdocs コマンドを直接実行)

上書きインストール

すでに .spec-runner/ があるときは上書きしない。上書きしたい場合:

SPEC_RUNNER_FORCE=1 npx spec-runner

バージョン運用ルール

  • このリポジトリでは、今後 コミットごとに package.jsonversion を更新する。
  • バージョンは原則として SemVer に従い、迷う場合はパッチ(x.y.Z)を 1 つ上げる。
  • 1コミット内で複数の変更をまとめた場合も、コミット単位で 1 回だけ更新する。

ライセンス

MIT