MCPInstall
sivaprasadreddy avatar

sdd-archive

SDD step 7. Archive feature.md and plan.md into docs/specs-archive/ - / directory, then update docs/project.md with the new feature, and any architecture decisions made. Use after /sdd-review is complete and the feature is ready to merge.

Installs
61
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/sivaprasadreddy/sdd-skills --skill sdd-archive
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads sdd-archive automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

SDD: Archive

Inputs

InputRequiredDescriptionExample
feature_nameOptionalArchive folder name in kebab-case. Derived from feature.md heading if omitted.jwt-authentication

Steps

Step 0: Validate Inputs (ALWAYS DO THIS FIRST)

Check the conversation for feature_name and for feature.md / plan.md in the project root.

  • If feature.md or plan.md do not exist → stop and tell the user both files are required.
  • Note whether review.md exists in the project root — it will be archived if present.
  • Note whether impl-summary.md exists in the project root — it will be archived if present.
  • If feature_name is provided → use it as the archive directory name (kebab-case).
  • If feature_name is missing → read feature.md and derive it from the # Feature: heading, converting to kebab-case (e.g. "User Authentication" → user-authentication). Proceed automatically.

Process

1. Determine the Feature Name

Use feature_name from Step 0. Capture the current timestamp using date +"%Y%m%d%H%M" and prepend it to form the archive directory name: <yyyymmddHHMM>-<feature-name> (e.g. 202604191430-jwt-authentication).

2. Verify Completion

Read feature.md and check that all acceptance criteria checkboxes are ticked. If any are unchecked, warn the user and ask for confirmation before archiving.

3. Update docs/project.md

This is a critical step. Read docs/project.md in full, then read the archived feature.md and plan.md to extract what actually changed. Update project.md across the following sections — add sections if they do not already exist.

3a. Features List

Locate or create a ## Features section. Add the new feature as a single line entry:

## Features
- **<Feature Name>**: <one-sentence description of what it does> (`docs/<feature-name>/`)

Preserve the existing list. Append the new entry — do not reorder or remove existing entries.

3b. Architecture Decisions

Scan feature.md (Open Questions, Technical Scope) and plan.md (Architecture Decisions) for any decisions that represent a meaningful change or addition to how the system is built.

Examples of what qualifies:

  • A new architectural pattern introduced (e.g., added an event-driven flow, introduced CQRS for a module)
  • A cross-cutting decision that will affect future features (e.g., "all auth tokens use RS256 signing")
  • A deliberate deviation from existing conventions, with rationale
  • A new integration point with an external system

Examples of what does NOT qualify:

  • Routine implementation choices that follow existing conventions
  • File naming or package placement decisions
  • Minor refactors that don't change architectural direction

For qualifying decisions, locate or create an ## Architecture Decisions section:

## Architecture Decisions

| Date | Decision | Rationale | Feature |
|------|----------|-----------|---------|
| <date> | <what was decided> | <why> | [<Feature Name>](docs/<feature-name>/) |

If the table already exists, append a new row. Do not recreate the table.

3c. API Surface (if applicable)

If the feature added or changed REST endpoints, locate or create an ## API section and document the new endpoints:

## API
| Method | Path | Description | Auth Required |
|--------|------|-------------|---------------|
| POST | /api/v1/auth/login | Authenticate user, returns JWT | No |
| POST | /api/v1/auth/refresh | Refresh access token | Yes (refresh token) |

Only add endpoints that are new or changed. Preserve existing entries.

3d. Environment / Configuration

If the feature introduced new environment variables, configuration keys, add them to an ## Environment & Configuration section:

## Environment & Configuration
| Key | Description | Required | Default |
|-----|-------------|----------|---------|
| JWT_SECRET | Secret key for JWT signing | Yes | — |
| JWT_EXPIRY_MINUTES | Access token TTL in minutes | No | 15 |

4. Show the project.md Changes

Before writing, present a summary of every change you are about to make to project.md:

## Proposed project.md Updates

### Features (1 addition)
- Added: JWT Authentication

### Architecture Decisions (1 addition)
- Added: All tokens signed with RS256; public key distributed via /.well-known/jwks.json

### API (2 additions)
- Added: POST /api/v1/auth/login
- Added: POST /api/v1/auth/refresh

