/ai-driven-development:pragmatic-architecturefrom ai-driven-development
Design method for simple, non-fragile solutions covering model choice, state ownership, boundaries, and implementation order. Based on Kent Beck's 'make the change easy, then make the easy change'.
Ships in ai-driven-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Core rule: "For each desired change, make the change easy (warning: this may be hard), then make the easy change" (Kent Beck). Designing is finding the structure in which the change at hand is easy and every promise the system must keep still holds.
Judge a design by two tests, in this order:
Simple means few things to hold in mind at once and few conditions that must hold together, not few lines or files. Elegant means a small consistent set of concepts covers the cases without exceptions. Fitting means the cost matches the stakes, scale, deadline, team and lifetime of this task. Remove accidental states, dependencies, variants and duties. Never remove state a guarantee needs: the identity of an operation, an outcome not yet known, compatibility between versions.
| The change | What to do |
|---|---|
| One obvious design, no signal below | Make it directly. No record. |
| Several reasonable constructions, an awkward direct change, or cases that multiply | Follow the route briefly. Record the decision in one sentence. |
| A signal below is touched | Follow the route in full, with a property card for each promise the signal puts at risk. With several signals, or across a service or team boundary, have someone who did not write the design check it. |
Signals:
Judge by what the change touches, not by the size of the diff.
Each step ends in an output. Reuse an output that is already known; go back only when a deciding fact changes.
context.md.models-and-boundaries.md.failure-and-recovery.md.change-path.md.pragmatic-verification). Stop when more analysis no longer changes the choice or the
accepted risk. Output: the design record.A direct change needs none. A real choice needs one sentence: "Need X under C. Must keep I. Chose A over B because Y, accepting Z. Verify by P. Revisit when R." Anchor it in the code at hand: where the change lands, what a caller no longer has to know after the preparation, and the scenario that shows the must still holds. A promise at risk needs a card:
Property the observable promise and the outcome that must not happen
Mechanism who controls the state and which transitions are allowed
Assumptions dependency contracts; the failure, time and concurrency model
Counterexample the 3-4 events that would break it, and what stops them
Limits the nearest realistic failure the mechanism does not stop, and who accepted it
Evidence what is checked, on which code or model, and what that leaves uncovered
Recovery what is true after partial execution, a crash, a version change
"None" is not a counterexample. Give the strongest sequence found and the exact point where the
mechanism stops it; if nothing stops it, the design is not admissible yet. A counterexample the
mechanism was built for proves little: Limits names the one it was not built for.
Add JSON to an import that reads CSV, validates rows and writes them in one function. Clients repeat a request after a timeout, and rows must not be imported twice.
if format == "json" inside that function. Every later format touches validation
and commit again.Read a reference only when its trigger applies.
| Read | When |
|---|---|
| context.md | The task is underspecified; which facts matter and when to stop asking; quality words without numbers; cost over the lifetime |
| models-and-boundaries.md | Choosing a model, data shape, boundary or interface; special cases keep growing; two principles in conflict |
| failure-and-recovery.md | A sizing signal is touched; writing a property card or a counterexample; retries, timeouts, overload, recovery |
| change-path.md | The change is hard in the current structure; code without tests; a schema, contract or data migration; whether to tidy first |
| threat-model.md | The change adds or widens what an untrusted party can reach, or changes who may do what |
| moves.md | The obvious design is stuck or heavy |
| sources.md | The authority behind a rule is needed |
README.md (opens in a new tab)references/change-path.md (opens in a new tab)references/context.md (opens in a new tab)references/failure-and-recovery.md (opens in a new tab)references/models-and-boundaries.md (opens in a new tab)references/moves.md (opens in a new tab)references/sources.md (opens in a new tab)references/threat-model.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub codealive-ai/ai-driven-development --plugin ai-driven-development22 skills in this plugin
/agentic-readinessAudit and improve repositories for reliable agentic work across Codex and Codex App, Claude Code, and OpenCode. Use when reviewing AGENTS.md or CLAUDE.md quality and discovery, instruction routing in monorepos or meta-repos, agent settings, MCP configuration, skills, subagents, context budgets, or repository organization for coding agents./bug-fix-protocol8-step disciplined bug-fix protocol that treats every production bug as two failures — the code defect itself and the testing system that allowed it through. Use when fixing a production bug, investigating a regression, writing a post-mortem, or auditing a missed defect. Triggers on "fix this bug", "production bug", "regression test", "post-mortem", "test gap", "why did the tests miss this"./clipboardCopy text to clipboard with optional rich formatting. Triggers on "copy to clipboard", "copy that", "pbcopy", "copy formatted", "copy rich text"./code-that-fits-in-your-headHeuristics for the shape of code inside one code base, after Mark Seemann's Code That Fits in Your Head (2021), updated for coding agents: units small enough to hold in mind, invariants in types, APIs hard to misuse, explicit effects. Use when writing or reviewing code, refactoring accidental complexity or a Big Ball of Mud, controlling technical debt in generated code, designing a type, an invariant or an in-code API, decomposing a long function or a tangled module, replacing a method or class side by side (Strangler), reading or measuring an unfamiliar code base, debugging a defect by hypothesis and bisection, setting up a maintainable code base, or turning a recurring finding into a lint or CI gate. Not for choosing, writing or repairing tests, TDD included (pragmatic-verification), choosing a design, state ownership, migration or rollout, or threat modelling (pragmatic-architecture), security audits, production incident response, performance profiling, or language and framework tutorials./coding-agents-managementManages MCP servers, lifecycle hooks, agent settings, permissions, rules, and plugins across Antigravity (App 2.0, IDE, CLI agy), Claude Code/Desktop, Codex CLI/App, OpenCode, Devin, Cursor, Grok Build, Gemini CLI, Qwen Code, Kimi Code, Hermes, Oh My Pi (omp), and VS Code. Use when adding or debugging MCP servers, automating tool hooks, configuring TOML/JSON/JSONC settings and sandboxes, or scaffolding, validating, and publishing plugins. Do not use for authoring, auditing, optimizing, or deduplicating standalone SKILL.md skills — use skills-management instead./fetch-url-as-markdownFetch a web page (URL) and return clean Markdown via local trafilatura, with Exa MCP as a fallback for JS-rendered or anti-bot pages. Use when the user asks to read, fetch, scrape, summarize, or quote a URL — prefer this over the built-in WebFetch tool. Don't use for binary files (PDFs, images, archives) or for fetching API/JSON endpoints.Other plugins' skills for the same job