claude-looper: Command for Claude Code

.claude/commands/gen-milestones.md

gen-milestones is a command for Claude Code from jujunjun110/claude-looper. It costs 0 tokens per session (2,294 once invoked), scanned A, original, MIT.

A command that creates a milestone list from a design document. A milestone is a major project goal describing a working state, rather than a detailed list of small tasks.

In plain words
What is it for?
Use it to read project documentation, define milestone outcomes, archive an existing milestone file, and generate a new milestones file for an automated work loop.
Why use it?
It turns an approved design into a sequence of larger delivery goals without prematurely breaking the work into implementation tasks.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is jujunjun110/claude-looper's own configuration. It tells Claude Code how to work on claude-looper itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-looper configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jujunjun110/claude-looper. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jujunjun110/claude-looper/main/.claude/commands/gen-milestones.md
Clone the repo
git clone --depth 1 https://github.com/jujunjun110/claude-looper

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gen-milestones

README.md
[![agentmods](https://agentmods.dev/badge/commands/jujunjun110/claude-looper/gen-milestones/github.svg)](https://agentmods.dev/commands/jujunjun110/claude-looper/gen-milestones)
Your own site
<a href="https://agentmods.dev/commands/jujunjun110/claude-looper/gen-milestones"><img src="https://agentmods.dev/badge/commands/jujunjun110/claude-looper/gen-milestones/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gen-milestones

Your own site · 80×15
<a href="https://agentmods.dev/commands/jujunjun110/claude-looper/gen-milestones"><img src="https://agentmods.dev/badge/commands/jujunjun110/claude-looper/gen-milestones.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,294 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02294
Opus 5 $0.00000 $0.01147
Sonnet 5 $0.00000 $0.00459
Haiku 4.5 $0.00000 $0.00229

Measured today against content hash a69c18c32b00, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

gen-milestones scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/gen-milestones.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

あなたはプロジェクトの Milestone 設計者です。

やること

ユーザーから与えられたドキュメントを読み、プロジェクトの Milestone 一覧を設計する。 各 Milestone のゴール(何が動く状態になるか)を定義する。 Task の細分化は Milestone 着手時に計画セッションが行うため、ここでは Milestone レベルの設計のみ行う。

前提: 設計ドキュメント

このコマンドの引数としてドキュメントのパスが与えられることを期待する。 引数がない場合、または指定されたファイルが存在しない場合は、以下のメッセージを返して終了する:

設計ドキュメントのパスを指定してください。 ドキュメントがまだない場合は /plan コマンドで作成し、そのパスを引数に指定してください。

例: /gen-milestones docs/application-overview.md

手順

  1. 引数で指定されたドキュメントを読む
  2. docs/ 配下のドキュメントを読む
  3. CLAUDE.md を読む
  4. looper/run.sh を読み、milestones.json がどのように消費されるかを理解する
  5. 既存コードがあれば Glob/Grep で現状を把握する
  6. 既存の looper/milestones.json があればアーカイブする(後述)
  7. Milestone を設計する
  8. looper/milestones.json を出力する
  9. git add looper/milestones*.json && git commit -m "chore: generate milestones"

アーカイブ

looper/milestones.json が既に存在する場合、新しい milestones.json を生成する前にリネームしてアーカイブする:

mv looper/milestones.json "looper/milestones.$(date +%Y%m%d_%H%M%S).json"

これにより過去の Milestone 履歴が保持される。アーカイブ済みファイルは run.sh からは参照されない。

出力フォーマット

唯一の成果物は looper/milestones.json。

{
  "source": "docs/tasks/YYYYMMDD_HHMM_設計ドキュメント名.md",
  "milestones": [
    {
      "milestone": 1,
      "goal": "何が動く状態になるか(1文、具体的に)",
      "verification": "pnpm lint && pnpm typecheck && pnpm build",
      "done": false,
      "tasks": []
    },
    {
      "milestone": 2,
      "goal": "...",
      "verification": "pnpm test && pnpm lint && pnpm typecheck",
      "done": false,
      "tasks": []
    }
  ]
}
フィールド 説明
source string 元の設計ドキュメントのパス(引数で渡されたファイル)
milestones[].milestone number Milestone 番号(1 始まり、昇順)
milestones[].goal string この Milestone が完了したとき何が動く状態か(1文、具体的に)
milestones[].verification string Milestone 完了時の通過条件コマンド
milestones[].done boolean 常に false(ループが更新する)
milestones[].tasks array 常に空配列(Milestone 着手時に計画セッションが生成する)

Read the full file on GitHub · 144 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 144 lines · 0 tokens per session scan A a69c18c32b00

Subscribe to this mod's changes

gen-milestones is a command published in the GitHub repository jujunjun110/claude-looper (34 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,294 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.