用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/asermax/claude-plugins --skill retrofit-decision命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Build something already designed, together with the user, then verify it and offer to commit. Use when a design is agreed and the work is ready to write, or when another skill needs the shared build discipline.
Load first when working with any zenku skill. Carries the vocabulary, the two rules, how to find the project's vault and conventions, and the habits for writing into it.
Lay out the current shape so the user can settle a new one — which modules exist, where the seams are, how data flows, and what earlier quests already decided. Use when the user wants to design a feature or a module, work out an interface, decide where a boundary belongs, or when another skill needs a shape agreed before code.
基于 SOC 职业分类
正在显示 SKILL.md
| name | retrofit-decision |
| description | Document an existing decision from code as an ADR or DES |
| argument-hint | <topic> |
| disable-model-invocation | true |
Document an existing architectural decision or design pattern from the codebase.
Topic or pattern: $ARGUMENTS
You must load the following skills and read the following files before proceeding.
katachi:retrofit-existing - Retrofit workflowdocs/architecture/README.md - Architecture decisions (ADRs)docs/design/README.md - Design patterns (DES)docs/planning/VISION.md - Project context for inference${CLAUDE_PLUGIN_ROOT}/skills/framework-core/references/code-examples.md - Code snippet guidance (especially for DES)${CLAUDE_PLUGIN_ROOT}/skills/framework-core/references/technical-diagrams.md - Technical diagram guidanceVerify:
If topic is vague, ask for clarification:
"You mentioned: [topic]
Can you point me to:
- A specific file or module that uses this pattern?
- Or describe how this decision manifests in the code?"
Read files that demonstrate the decision:
Task(
subagent_type="katachi:codebase-analyzer",
prompt=f"""
Analyze the codebase to document this decision.
## Analysis Type
decision
## Topic
{topic_description}
## Relevant Code
{code_content}
## Project Context
{vision_content if exists else "Infer from code"}
"""
)
Based on analysis, present recommendation:
"Based on the code analysis, this appears to be a [ADR/DES]:
[If ADR]:
This is an architectural decision - a one-time choice that would be expensive
to change. Examples: database choice, framework, authentication approach.
[If DES]:
This is a design pattern - a repeatable approach used in multiple places.
Examples: error handling, logging conventions, test structure.
Do you agree with this classification, or should it be the other type?"
Show the agent's draft:
## Draft [ADR/DES]
[Draft content]
---
### Notes from Analysis
- Context inferred from: [source]
- Alternatives inferred because: [reasoning]
- Consequences observed in: [locations]
What needs adjustment?
User provides corrections:
Continue until user approves.
Check existing documents:
For ADR:
ls docs/architecture/ADR-*.md
# Determine next number: ADR-NNN
For DES:
ls docs/design/DES-*.md
# Determine next number: DES-NNN
For ADR:
Update docs/architecture/README.md:
For DES:
Update docs/design/README.md:
Write to appropriate location:
For ADR:
# ADR-NNN: [Title]
## Retrofit Note
This ADR documents an existing decision discovered in the codebase.
Decision likely made: [date from git history or "Unknown"]
---
[Rest of ADR content with status: Accepted]
For DES:
# DES-NNN: [Pattern Name]
## Retrofit Note
This DES documents an existing pattern discovered in the codebase.
Pattern established in: [files where first used]
---
[Rest of DES content]
Ask:
"Which existing features use this [decision/pattern]?
I'll update their specs/designs to reference this document."
For each affected feature, note to update:
"Decision documented:
File: docs/[architecture/design]/[ADR/DES]-NNN-title.md
Type: [ADR/DES]
Status: Accepted
The [decision/pattern] is now part of the documented framework.
Future features should:
- Reference this in their designs
- Follow this [decision/pattern] unless superseding
Would you like to:
- Retrofit another decision: /katachi:retrofit-decision <topic>
- Update a feature design to reference this decision
- Retrofit a spec: /katachi:retrofit-spec <path>"
This is a collaborative process: