一键导入
crd
Orchestrates Change Request Document workflow. Manages context, captures changes, analyzes impact, and generates CRD files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Orchestrates Change Request Document workflow. Manages context, captures changes, analyzes impact, and generates CRD files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Break down a PRD or CRD into self-contained implementation tasks for LLM execution. Use when you have a PRD/CRD file and want to generate executable task files for autonomous implementation.
Incremental PROJECT.md update using git diff. Only re-analyzes changed areas for efficient context maintenance.
Analyze the impact of a proposed change on an existing codebase. Identifies affected files, features, and potential breaking changes.
Deep codebase investigation to generate PROJECT.md context. Analyzes architecture, patterns, features, APIs, and schemas.
Handles one batch of tasks. Spawns task agents in parallel using git worktrees, waits for completion, and updates state.
Main entry point for hierarchical task execution. Orchestrates layer-by-layer implementation of PRD tasks with parallel worktree execution.
| name | crd |
| description | Orchestrates Change Request Document workflow. Manages context, captures changes, analyzes impact, and generates CRD files. |
| context | fork |
| allowed-tools | Read Write Glob Grep Bash Skill |
| model | claude-sonnet-4-5 |
| user-invocable | true |
You orchestrate the Change Request Document workflow for brownfield projects. You coordinate context management, change capture, impact analysis, and CRD generation.
| Argument | Required | Description |
|---|---|---|
--project <path> | Yes | Path to target project |
| Description text | No | Initial change description |
--list | No | List existing CRDs |
--status <slug> | No | Check CRD status |
--project pathgit -C {project_path} rev-parse --git-dir
Check for PROJECT.md at {project_path}/PROJECT.md:
If exists:
# Read and extract last-context-hash
cat {project_path}/PROJECT.md | grep -A1 "<last-context-hash>"
Compare with current HEAD:
git -C {project_path} rev-parse HEAD
If different, invoke context update:
/crd-context-update --project {project_path}
If not exists:
/crd-investigate --project {project_path} --depth medium
If --list:
find {project_path}/docs/crd -name "*.md" -type f 2>/dev/null
Parse and display CRDs, then exit.
If --status <slug>:
Read {project_path}/docs/crd/{slug}.md, extract status, display, exit.
If description provided, use it. Otherwise prompt user.
Classify change type based on keywords:
feature-addfeature-modifyfeature-removerefactorConfirm type with user.
Capture:
Invoke impact analysis skill:
/crd-impact-analysis --project {project_path} --type {change_type} --description "{description}"
Present results to user for confirmation.
Interactively capture requirements:
Optionally capture acceptance criteria (Given/When/Then).
Create directory if needed:
mkdir -p {project_path}/docs/crd
Write CRD file at {project_path}/docs/crd/{slug}.md:
<crd>
<meta>
<name>{name}</name>
<slug>{slug}</slug>
<type>{type}</type>
<created>{date}</created>
<status>ready</status>
</meta>
<context>
<project-ref>PROJECT.md</project-ref>
<related-features>
{from impact analysis}
</related-features>
</context>
<change-request>
<summary>{summary}</summary>
<motivation>{motivation}</motivation>
</change-request>
<impact-analysis>
{from impact analysis skill}
</impact-analysis>
<requirements>
{captured requirements}
</requirements>
<acceptance-criteria>
{captured criteria}
</acceptance-criteria>
</crd>
Report success with next steps:
| Skill | Purpose |
|---|---|
/crd-investigate | Full codebase investigation for PROJECT.md |
/crd-context-update | Incremental context update via git diff |
/crd-impact-analysis | Analyze change impact on existing code |
| Error | Action |
|---|---|
| Missing --project | Display usage and exit |
| Invalid path | Report error and exit |
| Not a git repo | Report error and exit |
| Context parse error | Offer to regenerate |
| Impact analysis failure | Show partial results, continue |
CRD workflow is stateless per invocation. All state is stored in:
PROJECT.md - Context with hashdocs/crd/*.md - CRD documentsNo execute-state.json style tracking needed for CRD creation.