close-milestone
БесплатноБез исполняемых скриптовНе проверенTerminal gate that validates loop-closure (hotfix/investigation re-evaluation), mechanically re-validates all milestone artifacts, and produces a single…
от bparlan★ 44 звезды на GitHubОб этом скилле
Close Milestone: Terminal Gate & Closure Artifact Generator
You are the terminal gatekeeper for the Spec-Driven Development (SDD) pipeline. You are invoked AFTER review-implementation — and after investigate-issue/hotfix-issue if either ran for this milestone. Your job is to refuse closure if the milestone's fix chain is unverified, then mechanically re-validate all artifacts, and finally produce the single authoritative closure artifact that chains the full lineage.
Core Mandate — The Loop-Closure Gate
If this milestone ever routed through investigate-issue or hotfix-issue, the resulting fixes MUST have been re-verified through evaluate-implementation and review-implementation before closure can proceed. You must detect whether this happened; if it didn't, you must refuse closure and state exactly why.
Step 1 — Loop-Closure Investigation (the routing audit)
Scan all artifacts in milestones/M{X}/ for investigation and hotfix reports:
# Find all investigation reports for this milestone
ls milestones/M{X}/M{X}*I*.md 2>/dev/null || true
# Find all hotfix reports for this milestone
ls milestones/M{X}/M{X}*H*.md 2>/dev/null || true
If any investigation or hotfix reports exist, you must verify loop-closure:
- Check whether the milestone has evaluation reports (
M{X}S{Y}E.md) and review reports (M{X}S{Y}R.md) with timestamps later than the latest investigation or hotfix report. - Check whether any evaluation/review report's
derived_fromfield references the investigation or hotfix ID (e.g.,INV-{N}orHOT-{N}). - For the simplest check: compare modification timestamps (mtime) of the latest hotfix vs the latest post-hotfix evaluation and review reports.
Loop-Closure Validation Rules
| Condition | Result |
|---|---|
| No investigation/hotfix reports exist | Loop-closure check passes — no fixes happened |
| Investigation/hotfix reports exist AND a newer evaluation AND a newer review report exist | Loop-closure check passes — fixes were re-evaluated and re-reviewed |
| Investigation/hotfix reports exist but NO newer evaluation exists | REFUSE CLOSURE — fixes were never re-evaluated |
| Investigation/hotfix reports exist and a newer evaluation exists but NO newer review exists | REFUSE CLOSURE — fixes were evaluated but never re-reviewed |
Investigation/hotfix reports exist and newer evaluation + review exist, but their derived_from doesn't reference the fix |
Loop-closure check may still pass if timestamps confirm the chain. Log a warning but do not block — the derived_from chain may be implicit. |
When closure is refused, emit:
#NEEDS-CLARIFICATION: Loop-closure failure for milestone M{X}
Reason: [investigation/hotfix reports] exist for this milestone but
[no post-fix evaluation / no post-fix review / neither] was found.
Latest investigation/hotfix: [filename] ([mtime])
Latest evaluation: [filename] ([mtime] or "none")
Latest review: [filename] ([mtime] or "none")
The following must happen before this milestone can be closed:
1. Run /evaluate-implementation against the hotfixed codebase
2. Run /review-implementation against the re-evaluated results
Exit immediately with EXIT_CODE=1.
Step 2 — Mechanical Re-Validation
If the loop-closure gate passes, run these structural checks on every artifact this milestone produced. These are the same mechanical checks review-implementation's Step 5b performs, plus additional closure-level validation.
2a. Lint Evaluation Gate
python3 ~/devcode/aef/agent/bin/lint-evaluation-gate.py --milestone M{X} 2>&1 || REPORT_06_FAILED=true
If REPORT_06_FAILED is true, record the failure but do not abort — this is non-blocking diagnostic data for the closure artifact.
2b. Duplicate-ID / Schema Check (AUDIT-001 Part A style)
Verify that no two artifacts under milestones/M{X}/ share the same id field, a
Установить close-milestone в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
readbashglobwritegrepВложенные файлы
FAQ
Что делает скилл close-milestone?
Terminal gate that validates loop-closure (hotfix/investigation re-evaluation), mechanically re-validates all milestone artifacts, and produces a single authoritative lineage-traced closure artifact. Invoked after review-implementation (and after investigate-issue/hotfix-issue if they ran).
Как установить скилл close-milestone?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл close-milestone запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub