/kratos:spec-archivefrom kratos
Manually promote a feature's spec delta into its living spec — works regardless of pipeline stage
Ships in kratos. Installing the plugin adds it to Claude Code.
Merge a feature's spec delta(s) (.claude/feature/<name>/spec-delta/*.md) into their living spec(s) (.claude/.Arena/specs/<capability>/spec.md). This is the manual, anytime path — it does not require Hera to have run. Use it for User Mode features, direct agent runs, or a feature that was abandoned and later resumed.
"Skipping Hera never strands the delta — it persists as a file until promoted, by this command, the automatic offer after an Aligned verdict, or kratos spec backfill."
/kratos:spec-archive <feature-name>
<kratos-bin> spec diff <feature-name>
This prints each pending delta's capability and its +/~/-/-> changes. If it reports no delta found, stop and tell the user — nothing to archive.
<kratos-bin> spec validate <feature-name>
If validation fails, show the errors and stop. Do not archive an invalid delta.
Show the diff from Step 1 and ask for confirmation before merging:
Archive spec delta for [feature-name]?
Capability: [capability]
Changes: [N] added, [N] modified, [N] removed, [N] renamed
Tactical-plan features (a `.claude/.Arena/tactical-plans/<feature-name>.md` exists) have no
status.json — skip any `pipeline get` stage check and this warning for them.
If this feature's stage 8-prd-alignment status is not "complete" with verdict "aligned",
warn explicitly: "No alignment check ran for this feature — archiving promotes the delta
based on Athena's authorship alone."
Proceed? (y/n)
<kratos-bin> spec archive <feature-name>
This merges in the fixed order RENAMED → REMOVED → MODIFIED → ADDED, blocking entirely (no partial merge) on any conflict — a MODIFIED/REMOVED target missing from the living spec, an ADDED requirement that already exists, or a RENAMED pair that collides. On success it moves the delta file to spec-delta/archived/ (the durable historical record) and updates the living spec's frontmatter (updated, git_hash).
Do NOT auto-commit. Report the changed files so the user can review and commit when ready.
SPEC ARCHIVED
Feature: [feature-name]
Capability: [capability]
Changes merged: [N] added, [N] modified, [N] removed, [N] renamed
Living spec updated: .claude/.Arena/specs/[capability]/spec.md
Delta archived: .claude/feature/[feature-name]/spec-delta/archived/[capability].md
Review and commit these changes when ready.
Kratos runs this offer once per feature when implementation lands — after Hera returns aligned (pipeline Ares Mode via pipeline next → spec-archive-offer, and User Mode via /kratos:task-complete all), and after a quick task implements an Odysseus tactical plan. The offer is decoupled from Hera: declining, or Hera never running (User Mode, abandoned features), never loses the delta — it persists on disk until archived here, via /kratos:spec-archive, or via kratos spec backfill.
<kratos-bin> spec list --changes. If .claude/feature/[feature-name]/spec-delta/*.md has no pending (un-archived) file, skip the offer silently.AskUserQuestion(
question: "Feature [name] is implemented. Archive its spec delta into the living spec now? Capability: [capability] — [N] added, [N] modified, [N] removed, [N] renamed",
options: ["Yes — archive now", "No, leave it pending"]
)
spec validate, then spec archive [feature-name]). The binary mechanically applies Athena's (or Odysseus's) authored delta — no extra agent spawn. Do not auto-commit the resulting spec.md change.kratos spec list --changes and the session-end reminder keep surfacing it until archived.No delta found: report .claude/feature/<name>/spec-delta/ is empty or missing, and stop.
Validation failed: show the kratos spec validate output verbatim, and stop — do not archive.
Conflict on archive: kratos spec archive reports which capability and which requirement caused the conflict (target missing, or already exists). Nothing is written for that feature — report the conflict and let the user decide whether to fix the delta or the living spec.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
38 commands in this plugin
/anankeRun as Ananke (task manager — add, list, complete, and remove personal todos via kratos binary or fallback file) inline in the main session/apolloRun as Apollo (architecture reviewer for technical soundness) inline in the main session — pipeline Stage 5/aresRun as Ares (implementation specialist for writing code) inline in the main session — pipeline Stage 7a/artemisRun as Artemis (QA specialist for test planning) inline in the main session — pipeline Stage 6npx claudepluginhub lizardliang/lizard-market --plugin kratos