Codex equivalent of the SD003 custom command `/spec:archive`. Use when the user invokes `/spec:archive`, `spec-archive`.
この skill は Claude Code の /spec:archive を Codex で再現するためのものです。
本文に Claude 固有の記法やツール名が含まれる場合も、Codex では同等の手順に置き換えて実行してください。
Archive specification files to history folder with timestamp.
/spec:archive {feature} [file]
| Argument | Required | Description |
|---|---|---|
| feature | Yes | Feature name (folder under .sd/specs/) |
| file | No | Specific file (requirements, design, tasks). If omitted, archives all. |
/spec:archive bug-trace # Archive all files
/spec:archive bug-trace requirements # Archive requirements.md only
/spec:archive ralph-wiggum design # Archive design.md only
.sd/specs/{feature}/YYYYMMDD-HHMMSShistory/ folder if not exists.sd/specs/{feature}/{file}.md.sd/specs/{feature}/history/{file}-YYYYMMDD-HHMMSS.mdspec.json history section{type}-YYYYMMDD-HHMMSS.md
Examples:
requirements-20251226-143000.mddesign-20251226-143000.mdtasks-20251226-143000.mdAdd entry to history array:
{
"history": [
{
"version": "[current version]",
"date": "YYYY-MM-DD",
"file": "{type}-YYYYMMDD-HHMMSS.md",
"note": "[user provided note or auto-generated]"
}
]
}
Feature: $ARGUMENTS
Execute: Read target files, save to history/ with timestamp, update spec.json.