Skip to content
Back to skills

Spec.Archive

ASecurity

Archive finished roadmap work into docs/archive/ — a change (once merged into the development branch; no release needed), an epic or a phase with everything under it, named by folder path or id; with no argument, list what is ready and what blocks the rest. Blocked work gets a proposal (finish, move, split into a change request, drop) and you decide each.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
developmentgogit

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add ivan-ii-tech-digital/agent-kit --skill spec.archive --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spec.Archive?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spec.Archive
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ivan-ii-tech-digital-spec-archive/badge)](https://www.skillsdirectory.com/skills/ivan-ii-tech-digital-spec-archive)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spec.archive
description: Archive finished roadmap work into docs/archive/ — a change (once merged into the development branch; no release needed), an epic or a phase with everything under it, named by folder path or id; with no argument, list what is ready and what blocks the rest. Blocked work gets a proposal (finish, move, split into a change request, drop) and you decide each.
argument-hint: "[<change-id | change folder path | phase or epic id or folder path>]"
disable-model-invocation: true
---

## Request

```text
$ARGUMENTS
```

Spawn no agents. Every decision goes through the `clarify-first` skill: one question per message, the
user decides, nothing is done without the answer. Never move, tick, edit or `git mv` a spec file to get
past the gate; there is no override.

## The report

`ak-archive` prints one header line per item, then its findings indented by two spaces:

```text
ready|blocked|skip  change|epic|phase  <name>  <folder>/
  <kind>  <id>  <path>  <message>
```

| `<kind>`               | Means                                                                        |
| ---------------------- | ---------------------------------------------------------------------------- |
| `unmerged`             | the change was never merged (no `merged:` / `pr:` line, or its commit is not in the development branch); the PR number when known (`(PR #n)`, or `(MR !n)` for a `pr: "!<n>"`) |
| `open`                 | a task not done, a story without a task, an exit criterion not ticked (the message says which) |
| `gap`                  | an AC or EC no test case covers                                              |
| `orphan` `unknown` `dup` | link problems: an id without its parent, a link to no id, an id defined twice |
| `child`                | a change or epic below that is not archived yet (or blocked, in a plan)     |

`skip` is a `source: code` phase (phase 0, the record of the system): never archived.

## Route

| Argument                                  | Mode   |
| ----------------------------------------- | ------ |
| none                                      | Scan   |
| a change (`<slug>`, `CR-n`, `docs/changes/<slug>`) | Single |
| a phase or an epic (`<phase>`, `<phase>/<epic>`, `EP-n`, their folder) | Deep   |

1. **Branch.** Archive moves are committed on a plan branch: unless the current branch is `plan/*` or
   the change's own branch, run `ak-create-feature-branch --plan archive-<kebab-case name>` once and
   work in the worktree it prints (protected branches take no commits). Scan writes nothing, so it
   needs none until the user picks something to archive.
2. **Scan:** run `ak-archive plan`. Show the ready items, then each blocked item with its findings
   grouped under the kind headings above, and name in that same reply the step that clears each
   finding: `unmerged` → merge its PR (named when known); `open` tasks, stories without tasks and
   `gap` → `/spec.implement`; link problems → fix them where they point. Then ask once whether to archive the ready ones (a ready
   phase is archived with `ak-archive apply <phase>`, which moves its ready changes and epics in the same run;
   every other ready item with `ak-archive <kind> <name>`, in the order shown, so a change goes before its epic);
   then go through **Blocked work** for the blocked ones the user wants to deal with now.
3. **Single:** run `ak-archive <argument>`, the argument unchanged. Archived → step 5. Refused →
   show the report and go to **Blocked work**.
4. **Deep:** run `ak-archive plan <argument>` and show the full plan: what moves, in which order
   (changes, then epics, then the phase), and what stays blocked, with the epic or phase above it that
   stays too. Ask one confirmation for the whole plan. Yes → `ak-archive apply <argument>`, then
   step 5 for what moved; the blocked items go to **Blocked work**. No → stop, nothing moved.
5. **Archived:** the moves are staged, not committed. Show the moved paths, then commit
   `docs(roadmap): archive <names>` on the plan branch; push and open a PR only when the user asks.

## Blocked work

For each blocked item, propose what fits its findings and ask the user to pick one; one item per
question, the recommended option first with its reason:

- **(a) Finish it.** Open tasks, stories without tasks and GAPs are built and tested in the change's
  own flow (`/spec.implement`); `unmerged` means merging its PR (named when known). Then
  `/spec.archive` again.
- **(b) Move it** to another phase or epic: `/spec.roadmap move <phase>`, its existing protocol (the
  reason and what brings it back, a Log line).
- **(c) Split it.** The pending part becomes a new, separate change request: `/spec.roadmap change`
  with the pending items pre-filled from the findings (the open tasks, the stories without tasks, the
  uncovered ACs and ECs, the open exit criteria, each with its id and path), its id from
  `ak-roadmap next-id CR`. In the original, each item that left keeps its line in the closed form
  `~~<text>~~ — moved to CR-<n>-<name> <date>` (`${CLAUDE_PLUGIN_ROOT}/templates/README.md`, Ids), under
  the edit protocol of `/spec.roadmap`; once it shows no finding and it is merged, archive it.
- **(d) Drop it:** its line takes the closed form `~~<text>~~ — dropped <date>: <reason> · back when:
  <trigger>` (same Ids section; an HR line through `/spec.roadmap req`, Drop); its number stays retired.

An `unmerged` finding only goes away by (a). Link problems are fixed where they
point, under the edit protocol. Every edit follows `/spec.roadmap`'s edit protocol (plan branch,
before and after shown, only what the user accepted, `ak-roadmap check --links`).

Never read `docs/archive/` directly: `ak-archive show <id>`, only when the user asks.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.