adapters
無料Skill for the Adapters area of paddock. 108 symbols across 22 files.
日本語の概要は準備中です。原文の説明を表示しています。
Archive merged feature specs into project memory with provenance, sweep discovery, and gated cleanup
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Act as the Chief Software Architect, Documentation Maintainer, and release provenance auditor.
Your goal is to archive merged feature specifications into durable project memory while preserving enough provenance to recover raw spec artifacts from git later. This command also supports Archive Sweep mode, which identifies previously merged feature specs before a new SpecKit run starts.
$ARGUMENTS
You MUST consider the user input before proceeding.
Parse $ARGUMENTS as shell-like tokens. Supported forms:
speckit.archive.run specs/###-feature-name [scope] [provenance] [mode]
speckit.archive.run --sweep --current-target specs/###-current-feature [provenance] [mode]
specs/007-invoice-settings.--sweep mode, no positional feature directory is required.If none are provided, update all archival artifacts.
--spec-only: update only .specify/memory/spec.md--plan-only: update only .specify/memory/plan.md--changelog-only: update only .specify/memory/changelog.md--agent-only: update only the agent knowledge file
(GEMINI.md, AGENTS.md, or CLAUDE.md)--dry-run: do not modify files; produce the same eligibility, provenance,
and cleanup report that an apply run would use.--apply: apply memory archival edits. This is the default for a single
feature archive unless --dry-run is present.--sweep: discover previously merged feature specs and report archive and
cleanup eligibility before any new spec work begins.--apply-cleanup: after successful archival, remove or move completed spec
folders out of active specs/** only if every cleanup gate passes.--current-target <path>: active feature spec for the current run. Archive
Sweep MUST exclude this path from archival and cleanup.Capture these in the archival report when provided:
--pr-url <url>--merge-sha <sha>--tree-sha <sha>--ci-url <url>--argos-url <url>--metadata-gate <name=pass|fail|warning>--artifact-manifest <path-or-url>If $ARGUMENTS is empty, output:
ERROR: No feature spec directory or --sweep mode provided.
Usage: /speckit.archive.run specs/###-feature-name [--dry-run] [--apply-cleanup]
or: /speckit.archive.run --sweep --current-target specs/###-current-feature --dry-run
Then stop without modifying files.
This command MUST NOT create a spec graveyard and MUST NOT destroy provenance.
Never delete, move, or otherwise remove active specs/** content unless all of
these are true:
--apply-cleanup.--current-target.git show <merge-sha>:specs/<feature>/spec.mdmain, unless the project constitution explicitly names another cleanup
branch.main.If any cleanup gate fails, set safeToApplyCleanup=false, set
dryRunProvenanceOnly=true, do not remove source files, and explain the failed
gate in the report.
Archive Sweep MUST exclude --current-target from archival and cleanup in the
same run. If a target path equals the current target, report it under
excludedCurrentSpec and take no action against it.
Generated screenshots are review artifacts, not default durable archive payload. Preserve Argos/CI provenance, artifact manifest links, hashes, retention classification, redaction status, and expiration risk when available. Do not require large generated screenshots to be committed into the archive.
Run .specify/scripts/bash/check-prerequisites.sh --json --paths-only to identify repository paths. This script is mandatory for path
discovery when available. If the script is missing, stop and explain the missing
script unless the user explicitly supplied enough absolute paths to proceed.
Derive absolute paths for:
REPO_ROOTFEATURE_DIR when not in --sweep modeMEMORY_DIR (REPO_ROOT / .specify/memory)TEMPLATES_DIR (REPO_ROOT / .specify/templates)Feature specs live in specs/{###-feature-name}/ at repo root. Use absolute
paths in all reports.
Record:
git status --short--dry-run, --apply, or --apply-cleanupThis evidence is required even when no cleanup is attempted.
For a single feature archive, verify FEATURE_DIR exists and contains:
spec.md (required)plan.md (required)If required files are missing, output a clear error and stop without modifying files.
Note whether these exist:
tasks.mdresearch.mddata-model.mdcontracts/checklists/quickstart.mdIf applying archival edits and .specify/memory does not exist, create it. If
memory files are missing, bootstrap them from templates when possible. In
--dry-run, report what would be bootstrapped without creating files.
Read .specify/memory/constitution.md when present. Constitution MUST rules are
non-negotiable. Any archival content that conflicts with the constitution is a
CRITICAL blocker and must not be merged silently.
Read REPO_ROOT/.specify/extensions.yml when present. For
hooks.before_archive and hooks.after_archive, list executable enabled hooks.
Do not evaluate non-empty hook conditions; skip conditional hooks and report
that they were skipped.
Run this step when --sweep is present. Also run it before a single-feature
archive if the command is being used as a pre-autopilot cleanup pass.
specs/* feature directories.--current-target exactly.eligibleForArchivearchiveAlreadyRecordedeligibleForCleanupsafeToApplyCleanupdryRunProvenanceOnly--apply or --apply-cleanup is
explicitly supplied and all gates pass.If a spec cannot be proven merged, keep it in active specs and report the missing evidence.
For each feature being archived, read and extract:
From spec.md:
From plan.md:
From optional artifacts:
data-model.md: models, relationships, validation rulesresearch.md: decisions, trade-offs, known issuestasks.md: completed and total task countscontracts/: API/CLI contractschecklists/: quality gates and remaining gapsBefore merging, check:
If conflicts or gaps exist, list them with recommended resolution. CRITICAL constitution conflicts block archival edits.
Ask at most five questions only when human judgment materially changes scope or correctness. Skip this step if defaults are clear. Do not ask questions for basic safety gates; apply the mandatory safety model instead.
Before applying edits, produce an impact map:
### Impact Map
| Artifact | Sections Affected | Change Type |
|----------|------------------|-------------|
| `.specify/memory/spec.md` | User Stories, FRs, Entities | Append/Update |
| `.specify/memory/plan.md` | Dependencies, Structure, Testing | Append/Update |
| `.specify/memory/changelog.md` | Merged Features Log | Append |
| `AGENTS.md` | Recent Changes, Gotchas | Append/Update |
| `specs/###-feature-name` | Cleanup Eligibility | Report/Remove only if gated |
In --dry-run, stop after producing the impact map and archival report unless
the user explicitly asked for a full simulated report.
Apply edits only when not in --dry-run.
[Source: specs/###-feature-name] traceability tags.Update .specify/memory/spec.md with user stories, requirements, entities,
edge cases, data flow, and success criteria.
Update .specify/memory/plan.md with dependencies, project structure,
configuration, routing, and testing strategy. Remove completed items from
future-work sections only when the implementation evidence proves completion.
Update the first existing agent file in this order: GEMINI.md, AGENTS.md,
CLAUDE.md. Record active technologies, project structure, commands, recent
changes, and gotchas extracted from research.md.
Create or update .specify/memory/changelog.md with:
In the feature's own spec.md and plan.md, change **Status**: Draft to
**Status**: Completed only when archival edits succeeded. Do not change other
status values.
If --apply-cleanup is absent, report cleanup recommendations only.
If --apply-cleanup is present and every cleanup gate passes:
specs/**
according to project policy.If any gate fails, do not remove files. Report safeToApplyCleanup=false.
Output a structured report with absolute paths:
# Archival Report
## Mode
- archiveMode: single-feature | sweep
- dryRun: true | false
- applyCleanupRequested: true | false
- dryRunProvenanceOnly: true | false
- safeToApplyCleanup: true | false
## Sweep Summary
| Spec | Eligibility | Cleanup Mode | Reason |
|------|-------------|--------------|--------|
## Excluded Current Spec
`specs/###-current-feature` or `None`
## Provenance
- Source spec path:
- PR URL:
- Merge commit:
- Tree reference:
- CI run URL:
- Argos build/review URL:
- Metadata gates:
- Artifact manifest:
- Screenshot retention:
- Expiration risk:
## Recovery Commands
```text
git show <merge-sha>:specs/<feature>/spec.md
git show <merge-sha>:specs/<feature>/plan.md
git show <merge-sha>:specs/<feature>/tasks.md
| File | Change Summary |
|---|
## Done Criteria
- Feature content is merged into project memory or reported as dry-run only.
- Constitution compliance is verified.
- Archive Sweep excludes the current target.
- Previously merged specs are classified with archive and cleanup eligibility.
- Report includes PR, merge/tree, CI, Argos, metadata gate, artifact manifest,
and screenshot retention provenance when available.
- Recovery commands are printed for raw spec artifact recovery.
- Cleanup is applied only when every gate passes.
- No git history is rewritten.
- No post-merge CI mutation of `main` is required.
- Source feature spec files are not deleted unless `--apply-cleanup` was
explicitly requested and safe.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Skill for the Adapters area of paddock. 108 symbols across 22 files.
日本語の概要は準備中です。原文の説明を表示しています。
Skill for the Chat area of paddock. 62 symbols across 10 files.
日本語の概要は準備中です。原文の説明を表示しています。
Skill for the Dashboard area of paddock. 80 symbols across 16 files.
日本語の概要は準備中です。原文の説明を表示しています。
Skill for the Github area of paddock. 23 symbols across 5 files.
日本語の概要は準備中です。原文の説明を表示しています。
Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki, or list indexed repos. Examples: "Index this repo", "Reanalyze the codebase", "Generate a wiki"
日本語の概要は準備中です。原文の説明を表示しています。
Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: "Why is X failing?", "Where does this error come from?", "Trace this bug"
日本語の概要は準備中です。原文の説明を表示しています。