pragmatic-architecture

pragmatic-architecture is a skill for Claude Code from CodeAlive-AI/ai-driven-development. It costs 162 tokens per session (2,334 once invoked), scanned A, original, MIT.

A design method for choosing simple software structures that keep required guarantees while making current and likely future changes easier.

In plain words
What is it for?
Use it when a change has several reasonable designs and you need to decide where state, responsibilities, and system boundaries belong.
Why use it?
It helps avoid fragile designs, unnecessary state, and boundaries that make maintenance expensive. It compares possible designs against real constraints and failure cases.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ai-driven-development plugin — 22 skills, 1 agent shipped together

Good fit Use it when a change has several reasonable designs and you need to decide where state, responsibilities, and system boundaries belong.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codealive-ai/ai-driven-development/pragmatic-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CodeAlive-AI/ai-driven-development --skill pragmatic-architecture
Clone the repo
git clone --depth 1 https://github.com/CodeAlive-AI/ai-driven-development

Made for: Claude Code.

Or install ai-driven-development, the plugin that ships this one along with the rest of its 22 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pragmatic-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/codealive-ai/ai-driven-development/pragmatic-architecture/github.svg)](https://agentmods.dev/skills/codealive-ai/ai-driven-development/pragmatic-architecture)
Your own site
<a href="https://agentmods.dev/skills/codealive-ai/ai-driven-development/pragmatic-architecture"><img src="https://agentmods.dev/badge/skills/codealive-ai/ai-driven-development/pragmatic-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pragmatic-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/codealive-ai/ai-driven-development/pragmatic-architecture"><img src="https://agentmods.dev/badge/skills/codealive-ai/ai-driven-development/pragmatic-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 162 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,334 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00162 $0.02334
Opus 5.5 $0.00065 $0.00934
Sonnet 5.5 $0.00032 $0.00467
Haiku 4.5 $0.00016 $0.00233

Measured 5d ago against content hash f0a9f205eb17, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pragmatic-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pragmatic-architecture/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pragmatic Architecture

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:

  1. Admissible. A design that breaks a required promise under a realistic sequence of events is out, however short it is.
  2. Easy to change. Among admissible designs, prefer the one in which this change and the next plausible ones cost least, counting callers, migration, operation and recovery, not only the code written today.

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.

Size the design first

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:

  • an effect that cannot be taken back or that leaves the local transaction: money, a message, deletion, access rights, an external call;
  • state reachable by more than one writer, request or process: concurrency, retries, timeouts, background work;
  • a contract, schema or stored format with live clients or existing records;
  • a shared limited resource (pool, queue, quota), or recovery that is manual or slow.

Read the full file on GitHub · 157 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +1 lines · +4 tokens per session f0a9f205eb17
  2. 8d ago First seen · 156 lines · 158 tokens per session scan A 190a5060bc92

Subscribe to this mod's changes

pragmatic-architecture is a skill published in the GitHub repository CodeAlive-AI/ai-driven-development (194 stars, last pushed 2d ago), licensed MIT. It adds 162 tokens to every session and 2,334 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.

Related

pragmatic-architecture compared with skills from other repositories

pragmatic-architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pragmatic-architectureCodeAlive-AI/ai-driven-developmentSkill1942d agoMITA162Claude Code
agenttrace-session-auditsickn33/agentic-awesome-skillsSkill51kyesterdayMITA34Claude Code
grok-cliscarletkc/agentsSkill23227d agoApache-2.0A66Claude Code, Codex
brainstormingroundpilot/superpowers-antigravitySkill1023d agoMITA46Claude Code, Codex
marketing-copyscarletkc/agentsSkill23227d agoApache-2.0A121Claude Code, Codex
github-packages-npmalivirgo/Major-AI-SkillsSkill6yesterdayMITA26Claude Code
spec-investigatebenjaminthomas/spec-driven-devSkill23d agoMITA229Claude Code