一键导入
design-archive
Archive outdated design documentation. Use when design docs are no longer relevant, have been superseded, or document deprecated features.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Archive outdated design documentation. Use when design docs are no longer relevant, have been superseded, or document deprecated features.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | design-archive |
| description | Archive outdated design documentation. Use when design docs are no longer relevant, have been superseded, or document deprecated features. |
| allowed-tools | Read, Edit, Bash(grep *), Bash(find *), Bash(ls *) |
| context | fork |
| agent | design-doc-agent |
Archives design documentation that is no longer relevant or has been superseded by newer documentation.
This skill safely archives design documents by updating their status, adding archival metadata and notices, updating cross-references, and optionally moving files to an archive directory. It ensures proper documentation lifecycle management and maintains documentation integrity.
Basic archival:
/design-docs:design-archive effect-type-registry old-cache-design.md
With replacement:
/design-docs:design-archive effect-type-registry cache-v1.md --replacement=cache-optimization.md
Move to archive directory:
/design-docs:design-archive design-doc-system obsolete-patterns.md --move
module: Module namedoc: Document filename to archivereason: Archival reason (superseded, deprecated, obsolete, completed)replacement: Path to replacement doc (required if superseded)move: Move to _archive directory (default: false)High-level archival process:
For detailed implementation steps, see supporting documentation below.
When you need detailed information, load the appropriate supporting file:
See instructions.md for:
Load when: Performing archival or need implementation details
See archival-reasons.md for:
Load when: Need to determine appropriate archival reason or understand requirements
See reference-updates.md for:
Load when: Working with cross-references or batch archival
See examples.md for:
Load when: User needs examples or clarification
ERROR: Design document not found
Module: {module}, Document: {doc}
Expected: .claude/design/{module}/{doc}
INFO: Document is already archived ({date})
Reason: {reason}
No action needed.
ERROR: Replacement document not found
Specified: {replacement}
Fix: Create replacement doc first or correct the path
Works well with:
/design-docs:design-review - Identify candidates for archival/design-docs:design-validate - Validate before and after archival/design-docs:design-update - Update replacement docs/design-docs:design-init - Create replacement before archivingA successful archival:
Generate cross-reference graph showing relationships between design documents. Use when visualizing doc dependencies, finding related docs, or understanding documentation structure.
Validate design doc structure and frontmatter. Use when checking design docs for compliance, ensuring proper formatting, or verifying metadata before commits.
Comprehensive quality audit for CLAUDE.md context files. Use when performing thorough quality checks, preparing for releases, ensuring context efficiency, or verifying token optimization.
Style rules for LLM context files (CLAUDE.md, AGENTS.md and their .local variants). Fires automatically when these files are opened. Enforces on-demand loading patterns, proper @-reference syntax and lean context structure.
Split large CLAUDE.md into child files. Use when context files exceed word limits, are too verbose, or cover multiple distinct topics that should be separate.
Validate CLAUDE.md structure, formatting, and quality. Use when checking context files for compliance, ensuring proper structure, or verifying before commits.