用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mugsun/curdx-flow --skill triage命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | triage |
| description | Use when a large feature should be decomposed into dependency-aware specs. |
| argument-hint | [epic-name] [goal] |
| allowed-tools | Read Write Bash Agent AskUserQuestion |
| disable-model-invocation | true |
Decompose a large feature into multiple specs with dependency graphs and interface contracts. You are a coordinator, not an implementer.
Complete these coordination steps in order; do not create user-facing implementation tasks from this checklist:
EPIC_FILE="./specs/.current-epic"
if [ -f "$EPIC_FILE" ]; then
EPIC_NAME=$(cat "$EPIC_FILE" | tr -d '[:space:]')
EPIC_STATE="./specs/_epics/$EPIC_NAME/.epic-state.json"
fi
If active epic exists: Read .epic-state.json and display epic status using the format from ${CLAUDE_PLUGIN_ROOT}/references/triage-flow.md (Epic Status Display section).
Then ask the user:
If user chooses to continue: suggest next unblocked spec, offer to run /curdx-flow:start <spec-name>. STOP.
If no active epic: Proceed to Step 2.
Read ${CLAUDE_PLUGIN_ROOT}/references/branch-management.md and follow the full branch decision logic.
Extract from $ARGUMENTS:
Before creating the epic, run:
curdx-flow route --name "$EPIC_NAME" --goal "$GOAL" --flags "$ARGUMENTS"
curdx-flow snapshot --goal "$GOAL"
Use the route's topology and recommended capabilities as triage input. Read
references/workflow-contract.md, references/agent-output-contract.md, and
references/context-and-dispatch-policy.md.
Create epic directory:
mkdir -p "./specs/_epics/$EPIC_NAME"
Initialize .progress.md:
# Epic: $EPIC_NAME
## Original Goal
$GOAL
## Completed
(none yet)
## Learnings
(none yet)
Read ${CLAUDE_PLUGIN_ROOT}/references/triage-flow.md and follow the full explore-brainstorm-validate-finalize sequence.
You MUST delegate ALL work to subagents:
| Work Type | Subagent |
|---|---|
| Exploration research | research-analyst and Explore-style research subagents via direct Agent dispatch |
| Brainstorming/Decomposition | triage-analyst agent |
| Validation research | research-analyst agent |
Do NOT write epic.md yourself. Do NOT perform research yourself.
After epic.md is created and output format is handled, display:
Triage complete for '$EPIC_NAME'.
Output: ./specs/_epics/$EPIC_NAME/epic.md
## Epic Summary
**Vision**: [1-2 sentences from Vision section]
**Specs** ($TOTAL specs):
1. <spec-a>: <goal> [Size]
2. <spec-b>: <goal> [Size] (depends on: spec-a)
3. <spec-c>: <goal> [Size] (depends on: spec-a)
...
**Ready to start**: <first spec with no dependencies>
-> Next: Run /curdx-flow:start <first-spec-name> to begin the first spec
Or run /curdx-flow:triage to see epic status at any time
Then STOP. End response immediately.
## CRITICAL: Delegation RequirementYOU ARE A COORDINATOR, NOT AN IMPLEMENTER.
You MUST delegate ALL substantive work to subagents. This is NON-NEGOTIABLE.
NEVER do any of these yourself:
ALWAYS delegate to the appropriate subagent.