Claude Code SkillDevelopment2 installs

Context Architecture

>-

Install with the Claude Code Templates CLI
$ npx claude-code-templates@latest --skill="development/context-architecture" --yes

Requires Claude Code. The command adds this skill to your project's .claudedirectory — nothing runs on ToolZip's servers.

What's inside this skill

Component source (preview)

Context Architecture: bind a repository's claims to mechanisms

This skill applies Context Architecture to a repository: it makes the repo's intent and behavior

equally legible to people and AI agents, and binds every claim the repo makes about itself to a

mechanism that fails when that claim stops being true. It works from the first commit (a repo can be

born legible) and on a repo that grew without design (restructured in steps, never all at once). The

job is to take the repo as it is and make it legible and self-verifying, without a big-bang rewrite.

Context Architecture treats the repository itself (its file tree, boundaries, conventions, and

embedded context) as a designed artifact, not an accident of growth. Introduced by Sergio Azócar in

October 2025. Canonical specification: https://context-architecture.dev

The one assumption

Design for a reader who **retains nothing between sessions and knows only what the repository says

out loud.** An AI agent meets this exactly; a new human contributor approximates it.

The rule (the test you run, claim by claim)

Every claim a repository makes about itself must be bound to a mechanism that fails when that
claim stops being true.

That is the whole architecture. Everything else is how you apply it.

A claim is anything the repository holds about itself, not just the shape of its folders. "Prices

are computed in this module and nowhere else" is a claim. "This operation responds within a certain

time" is a claim. "This data format does not break for the people already using it" is a claim. For

each one, ask: **is there a compiler, a linter rule, an automated test, or a review step (by a

person or an agent) that breaks when that stops being true?** If not, it is prose, and prose goes

stale without anything noticing. A claim with no mechanism behind it _is_ the violation.

The mechanism has to actually fail, not just exist. A performance test that never exercises the slow

path does not satisfy the rule, it violates it. The rule applies to itself: the set of tests and

rules that verify the repository is itself a set of claims, so it too is bound to a mechanism that

fails if it is weakened.

The loop (write a claim, verify it, repeat on every change)

Working with an agent is a continuous flow of code changes. The rule lives inside that flow, not off

to the side:

  • Write the claim. A change introduces or modifies something the repository holds about itself:
a new source of truth, an invariant, a convention.

  • Verify it. Bind that claim to a mechanism that fails when it stops being true, in the **same
change**. A change that touches existing code also meets the mechanisms already there: if it

violates a claim, something goes red before it reaches production.

  • Repeat on every change. This is not a setup you do once. It is a property maintained change by
change, which is why the repository's context grows with the system instead of falling behind.

When a change adds a new claim and leaves it loose, review (by a person or an agent) catches it and

requires it to be bound before the change is accepted.

Works with or without a person in the loop

Context Architecture serves the whole autonomy spectrum. What changes across it is **who consumes

the verification, not the verification.** The same AGENTS.md and the same mechanisms work at every

level:

LevelWho reviewsWhat breaks without repository discipline
Inlinea person approves each editthe agent reimplements things that already exist; the person burns time on what the tools could have caught
Asynca person reviews the change before integrating itreview does not scale; the integration gate exists but enforces nothing, one click lets a change through
Autonomousa person sets the rules, does not look at each changeif the mechanisms are missing, "done" is empty: the agent calls a change finished when it passes but is wrong
Orchestratednobody in the middlethe error multiplies at machine speed; the only arbiters are the repository's mechanisms

When there is a person, the mechanisms absorb the routine checks, so the person spends attention on

what needs judgment. When there is no person, the mechanisms are the reviewer.

The kinds of mechanism (not tools)

Binding a claim is connecting it to something that fails when it stops being true. Context

Architecture names the kinds of mechanism; the repository picks the product (oxlint or eslint,

it makes no difference), and the infrastructure runs it on each change.

  • The compiler catches what can be expressed in types: reintroducing a forbidden import breaks
