sdd-change-archive

A command for archiving a completed software change proposal and its implementation. It checks that the work, tests, deployment, feature flags, and monitoring are complete before cleanup.

In plain words
What is it for?
Verifying a change is ready, recording final results, updating documentation, and archiving the proposal and implementation.
Why use it?
It prevents unfinished changes from being archived and keeps completed project records and temporary resources organized.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/nahisaho/codegraphmcpserver/sdd-change-archive
Clone the repo
git clone --depth 1 https://github.com/nahisaho/CodeGraphMCPServer

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,495 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.03495
Opus 5 $0.00000 $0.01747
Sonnet 5 $0.00000 $0.00699
Haiku 4.5 $0.00000 $0.00349

Measured 2d ago against content hash d68789c9b51d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

sdd-change-archive scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf lib/{{deprecated-feature}}/
.claude/commands/sdd-change-archive.md · 686 lines

How it starts

The opening of the file, as written. The whole thing — 686 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SDD Change Archive Command

Archive a completed change proposal.


Instructions for GitHub Copilot

You are executing the #sdd-change-archive [change-name] command to archive a completed change.

Command Format

#sdd-change-archive add-2fa
#sdd-change-archive migrate-to-graphql
#sdd-change-archive refactor-auth-service

Your Task

Archive the change proposal and implementation, update documentation, and clean up temporary resources.


Process

1. Verify Change Completion

Read Implementation Report:

# Check implementation report exists
storage/changes/{{change-name}}-implementation.md

Verify Status:

  • Implementation report exists
  • All requirements implemented
  • Tests passing
  • Feature deployed to production
  • Feature flag enabled (or deprecated feature removed)
  • Monitoring shows stable metrics

If Not Complete:

⚠️ **Change not ready for archival**

Status Check:

- [ ] Implementation complete
- [ ] Tests passing
- [ ] Deployed to production
- [ ] Feature flag enabled/removed
- [ ] Stable for 2+ weeks

Please complete all steps before archiving.

2. Collect Final Metrics

Gather Success Metrics:

## Final Metrics: {{CHANGE_NAME}}

### Deployment

- **Deployed**: {{DATE}}
- **Rollout Complete**: {{DATE}}
- **Stable Period**: {{DAYS}} days

### Performance

- **P95 Latency**: {{VALUE}}ms (target: <200ms) ✅
- **Error Rate**: {{VALUE}}% (target: <0.1%) ✅
- **Throughput**: {{VALUE}} req/s ✅

### Adoption

- **User Adoption**: {{PERCENTAGE}}%
- **Feature Usage**: {{COUNT}} uses/day
- **Customer Feedback**: NPS {{SCORE}}

### Quality

- **Bugs Found**: {{COUNT}}
  - P0: 0
  - P1: {{COUNT}}
  - P2: {{COUNT}}
- **Incidents**: {{COUNT}}
- **Rollbacks**: {{COUNT}}

### Cost

- **Development Time**: {{HOURS}} hours
- **Infrastructure Cost**: ${{AMOUNT}}/month
- **ROI**: {{PERCENTAGE}}% (projected)

3. Update Change Status

Update Change Proposal:

<!-- storage/changes/{{change-name}}-proposal.md -->

## Metadata

- **Change ID**: CHG-{{NUMBER}}
- **Status**: ~~Proposed~~ → ~~Approved~~ → ~~Implemented~~ → **Archived**
- **Created**: {{DATE}}
- **Approved**: {{DATE}}
- **Implemented**: {{DATE}}
- **Archived**: {{DATE}}

Read the full file on GitHub · 686 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 686 lines · 0 tokens per session scan C d68789c9b51d

Subscribe to this mod's changes

sdd-change-archive is a command published in the GitHub repository nahisaho/CodeGraphMCPServer (12 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,495 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.