sk-4d-method
Skill4 starsChanged 6 months agoMITView on GitHub
Provides a per-invocation four-phase processing wrapper (Deconstruct, Diagnose, Develop, Deliver) for structured request resolution. Use when an agent faces an ambiguous request, missing required slots, or feedback that requires re-entry into a specific processing phase.
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- cutting-a-releaseSkill
- cutting-a-releaseSkill
- adding-a-pipeline-stepSkill
- brainstormingSkill
- change-modelsSkill
- creating-a-pipelineSkill
- deleting-a-pipeline-stepSkill
- finishing-a-development-branchSkill
- migrating-a-pipelineSkill
- optimizing-a-pipelineSkill
- pipeline-architect-protocolSkill
- pipeline-auditor-protocolSkill
- pipeline-failure-analyzer-protocolSkill
- pipeline-optimizer-protocolSkill
- pipeline-quality-reviewer-protocolSkill
- pipeline-spec-reviewer-protocolSkill
- pipeline-task-executor-protocolSkill
- running-a-pipelineSkill
- sk-claude-code-conventionsSkill
- sk-dynamic-routingSkill
- sk-hashline-protocolSkill
- sk-hierarchical-contextSkill
- skill-architect-protocolSkill
- sk-model-migrationSkill
- sk-model-resolverSkill
- sk-pipeline-grillingSkill
- sk-pipeline-pathsSkill
- sk-pipeline-patternsSkill
- sk-pipeline-stateSkill
- sk-platform-dispatchSkill
- sk-rationalization-resistanceSkill
- sk-spec-driven-developmentSkill
- sk-worktree-safetySkill
- sk-write-review-isolationSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- updating-a-pipeline-stepSkill
- using-superpipelinesSkill
- verification-before-completionSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
HARD-GATE: If ≥3 critical slots are missing, stop and emit targeted clarifying questions.
- Distinctive: line 35
Goal: Ensure the response is optimized for the consumer's environment.
- Distinctive: line 36
Use an inverted pyramid structure (conclusion first).
- Distinctive: line 64
All four phases run internally.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
4D Method — Per-Invocation Processing Wrapper
<glossary>
<term name="4D">Deconstruct → Diagnose → Develop → Deliver.</term>
<term name="Hard-Gate">A mandatory stop point when critical information (audience, format, goal, constraints, scope) is missing.</term>
<term name="Re-entry">Returning to a specific 4D phase based on the type of feedback received.</term>
</glossary><protocol>
### 1. DECONSTRUCT (Intent & Entities)
- **Goal**: Strip the request to its core intent.
- Identify noun-level entities, explicit constraints, and target audience.
- Surface implicit assumptions and missing context.
- **HARD-GATE**: If ≥3 critical slots are missing, stop and emit targeted clarifying questions.2. DIAGNOSE (Specs & Guardrails)
- Goal: Transform vague terms into concrete specifications.
- Replace subjective language (e.g., "clean," "professional") with measurable metrics (e.g., "≤80 chars/line," "no passive voice").
- Separate overloaded asks into a numbered sub-task list.
- Anticipate the top 2–3 failure modes and design build-time guardrails.
3. DEVELOP (Tactics & Strategy)
- Goal: Match the task type to the optimal execution strategy.
- Select the appropriate model tier and effort level per project model-resolution rules.
- Define output format precisely (schemas, bullet counts, code languages).
- Layer constraints using primacy and recency (critical rules first and last).
4. DELIVER (Formatting & Scannability)
- Goal: Ensure the response is optimized for the consumer's environment.
- Use an inverted pyramid structure (conclusion first).
- Match the medium (e.g., Slack-tight vs. report-structured).
- Provide an actionable next step.
</protocol>
4D Feedback Routing
<routing_table>
| Feedback Signal | Re-entry Phase | Rationale |
| "Not what I asked" | Deconstruct | Misaligned intent or goal. |
| "This is incorrect" | Diagnose | Technical failure or missed edge case. |
| "Use a different approach" | Develop | Correct intent, wrong implementation strategy. |
| "Format/style change" | Deliver | Cosmetic or presentation refinement. |
| </routing_table> |
Quick Reference
<quick_reference>
| Phase | Core Question | Key Action |
| Deconstruct | "What is actually being asked?" | Separate intent from output; surface gaps. |
| Diagnose | "Where will this break?" | Replace vague terms; resolve conflicts. |
| Develop | "What's the best approach?" | Match strategy to task; define format. |
| Deliver | "Is this ready for the consumer?" | Organize for scannability; match context. |
| </quick_reference> |
<invariants>
- All four phases run internally; phases surface only on explicit request ("show 4D").
- The HARD-GATE in Phase 1 is non-negotiable for high-stakes tasks.
- Model selection and effort level follow project model-resolution rules (sk-model-resolver).
</invariants>Cross-References
sk-pipeline-patterns/SKILL.md— Pattern 6 definition.sk-spec-driven-development/SKILL.md— SDD handoff rules.sk-claude-code-conventions/SKILL.md— Scaling and model selection.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