the build.

  • The linter catches problems of structure and convention: a file in the wrong folder fails the
lint and cites the rule it breaks.

  • Automated tests catch documentation that lies and behavior that strays: an AGENTS.md that
mentions a deleted file turns the tests red.

  • Review, by a person or an agent, catches the meaning the others do not see: on each change it
asks whether any document now says something false, and requires the fix in the same change.

The split is clean: Context Architecture decides what gets verified and guarantees the mechanism

exists and fails. The infrastructure runs it.

When this applies, and when it does not

Apply it to: repositories that absorb agent or multi-person work, refactors at scale, mechanical

migrations, features with a clear spec. It applies from the first commit (a repository can be born

legible) and to one that grew without design, restructured in steps.

Do not force it onto: throwaway projects, ill-defined problems, the first prototype of something

not yet understood. The structuring work is an investment that pays back in proportion to how much

agent or multi-person work the repo absorbs. On a throwaway, the cost outweighs the return. Say so

when you see it.

The nine principles

Each principle is a property you can check, not an aspiration. Either it is true of the repository

and bound to a mechanism, or it is not. If it cannot be bound to something that fails, it is not a

principle.

Let the repository say what it is

01 · Structure Screams Intent. The file tree says what the system does, not what framework built

it. A billing/ folder names a business responsibility; a controllers/ folder names a technical

detail that could belong to any system. The framework lives one level down, inside the domain it

serves.

_Mechanism: a linter rule that errors when a file lands in a folder that does not match its domain._

02 · Context Lives With Code. Context lives next to the code it describes, at every important

boundary, not in a separate wiki that goes stale. It holds only what the code cannot say on its own:

where the source of truth is, what invariants must be respected, what tech debt was accepted on

purpose, what behavioral limits apply.

_Mechanism: a test that fails if an AGENTS.md mentions a file that no longer exists._

03 · Boundaries Are Explicit and Named. Each module and package is named for the responsibility

it owns. Folders like utils/, common/, or helpers/ collect anything, because the name rules

nothing out. Genuinely shared, domain-free code goes in a small shared/ with no dependencies

toward any domain. If you cannot name a boundary precisely, the boundary is usually drawn wrong.

_Mechanism: a rule that forbids a module from importing across another boundary through paths that

are not allowed, and breaks the build when it happens._

04 · The Repo Is Legible at Every Zoom Level. Legibility works at every level. A clean tree with

functions named doStuff or data2 is legible at one level and illegible at the next. The same

discipline that names folders names functions, types, and variables.

_Mechanism: linter rules on names and complexity limits._

05 · Capabilities Are Discoverable. The project's tools, scripts, and commands live in

predictable places with names that say what they do (package.json scripts, a scripts/ folder, a

skills folder). A capability an agent cannot find does not exist for that agent: it reimplements it.

The list of capabilities is generated from those predictable places, not written by hand.

_Mechanism: the list generated from the conventional paths, and a test that fails if a real

capability does not appear in it._

Bind every claim to a mechanism

06 · Intent Becomes Mechanism. Intent is written as a spec before the code, then turned into the

code and into the tests and rules that enforce it, and the spec is removed once its content already

lives there. What stays is the intent and its verification, not the code that satisfies it: as long

as the tests pin down the behavior, that code can be regenerated.

_Mechanism: the tests, the types, and the rules the spec was turned into._

07 · Conventions Are Codified, Not Implicit. A convention that lives only in people's heads is

invisible to an agent, and the agent will break it. Take it out of the culture and put it in the

tools that review the code: linter rules, type constraints, automated validations in CI that state

the rule and enforce it in the same place.

_Mechanism: the linter rules and the type constraints._

08 · Behavior Is Verifiable, Not Asserted. Every claim about how the system behaves (how long an

operation may take, what data must not cross a boundary, what format must not break for the people

already using it) is bound to an automated test that lives in the repository and goes red when the

behavior strays. A time limit in a document goes stale; the same limit bound to a test that fails

when it is exceeded is architecture.

_Mechanism: an automated behavior test (performance, data contract, security) that lives in the

repository and fails when the behavior deviates._

09 · The Verification Surface Is Itself Bound. The set of tests and rules that verify the

repository is, in turn, a set of claims, so it too is bound. An agent can rewrite the code freely,

but it cannot weaken or delete a test, a rule, or a validation to get a change through. Without a

person reviewing, this is the principle that matters most: the cheapest way to make a validation

pass is to remove it.

_Mechanism: a validation that goes red if the set of tests and rules changes without the

authorization the repository defined._

The procedure

Run four phases in order. Phases 1 and 2 are read-only; do not edit until you have the audit and a

prioritized plan. The work in phase 3 is incremental: one bounded change at a time, each landing

with the mechanism that keeps it true.

Phase 1: Audit (read-only)

Walk the repository and judge it against the nine principles. Read the top-level tree first, then

the boundaries, then a sample of leaf files. For each principle, record a verdict (holds / partial /

violated), the evidence (paths), and the mechanism that is (or should be) bound to it.

Use the five failure modes as diagnostic signals: each is what a cold reader does when a claim

is not bound, and each points back at the principle that is loose. A better model lowers their

frequency, it does not remove them, because the missing mechanism is in the repository, not the

reader. When you see one of these in the repo's history (or imagine a cold agent producing it), name

the unbound claim behind it:

  • Reimplementation. The source of truth was not locatable, so the reader rebuilt what existed.
(Points at 01, 03, 05.)

  • Invented structure. None was imposed, so the reader imposed its own. (Points at 01, 03.)
  • Obedience to false documentation. Cites deleted files or contradicts the current code. (Points
at 02, 06.)

  • Deprecated-pattern propagation. Copies the most visible pattern even when it is obsolete.
(Points at 04, 07.)

  • Random ambiguity resolution. Two conventions coexist; it uses whichever it read first. (Points

Preview truncated. View the full source on GitHub →

Type
Skill
Category
Development
Installs
2
Source
GitHub ↗

Related Claude Code Skills

SkillDevelopment

Code Reviewer

Comprehensive code review skill for TypeScript, JavaScript, Python, Swift, Kotlin, Go. Includes automated code analysis, best practice checking, security scanning, and review checklist generation. Use when reviewing pull requests, providing code feedback, identifying issues, or ensuring code quality standards.

3k installsView →
SkillDevelopment

Senior Frontend

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

2.7k installsView →
SkillDevelopment

Senior Backend

Comprehensive backend development skill for building scalable backend systems using NodeJS, Express, Go, Python, Postgres, GraphQL, REST APIs. Includes API scaffolding, database optimization, security implementation, and performance tuning. Use when designing APIs, optimizing database queries, implementing business logic, handling authentication/authorization, or reviewing backend code.

2.2k installsView →
SkillDevelopment

Senior Architect

Comprehensive software architecture skill for designing scalable, maintainable systems using ReactJS, NextJS, NodeJS, Express, React Native, Swift, Kotlin, Flutter, Postgres, GraphQL, Go, Python. Includes architecture diagram generation, system design patterns, tech stack decision frameworks, and dependency analysis. Use when designing system architecture, making technical decisions, creating architecture diagrams, evaluating trade-offs, or defining integration patterns.

1.9k installsView →
SkillDevelopment

Skill Creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

1.7k installsView →
SkillDevelopment

Senior Fullstack

Comprehensive fullstack development skill for building complete web applications with React, Next.js, Node.js, GraphQL, and PostgreSQL. Includes project scaffolding, code quality analysis, architecture patterns, and complete tech stack guidance. Use when building new projects, analyzing code quality, implementing design patterns, or setting up development workflows.

1k installsView →

Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.