Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

milestone

БесплатноБез исполняемых скриптовНе проверен

Drive implementation forward incrementally with automatic progress tracking, LOC monitoring, and milestone checkpoint creation

Synthesys-Labот Synthesys-Lab★ 71 звезда на GitHub17 установок в других каталогах

Об этом скилле

Milestone Skill

This skill instructs AI agents on how to drive implementation forward incrementally, tracking LOC count, running tests, and creating milestone checkpoints when the 800 LOC threshold is reached without completion.

Skill Purpose

The milestone skill enables AI agents to implement large features step-by-step in manageable increments. It:

  • Implements incrementally: Works in chunks of 100-200 LOC per iteration
  • Tracks progress: Monitors total LOC count across the session
  • Runs tests continuously: Executes tests after each implementation chunk
  • Creates checkpoints: Generates milestone documents at 800 LOC threshold
  • Signals completion: Returns success when all tests pass

This skill is the core implementation driver used by /issue-to-impl and /miles2miles commands.

Philosophy

  • Incremental progress over big bang: Small, testable chunks beat large rewrites
  • Test-driven validation: Run tests frequently to catch issues early
  • Transparent checkpoints: Milestone documents provide clear progress visibility
  • Fail-fast on errors: Stop and create milestone when blocked rather than pushing forward blindly
  • LOC-based pacing: Use lines of code (not time) to determine when to checkpoint

Inputs

The milestone skill takes the following inputs (extracted from context):

  1. Current branch context

    • Branch name (extracted from: git branch --show-current)
    • Must be a development branch matching pattern: issue-{N}-{brief-title}
    • Issue number extracted from branch name
  2. Plan reference

    • First invocation: Read plan from GitHub issue using gh issue view {N}
    • Resume invocation: Read from latest milestone document in .milestones/issue-{N}-milestone-*.md
    • Plan contains: implementation steps, file changes, LOC estimates, test strategy
  3. Starting LOC count (optional, for resume scenarios)

    • When resuming from a milestone, start from the LOC count in that milestone
    • When starting fresh (first milestone), start from 0
  4. Current test status (determined by running tests)

    • Total test count
    • Passed test count
    • Failed test count (with failure details)

LOC Tracking Mechanism

The AI agent MUST track LOC count accurately to determine when to create milestones.

How to Track LOC

Use git diff --stat to measure code changes:

# Get stats for uncommitted changes
git diff --stat

# Example output:
#  claude/skills/milestone/SKILL.md | 156 ++++++++++++++++++++++++++++++++++++++
#  docs/milestone-workflow.md       | 187 ++++++++++++++++++++++++++++++++++++++++++
#  2 files changed, 343 insertions(+)

LOC Calculation

Extract the total LOC count from the summary line:

  • Pattern: X files changed, Y insertions(+), Z deletions(-)
  • Total LOC = Y (insertions) + Z (deletions)
  • Example: 343 insertions(+), 25 deletions(-) → Total LOC = 368

Accumulation Across Chunks

CRITICAL: Track cumulative LOC across multiple implementation chunks:

# Pseudocode for LOC tracking
cumulative_loc = starting_loc  # From milestone or 0
while not all_tests_pass:
    implement_next_chunk()  # Implement 100-200 LOC
    current_chunk_loc = get_git_diff_stat()
    cumulative_loc += current_chunk_loc

    run_tests()
    test_status = parse_test_results()

    # Check stopping condition
    if cumulative_loc >= 800 and not all_tests_pass:
        create_milestone(cumulative_loc, test_status)
        stop_and_inform_user()
        break

    if all_tests_pass:
        signal_completion()
        break

Stop Threshold

  • Stop when: cumulative_loc >= 800 AND tests are not all passing
  • Continue if: cumulative_loc < 800 OR all tests pass (nearing completion)
  • Exception: If very close to completion (> 750 LOC and > 90% tests pass), continue to finish

Implementation Loop

The AI agent MUST follow this implementation loop:

1. Read Plan or Milestone Context

First invocation (from issue):

gh issue view {issue-number} --json body --jq '.body'
  • Extract "Proposed Solution" section (contains the plan)
  • Identify implementation steps from the plan
  • Note files to modify/create with LOC estimates

Resume invocation (from milestone):

# Find latest milestone
ls -1 .milestones/issue-{N}-milestone-*.md | sort -V | tail -n 1
  • Read the latest milestone file
  • Extract "Work Remaining" section
  • Extract "Next File Changes" section
  • Extract "Test Status" to understand current state

2. Determine Next Work

From the plan or milestone:

  • Identify the next incomplete implementation step
  • Determine which files need changes
  • Understand what to implement in the next chunk

Chunk size guideline: Aim for 100-200 LOC per chunk

  • If a step is > 200 LOC, break it into substeps
  • Implement one substep per iteration

3. Implement the Chunk

Implement the next logical piece of functionality:

Age
Полный SKILL.md на GitHub

Установить milestone в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл milestone?

Drive implementation forward incrementally with automatic progress tracking, LOC monitoring, and milestone checkpoint creation

Как установить скилл milestone?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл milestone запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить milestone с