agentleFS
gustavo-meilusgustavo-meilus/superpipelines/skills/sk-4d-method/SKILL.md

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.

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
  1. Distinctive:

    HARD-GATE: If ≥3 critical slots are missing, stop and emit targeted clarifying questions.

    line 20
  2. Distinctive:

    Goal: Ensure the response is optimized for the consumer's environment.

    line 35
  3. Distinctive:

    Use an inverted pyramid structure (conclusion first).

    line 36
  4. Distinctive:

    All four phases run internally.

    line 64

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 SignalRe-entry PhaseRationale
"Not what I asked"DeconstructMisaligned intent or goal.
"This is incorrect"DiagnoseTechnical failure or missed edge case.
"Use a different approach"DevelopCorrect intent, wrong implementation strategy.
"Format/style change"DeliverCosmetic or presentation refinement.
</routing_table>

Quick Reference

<quick_reference>

PhaseCore QuestionKey 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.