ai-agents-architecture-contract

ai-agents-architecture-contract is a skill for Claude Code from rjmurillo/ai-agents. It costs 111 tokens per session (5,963 once invoked), scanned A, original, MIT.

A repository architecture guide that records which files are authoritative, which are generated, and which design rules must remain intact.

In plain words
What is it for?
Use it before changes involving multiple file trees, hooks, plugins, generated files, or questions about the project's source of truth.
Why use it?
It reduces the risk of changing the wrong copy of a file or breaking an architectural invariant, meaning a rule the system depends on.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions subagents.

Part of the project-toolkit plugin — 125 skills, 25 commands, 33 agents, 5 hooks shipped together

Good fit Use it before changes involving multiple file trees, hooks, plugins, generated files, or questions about the project's source of truth.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rjmurillo/ai-agents/ai-agents-architecture-contract
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 rjmurillo/ai-agents --skill ai-agents-architecture-contract
Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 125 skills, 25 commands, 33 agents, 5 hooks.

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 ai-agents-architecture-contract

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjmurillo/ai-agents/ai-agents-architecture-contract/github.svg)](https://agentmods.dev/skills/rjmurillo/ai-agents/ai-agents-architecture-contract)
Your own site
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/ai-agents-architecture-contract"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/ai-agents-architecture-contract/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 ai-agents-architecture-contract

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/ai-agents-architecture-contract"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/ai-agents-architecture-contract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,963 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 44
    Skill instructs the agent to never refuse or to always comply. Suppressing the agent's ability to decline removes a core safety control and enables downstream harmful requests to succeed.
    Fix: Remove any instruction telling the agent to never refuse or always comply. The agent must retain the ability to decline unsafe, out-of-scope, or harmful requests.
How audits are shown
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.00111 $0.05963
Opus 5.5 $0.00044 $0.02385
Sonnet 5.5 $0.00022 $0.01193
Haiku 4.5 $0.00011 $0.00596

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

Security

Grade A, and why

ai-agents-architecture-contract 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 4d 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.

.claude/skills/ai-agents-architecture-contract/SKILL.md · 184 lines

How it starts

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

AI Agents Architecture Contract

This skill is the map of design decisions that hold this repository up: what is canonical, what is generated, which invariants are enforced by gates, and where the structure is honestly weak. Read it before any change that touches more than one tree, any hook, any plugin surface, or any generated file. The repo's governance runs on observable evidence, not trust: active requirements name evidence that exists independent of any committed session log, so almost every claim below is backed by a gate you can run. (PR #5135, 2026-08-18, retired the earlier "verification-based enforcement" wording in favor of this evidence-sink framing; SESSION-PROTOCOL.md, the doc that carried that wording, was later deleted along with the session skill cluster.)

Triggers

  • which tree is canonical
  • architecture contract
  • why is this designed this way
  • what invariant am I about to break
  • where is the source of truth for this file

Process

Phase 1: Locate the source of truth before touching any file

The generation seam is ASYMMETRIC. There is no single "templates in, everything out" pipeline. Two seams coexist (ADR-072, status Proposed, corrected this premise explicitly: "the seam is asymmetric"):

  1. Agents: ADR-109 B1 made templates/agents/ canonical for every agent tree. <stem>.claude.md.tmpl renders src/claude/agents/<stem>.md, <stem>.copilot.md.tmpl renders src/copilot-cli/agents/<stem>.md and .github/agents/, and <stem>.shared.md renders src/vs-code-agents/ and feeds docs/agent-catalog.md. .claude/agents/ is a binplace copy of src/claude/agents/ (see the table row below).
  2. Rules, skills, hooks: ADR-109 B2 to B4 made templates/rules/, templates/skills/, and templates/hooks/ canonical for the Claude tree. rule_templates.py, skill_templates.py, and hook_templates.py render into src/claude/, and the binplace step copies the result into .claude/. A skill's other files (references, scripts) stay hand-maintained under .claude/skills/<name>/. Generators emit other harnesses' mirrors. There is no commands class: ADR-064 (issue #5632) converted every command into a skill and deleted the commands-to-skills bridge, so skills are the single user-invocable surface and check_commands_retired.py blocks a command coming back.

Read the full file on GitHub · 184 lines

Files

What ships with it

3 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. 4d ago Changed 620193562e76
  2. 5d ago Changed · +2 lines 2e7303a6dfa8
  3. 6d ago Changed · +1 lines 36930597da5e
  4. 16d ago Changed b8d9f8131867
  5. 22d ago Changed · +6 lines 0f1da71854a2
  6. 1mo ago Changed · +2 lines 67f85a8223c3
  7. 1mo ago Changed 112e9e13bfc7
  8. 1mo ago Changed · -1 lines 19e86a59ba54
  9. 1mo ago Changed 26285dd3a52d
  10. 1mo ago First seen · 174 lines · 111 tokens per session scan A 81d3e63637b7

Subscribe to this mod's changes

ai-agents-architecture-contract is a skill published in the GitHub repository rjmurillo/ai-agents (48 stars, last pushed today), licensed MIT. It adds 111 tokens to every session and 5,963 once invoked, about $0.0004 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-09-03.