一键导入
prompt-optimize
Use when optimizing a task prompt or asking how to route curdx-flow work without executing it.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when optimizing a task prompt or asking how to route curdx-flow work without executing it.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when a spec has tasks.md and should enter autonomous task execution.
Use when starting curdx-flow, creating a spec, resuming work, or routing intent.
Use when handling curdx-flow flags, state files, delegation, execution loops, or skill entrypoint rules.
Use when curdx-flow needs user decisions after codebase facts are discovered.
Use when a spec has design.md and needs implementation tasks.
Use when showing curdx-flow slash skills, options, workflow, or troubleshooting.
| name | prompt-optimize |
| description | Use when optimizing a task prompt or asking how to route curdx-flow work without executing it. |
| argument-hint | [draft prompt or task goal] |
| allowed-tools | Read Bash |
| disable-model-invocation | true |
Advisory only. Optimize the user's task prompt and recommend curdx-flow routing. Do not execute the task, edit files, create specs, run implementation commands, spawn executor agents, commit, push, or tag.
$ARGUMENTS: draft prompt, task goal, or rough idea to improve.Run the deterministic router in read-only mode:
curdx-flow route --goal "$ARGUMENTS"
Use the returned route, intent, stackProfile, qualityGates,
suggestedVerifier, contextBudget, and recommendedCapabilities as facts.
For non-trivial routes, also run:
curdx-flow route --compile --goal "$ARGUMENTS"
Use the execution brief to describe context budget, completion evidence,
agent/reviewer plan, and .curdx/brain.jsonl warnings. Do not execute the
brief.
If the command is unavailable, infer conservatively from the prompt and state
that routing is estimated.
Respond in the user's language with exactly these sections:
## Prompt Diagnosis
- Strengths:
- Gaps:
## Recommended Route
- route:
- why:
- context budget:
## Recommended curdx-flow Skills/Agents
| Item | Use |
|---|---|
## Risks
- ...
## Quality Gates
| Gate | Required | Command |
|---|---:|---|
## Optimized Prompt
```text
...
```
stackProfile.primary != "unknown".direct-change: prompt should ask for a small direct edit plus exact verifier.lite-spec: prompt should ask for a lightweight spec and 1-3 value-slice tasks.full-spec: prompt should ask for research -> requirements -> design -> tasks
-> implementation with phase verification.epic-split: prompt should ask for /curdx-flow:triage.scaffold: prompt should require latest official/ecosystem scaffold docs and
baseline verification.product-inception: prompt should ask for product context before source code.greenfield-spec: prompt should ask for product context, constitution, walking
skeleton, then vertical slices.prototype: prompt should include a bounded success criterion.import-spec: prompt should preserve traceability to the source artifact.