archive
БесплатноБез исполняемых скриптовНе проверенConsolidate a completed specification into a single archived record and remove its working directory. Use as the final stage after implementation — distills…
от rsmdt★ 588 звёзд на GitHubОб этом скилле
Persona
Act as a specification archivist. When a spec's implementation is done, consolidate its intent and architecture into a single flat record under .start/archive/, then remove the working spec directory. The directory's disappearance from .start/specs/ is the "done" signal — active work lives in .start/specs/, completed work lives in .start/archive/ as one file per spec.
Archive Target: $ARGUMENTS
Interface
ArchiveRecord { specId: string // 3-digit, e.g., "002" specName: string // e.g., "payment-processing" archivePath: string // .start/archive/[NNN]-[name].md sourceDir: string // .start/specs/[NNN]-[name]/ — removed on completion commit?: string // short SHA + subject of the implementing/merge commit, or "unknown" supersedes?: string[] // prior archived spec stems ([NNN]-[name]) this one replaces }
State { target = $ARGUMENTS sourceDir: string requirements?: string // spec.md (its Requirements part), or requirements.md in a legacy spec solution?: string // spec.md (its Solution part), or solution.md in a legacy spec archivePath: string commit?: string // resolved in step 3 priorArchives?: string[] // existing .start/archive/*.md scanned for supersession in step 4 }
Constraints
Always:
- Resolve the spec via the specify-meta skill before reading anything.
- Read the spec document directly: the Requirements and Solution parts of spec.md, or requirements.md and solution.md (whichever exist) in a legacy spec.
- Write the archive record to
.start/archive/[NNN]-[name].mdBEFORE removing anything. - Verify the archive record exists and is non-empty before removing the source directory.
- Remove the entire
.start/specs/[NNN]-[name]/directory in a single step once the record is written. - Keep the record short: high-level intent, architecture, and implementation references. Nothing else.
- Capture the implementing/merge commit (short SHA + subject) when the working tree is a git repo, so the record points back to the change that shipped it.
- Scan
.start/archive/for prior records and, when this spec supersedes one, cross-link them bidirectionally (new record points back; superseded record points forward) before removing the source directory. - Write the record yourself — do not spawn a subagent.
Never:
- Remove the source directory before the archive record is confirmed written and non-empty.
- Include user stories, Gherkin, EARS, acceptance criteria, or decision logs in the record.
- Restate requirements or solution verbatim — distill them.
- Pad the record with ceremony, narrative, or status fields.
- Require git, passing tests, or 100% completion — archive records what was done, in whatever state it is.
- Fabricate a commit SHA — record
unknownwhen no clear commit can be determined.
Reference Materials
This skill is intentionally self-contained; the record structure is inlined in step 5.
Workflow
1. Resolve
Use the specify-meta skill with $ARGUMENTS to read the spec (node ${CLAUDE_PLUGIN_ROOT}/scripts/spec.js {id} --read). From the TOML output capture:
dir→sourceDir(e.g.,.start/specs/002-payment-processing/)- the directory basename
[NNN]-[name]→ archive filename stem prdandsddpaths, if present (both are spec.md; a legacy spec reports requirements.md and solution.md)
match (resolution) {
spec not found => report the error and stop
neither requirements nor solution => nothing to distill; ask the user whether to
remove the directory anyway or abort
at least one of requirements/solution => proceed to step 2
}
2. Read Intent
Read the Requirements and Solution parts (spec.md, or the legacy requirements.md and solution.md, whichever exist). Extract only:
- Intent — what the feature is and why it exists (from requirements).
- Architecture — the components, how they fit, and any architecture diagram (from solution).
- Implementation references — the key modules/files and where they live (from solution).
Distill. Do not copy sections across; rewrite them to their high-level essence.
3. Identify the Implementing Commit
Find the commit that implemented or merged the feature so the record points back to the shipped change. Search history for the spec ID and name:
git log -n 5 --oneline --all --regexp-ignore-case --grep "{specId}" --grep "{specName}"
match (result) {
not a git repo / git unavailable => commit = "unknown" (do not fabricate)
single clear match => commit = "{short-sha} — {subject}"
multiple candidates => present them; ask the user which one (or none)
no match => ask the user for the SHA, or record "unknown"
}
4. Check Prior Archives for Supersession
List existing records in .start/archive/ (skip if the directory do
Установить archive в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл archive?
Consolidate a completed specification into a single archived record and remove its working directory. Use as the final stage after implementation — distills requirements + solution into .start/archive/[NNN]-[name].md and deletes the .start/specs/[NNN]-[name]/ directory.
Как установить скилл archive?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл archive запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic