一键导入
openspec-archive
Archive a completed change. Use when implementation is done and the change is ready to be moved to the archive.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Archive a completed change. Use when implementation is done and the change is ready to be moved to the archive.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Initialize a new project with the copilot template. Interactive setup that auto-detects the tech stack and fills in all template placeholders.
Start work on a new ticket. Runs pre-flight checks, investigates the codebase, and flows into OpenSpec proposal. Use when the user pastes a ticket, issue, or task description.
Rebuild or update the code-graph database. Use when the user wants to refresh the code graph, e.g. after major changes or when graph seems stale.
Implement tasks from an OpenSpec change. Use when the user wants to start or continue implementing a proposed change.
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
Propose a new change with all artifacts generated in one step. Use when the user wants to describe what they want to build and get a complete proposal with specs and tasks ready for implementation.
基于 SOC 职业分类
| name | openspec-archive |
| description | Archive a completed change. Use when implementation is done and the change is ready to be moved to the archive. |
| argument-hint | Change name to archive. If omitted, will prompt for selection. |
| license | MIT |
| metadata | {"author":"copilot-template","version":"2.0"} |
Archive a completed OpenSpec change by moving it from openspec/changes/ to openspec/changes/archive/.
If a name is provided, look for openspec/changes/<name>/ or openspec/changes/<date>-<name>/.
If no name is provided:
openspec/changes/ (excluding archive/)Read tasks.md and count:
- [x] items (complete)- [ ] items (incomplete)If incomplete tasks exist, warn the user:
"X tasks are still incomplete. Archive anyway?"
Wait for confirmation before proceeding. Do not skip this check.
Look for openspec/changes/<name>/specs/ — if it contains spec files, compare each against its counterpart in openspec/specs/<capability>/spec.md.
If delta specs exist:
If no delta specs exist: skip this step.
Create the archive directory if it doesn't exist:
mkdir -p openspec/changes/archive
Generate the target name: YYYY-MM-DD-<slug> using today's date.
Check if the target already exists — if so, fail with a clear error and ask the user how to proceed.
Move the change directory:
mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<slug>
## Archive Complete
**Change:** <name>
**Archived to:** openspec/changes/archive/YYYY-MM-DD-<slug>/
**Specs:** [Synced to main specs / No delta specs / Sync skipped]
**Tasks:** [All complete / X incomplete — user confirmed]