一键导入
team-spec-archive
将已完成、废弃或暂停的单个需求工作区从 active 归档到 archive。Archive one completed, abandoned, or paused requirement workspace from active to archive.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
将已完成、废弃或暂停的单个需求工作区从 active 归档到 archive。Archive one completed, abandoned, or paused requirement workspace from active to archive.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
创建、审阅和优化团队自有项目 README.md,以准确事实和自上而下的信息层级呈现定位、快速开始、使用与维护入口。Create, review, and improve README.md for team-owned projects using verified facts and a progressive top-to-bottom reading flow.
将代码库事实转化为面向业务、产品和管理者的能力说明、场景材料和影响分析。Turn codebase evidence into business-facing capability briefs, scenario narratives, and impact analysis.
从已有代码仓库提取可追溯的功能清单、架构说明和 AI 接手上下文。Extract traceable feature inventory, architecture notes, and AI onboarding context from an existing codebase.
基于 onboarding 产物和源码,围绕功能清单做代码库走读、问答和证据追踪。Guide developers through codebase features with walkthroughs, Q&A, and source-backed explanations.
为已完成的单个 issue 分支推送代码并创建关联 issue 的 GitLab Merge Request。Push a completed issue branch and create an issue-linked GitLab Merge Request.
为已完成的单个 issue 分支推送代码并创建关联 issue 的 GitHub Pull Request。Push a completed issue branch and create an issue-linked GitHub Pull Request.
| name | team-spec-archive |
| description | 将已完成、废弃或暂停的单个需求工作区从 active 归档到 archive。Archive one completed, abandoned, or paused requirement workspace from active to archive. |
| license | MIT |
| metadata | {"author":"coolbeevip","version":"1.0"} |
| triggers | ["归档需求","归档 active 需求","结束这个需求","暂停这个需求","归档这个 slug","archive spec","archive requirement","archive active spec","close this requirement","archive this slug"] |
这个技能用于把 team-spec/active/{slug}/ 中某个需求 slug 的过程产物移动到 team-spec/archive/{slug}/。归档是需求生命周期动作,不负责继续细化、评审、生成 PRD、拆 issue 或实现代码。team-spec/active/ 允许存在多个未归档需求;归档一个 slug 不应影响其他 slug。
归档只处理指定 slug 的工作区,不移动跨需求共享上下文 team-spec/CONTEXT.md 和 team-spec/decisions/。
team-spec/active/{slug}/ 工作区。必须先确定唯一 slug,来源可以是:
{slug}。team-spec/active/{slug}/spec/refine.md。team-spec/active/ 中唯一可识别的 slug。可归档的 active 产物:
team-spec/active/{slug}/concept/whitepaper.mdteam-spec/active/{slug}/spec/refine.mdteam-spec/active/{slug}/spec/reviews.mdteam-spec/active/{slug}/spec/CONTEXT.mdteam-spec/active/{slug}/spec/decisions/team-spec/active/{slug}/prd/prd.mdteam-spec/active/{slug}/prd/alignment.mdteam-spec/active/{slug}/issues/team-spec/active/{slug}/design/team-spec/active/{slug}/STATUS.md兼容旧布局时,也可以归档 team-spec/active/spec/refine/{slug}.md、team-spec/active/spec/reviews/{slug}.md、team-spec/active/prd/{slug}.md、team-spec/active/prd/{slug}-alignment.md、team-spec/active/issues/{slug}/ 和 team-spec/active/design/{slug}.md。
不可归档的全局产物:
team-spec/CONTEXT.mdteam-spec/decisions/如果无法唯一确定 slug,必须停止并要求用户提供 slug 或明确文件路径,不得猜测。如果 team-spec/archive/{slug}/ 已存在,默认停止,不得覆盖旧归档。
team-spec/archive/{slug}/concept/whitepaper.mdteam-spec/archive/{slug}/spec/refine.mdteam-spec/archive/{slug}/spec/reviews.mdteam-spec/archive/{slug}/prd/prd.mdteam-spec/archive/{slug}/prd/alignment.mdteam-spec/archive/{slug}/issues/team-spec/archive/{slug}/design/team-spec/archive/{slug}/STATUS.mdteam-spec/archive/{slug}/ARCHIVE.md归档完成后,team-spec/active/{slug}/ 不应再存在。其他 team-spec/active/{other-slug}/ 工作区必须保留。
归档时优先使用本技能目录下的固定脚本:
./scripts/archive_team_spec.py
脚本能力:
--execute 时移动对应 slug 的 active 工作区并生成 ARCHIVE.md。--slug,仅在 active 中能唯一识别 slug 时自动推断。team-spec/active/{slug}/;旧布局兼容模式只移动同 slug 产物,不移动全局 team-spec/CONTEXT.md、team-spec/decisions/、旧布局共享 CONTEXT.md、decisions/、缓存文件或其他无关文件。推荐 dry-run:
python3 {skill_dir}/scripts/archive_team_spec.py --slug {slug}
用户确认后正式归档:
python3 {skill_dir}/scripts/archive_team_spec.py --slug {slug} --reason completed --execute
其中 {skill_dir} 是当前技能目录。技能内部定位脚本时应使用相对 SKILL.md 的路径 ./scripts/archive_team_spec.py,执行命令时再解析成实际文件路径。
常用参数:
--slug {slug}:指定要归档的需求 slug。--team-spec-dir team-spec:指定目标项目中的 team-spec/ 目录,默认是当前工作目录下的 team-spec。--reason completed|abandoned|superseded|paused|manual:归档原因,默认 manual。--execute:正式移动文件;不传时只 dry-run。--json:输出机器可读 JSON。team-spec/ 位置。--execute 正式归档。ARCHIVE.md 路径,并说明其他 active 需求未受影响。team-spec/archive/{slug}/。team-spec/active/{slug}/;任何布局都不归档或删除 team-spec/CONTEXT.md 与 team-spec/decisions/;旧布局兼容模式也不归档或删除 team-spec/active/spec/CONTEXT.md 与 team-spec/active/spec/decisions/。git add、git commit、git push。team-spec/archive/{slug}/。ARCHIVE.md 已记录归档时间、原因、来源路径和目标路径。team-spec/active/{slug}/ 中不再存在该 slug 的过程文件。必须包含:
ARCHIVE.md 路径;dry-run 时说明预计生成位置。