Skill

The Context Architecture skill, run it with your agent

The Context Architecture skill is an agent-agnostic procedure that reads an existing repository as a cold reader, audits it against the eight principles, finds the documentation that lies, and hands back an ordered backlog of fixes. It needs no server. The install is one file your agent reads.

Read as

The skill is the specification, turned into something your agent runs. One Markdown file. You load it, point it at a repo, and it reads the code as a reader with no memory, audits it against the eight principles, and tells you where that reader would have to guess. Then it hands back the backlog in the order the guide lays out.

No server, no dependency, no special tooling. It is a file your agent reads, which is principle 06 (Capabilities Are Discoverable) applied to the skill itself.

What it does

  • Audits the repo against the eight principles and the five failure modes, and writes a report with a verdict and the evidence behind it, one per principle.
  • Finds context-rot: docs that cite deleted files, name renamed modules, or contradict the code.
  • Proposes a backlog: PR-sized changes ordered by leverage, each paired with the check (lint, types, test, review) that keeps its claim honest.
  • Drafts AGENTS.md files at the boundaries, holding only what you cannot get from the code.

It works on code that already exists and grew messy. It does not scaffold new projects.

Install it

One command covers most tools. The skills CLI reads the skill from the repo and drops it into whatever agent you have:

npx skills add sergioazoc/context-architecture

It asks which tool to install into. Pass -a <tool> to pick one (for example -a claude-code), -g to install it for all your projects, and -y to skip the prompts. The per-tool sections below cover the manual path if you would rather drop the file in yourself, or your tool is not on its list.

Claude Code

npx skills add sergioazoc/context-architecture -a claude-code -g

By hand, with no Node: save the file into a folder named for the skill, then restart Claude Code. The folder name is what you type as the /context-architecture command, so keep it exactly that.

mkdir -p ~/.claude/skills/context-architecture
curl -fsSL https://context-architecture.dev/skill.md -o ~/.claude/skills/context-architecture/SKILL.md

Drop the ~/.claude for a personal install; use .claude/skills/context-architecture/SKILL.md to scope it to one project instead.

Cursor

Save it as a project rule. The .mdc extension matters, a plain .md in that folder is ignored:

mkdir -p .cursor/rules
curl -fsSL https://context-architecture.dev/skill.md -o .cursor/rules/context-architecture.mdc

The skill's description frontmatter tells Cursor to pull the rule in when it is relevant.

GitHub Copilot (VS Code)

VS Code reads Agent Skills natively, the same SKILL.md format. The folder must be named for the skill, or Copilot will not load it:

mkdir -p .github/skills/context-architecture
curl -fsSL https://context-architecture.dev/skill.md -o .github/skills/context-architecture/SKILL.md

On JetBrains, or older Copilot without skills, paste the file into .github/copilot-instructions.md instead.

OpenAI Codex

mkdir -p ~/.agents/skills/context-architecture
curl -fsSL https://context-architecture.dev/skill.md -o ~/.agents/skills/context-architecture/SKILL.md

Use a project-local .agents/skills/context-architecture/SKILL.md to scope it to one repo. Restart Codex if it does not pick the skill up.

Other tools

Same idea: the file goes where the tool reads its rules.

  • Windsurf: .windsurf/rules/context-architecture.md. If Windsurf complains about size, point it at the file instead of pasting the whole thing.
  • Cline: .clinerules/context-architecture.md.
  • Zed: append it to your AGENTS.md, which Zed reads. A loose .rules file can shadow an existing one, so appending is safer.
  • Aider: save it as CONVENTIONS.md, then run aider --read CONVENTIONS.md.

Any other agent

Grab the raw file and paste it into your tool's instructions, or point the tool at it:

curl -fsSL https://context-architecture.dev/skill.md

It is self-contained. It restates the rule, the eight principles, and the five failure modes, so it works with no way back to this site.

Use it

Load the skill and point your agent at a repo:

Apply the Context Architecture skill to this repository.

It writes the audit first, read-only, then the ordered backlog. Work it one change at a time, each landing with the check that keeps its claim from rotting. Start where it tells you to: the docs that lie, and the AGENTS.md files at the top boundaries. That is where you get the most back per edit.

Where to go next

  • The specification: the rule, the four pillars, the mechanism, and the eight principles.
  • The guide: the same work, done by hand, step by step.
  • The glossary: the terms the skill uses, defined.