### Environment & Configuration (2 additions)
- Added: JWT_SECRET
- Added: JWT_EXPIRY_MINUTES

### No changes to
- Tech Stack, Architecture overview, Conventions

Ask the user to confirm before writing. If they request changes to the proposed updates, apply their corrections first, then write.

5. Archive

Run the following operations:

ARCHIVE_DIR="docs/specs-archive/$(date +"%Y%m%d%H%M")-<feature-name>"
mkdir -p "$ARCHIVE_DIR"
mv feature.md "$ARCHIVE_DIR/feature.md"
mv plan.md "$ARCHIVE_DIR/plan.md"
# move review.md only if it exists
[ -f review.md ] && mv review.md "$ARCHIVE_DIR/review.md"
# move impl-summary.md only if it exists
[ -f impl-summary.md ] && mv impl-summary.md "$ARCHIVE_DIR/impl-summary.md"

6. Create a Brief Summary

Create docs/specs-archive/<yyyymmddHHMM>-<feature-name>/README.md:

# <Feature Name>

Implemented on: <date>

<Brief description of what was built, key files, and any notable decisions.>

7. Confirm

Report the final summary to the user:

  • Files archived to docs/specs-archive/<yyyymmddHHMM>-<feature-name>/ (feature.md, plan.md, review.md, and impl-summary.md if it existed)
  • Sections updated in docs/project.md
  • Remind them to commit both docs/specs-archive/<yyyymmddHHMM>-<feature-name>/ and docs/project.md to version control

FAQ

What does the sdd-archive skill do?

SDD step 7. Archive feature.md and plan.md into docs/specs-archive/ - / directory, then update docs/project.md with the new feature, and any architecture decisions made. Use after /sdd-review is complete and the feature is ready to merge.

How do I install sdd-archive?

Run npx skills add https://github.com/sivaprasadreddy/sdd-skills --skill sdd-archive in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/sdd-archive/ (personal) or .claude/skills/sdd-archive/ (project).

Which AI agents can use sdd-archive?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is sdd-archive safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains sdd-archive?

It is published by sivaprasadreddy in sivaprasadreddy/sdd-skills. It has 61 recorded installs.

More from sivaprasadreddy/sdd-skills

View all →
sivaprasadreddy avatar

sdd-init

sivaprasadreddy/sdd-skills

SDD step 0. Analyse the project codebase and create docs/project.md with tech stack, architecture, and conventions. Run once before starting SDD in a new project. If docs/project.md already exists, asks whether to regenerate it.

sivaprasadreddy avatar

sdd-review

sivaprasadreddy/sdd-skills

SDD step 5. Reviews the implemented feature code against language and framework best practices, checks for code duplication, security vulnerabilities, performance issues, test coverage, and alignment with feature.md acceptance criteria. Use after /sdd-implement or on any existing feature implementation.

sivaprasadreddy avatar

sdd-plan

sivaprasadreddy/sdd-skills

SDD step 3. Read feature.md and produce a detailed implementation plan.md tailored to the project's tech stack and architecture. Use after /sdd-feature has produced feature.md.

sivaprasadreddy avatar

sdd-implement

sivaprasadreddy/sdd-skills

SDD step 4. Read plan.md and implement the feature step by step, then verify all acceptance criteria are met. Use after /sdd-plan has produced plan.md.

sivaprasadreddy avatar

sdd-refine

sivaprasadreddy/sdd-skills

SDD step 2 (optional, repeatable). Read an existing feature.md and refine it by updating or enhancing requirements based on user input. Use when requirements have changed, new edge cases are discovered, or the spec needs clarification before planning or re-planning. Run before /sdd-plan if plan.md already exists.

sivaprasadreddy avatar

sdd-yolo

sivaprasadreddy/sdd-skills

SDD fast path. Runs the full pipeline — analyse → plan → implement → review → archive — with a single confirmation gate before implementation begins. Stops automatically if Critical or Major issues are found in review. Use when you want to ship a well-understood feature with minimal interruptions.

Popular code quality & workflow skills

View category →
mattpocock avatar

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

mattpocock avatar

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

mattpocock avatar

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

mattpocock avatar

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

mattpocock avatar

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.