用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/asermax/claude-plugins --skill design-delta命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | design-delta |
| description | Write design rationale for a delta |
| argument-hint | [DELTA-ID] |
Write design rationale for a specific delta.
Delta ID: $ARGUMENTS (e.g., "DLT-001")
You must load the following skills and read the following files before proceeding.
katachi:framework-core - Workflow principleskatachi:working-on-delta - Per-feature workflowkatachi:research-docs - Mandatory workflow for fetching current documentationdocs/planning/DELTAS.md - Delta definitionsdocs/delta-specs/$ARGUMENTS.md - The specification we're designing fordocs/architecture/README.md - Architecture decisions (ADRs)docs/design/README.md - Design patterns (DES)docs/delta-designs/$ARGUMENTS.md - Current design to update or createdocs/feature-designs/README.md - Feature design indexdocs/feature-designs/ - Existing feature designs (read specific docs as needed)docs/feature-specs/README.md - Feature capability index (for understanding features)${CLAUDE_PLUGIN_ROOT}/skills/working-on-delta/references/delta-design.md - Structure to follow${CLAUDE_PLUGIN_ROOT}/skills/working-on-delta/references/wireframing.md - UI layout guide (if needed)${CLAUDE_PLUGIN_ROOT}/skills/working-on-delta/references/spike-template.md - Spike investigation template (for shape unknowns)${CLAUDE_PLUGIN_ROOT}/skills/framework-core/references/technical-diagrams.md - Technical diagram guidance${CLAUDE_PLUGIN_ROOT}/skills/framework-core/references/code-examples.md - Code snippet guidanceVerify spec exists:
docs/delta-specs/$ARGUMENTS.md doesn't exist, suggest running /katachi:spec-delta $ARGUMENTS firstIf docs/delta-designs/$ARGUMENTS.md exists:
## Shape section with initial shape parts and the rest of the template sections are empty, treat it as a starting point — not an existing design to iterate on. Summarize the initial shape to the user, note any flagged unknowns (⚠️), and proceed with full design creation.If no design exists: proceed with initial creation
Update status:
python ${CLAUDE_PLUGIN_ROOT}/scripts/deltas.py status set $ARGUMENTS "⧗ Design"
Internal Research:
docs/delta-specs/$ARGUMENTS.md)External Research (Mandatory — No Exceptions):
Your training data is outdated. Current documentation is always more accurate. This step is not optional even when you feel confident about a library.
For each library, framework, or technical approach identified in the spec:
Search current documentation for ALL libraries/frameworks involved, following the katachi:research-docs skill guidance:
Research alternative approaches using WebSearch:
Research available up-to-date options:
Research must answer:
Enforcement: If your design involves ANY external library and you performed zero documentation searches, you have violated this workflow. Stop and follow the katachi:research-docs guidance before continuing.
Build complete understanding without asking questions, but do not proceed to design until external research is complete.
Now that I've researched the spec, existing patterns, and current documentation, I'll present my design thinking and ask about important decisions.
Present your design understanding:
Briefly summarize:
Identify and ask about important decisions:
Use AskUserQuestion to ask focused questions about:
Architectural approach choices:
Technology/library selections:
Design trade-offs:
Uncertainties from spec:
Integration with existing patterns:
Guidelines for effective questions:
After the interview:
Auto-discover affected feature designs by:
Read delta spec - identify affected features from "Detected Impacts" section
Search feature-designs/ - find related design documentation:
Determine design impact type:
Note impacts for later inclusion in "Detected Impacts" section
Evolve the shape:
If a design doc with initial shape parts exists (seeded by spec-delta):
katachi:spike-runner subagent(s) to investigate, then validate findings with the userdocs/delta-specs/$ARGUMENTS.md before continuingIf no initial shape exists: draft shape parts from scratch based on spec requirements.
The shape parts table stays in the design as a permanent section — it is not removed after evolution.
Run requirements coverage check (internal, not saved):
Verify coverage between the spec's R table and the evolved shape:
Present evolved shape to user for validation:
After evolving the shape and resolving unknowns, present the complete evolved shape to the user before investing effort in the full design:
Iterate until the user approves the evolved shape. The approved shape is what gets documented in the final design.
Create full design document following template:
Add UI Layout section (conditionally):
If spec has User Flow section OR design involves UI components:
${CLAUDE_PLUGIN_ROOT}/skills/working-on-delta/references/wireframing.mdScope: Show only delta-relevant portions (modal = just modal, form = just form section)
If NOT a UI delta (no User Flow section, no UI components):
Key decisions research requirements:
For each technology choice, document:
| Field | Content |
|---|---|
| Choice | The selected approach |
| Why | Reasoning based on research findings |
| Sources | Documentation version, WebSearch results, official docs |
| Options Researched | All solutions found for the problem, including ones not previously known |
| Why This Over Alternatives | Comparison based on current research, not training data assumptions |
| Consequences | Trade-offs, maintenance implications |
If any technology choice lacks a Sources entry citing current documentation, the design is incomplete. Follow the katachi:research-docs guidance to fill the gap.
Decision Points: If you encounter choices requiring user input, use AskUserQuestion:
Add Detected Impacts section:
## Detected Impacts
### Affected Feature Designs
- **[path/to/feature-design.md]** - [Adds/Modifies/Removes]: [description]
### Notes for Reconciliation
- [What needs to change in feature design docs]
- [New design sections that need to be created]
- [Design decisions that need to be documented]
Note any uncertainties or assumptions.
Dispatch the design-reviewer agent:
Task(
subagent_type="katachi:design-reviewer",
prompt=f"""
Review this delta design.
## Delta Spec
{spec_content}
## Completed Design
{design_content}
## ADR Index Summary
{adr_summary}
## DES Index Summary
{des_summary}
## Additional Review Criteria
- Verify all technology choices cite current documentation sources
- Verify that current documentation was searched for each library/framework in the design (zero searches = automatic failure)
- Check that options were researched broadly (not just validating a pre-assumed choice)
- Confirm research discovered current solutions, not just validated known libraries
- Validate design decisions are supported by up-to-date research, not training data
- Shape coverage: Does each spec requirement have at least one shape part? Are all unknowns resolved? Are parts mechanisms (not constraints)?
## UI Layout Review (if design includes UI Layout section)
- Do wireframes correspond to places in the spec's breadboard?
- Are wireframes at appropriate detail level (not too detailed, not too sparse)?
- Are state variations covered where relevant to design decisions?
- Do layout decisions align with documented design rationale?
- Is wireframe scope appropriate (showing only delta-relevant UI)?
- Are layout explanations complete (purpose, key elements, rationale, interactions)?
"""
)
Apply ALL recommendations from design-reviewer automatically:
Decision Points: If applying a recommendation requires a choice (multiple valid ways to fix, conflicts with earlier decisions), use AskUserQuestion.
Track changes made for presentation in next step.
Auto-apply (no user input):
Present the complete validated design to the user in its entirety. Highlight any unresolved issues requiring input. Invite feedback: "What needs adjustment in this design?"
Apply user corrections, additions, or changes. Re-run validation (steps 5-6) if significant changes. Repeat until user approves.
If agent or user identifies repeatable patterns:
Finalize document to docs/delta-designs/$ARGUMENTS.md
Update status:
python ${CLAUDE_PLUGIN_ROOT}/scripts/deltas.py status set $ARGUMENTS "✓ Design"
Present summary:
"Delta design complete for $ARGUMENTS.
[Finalized shape parts table]
Detected impacts: [list of affected feature design docs]"
When design reveals hard-to-change choices:
This is a validate-first process: