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.
npx skills add coco-research/coco --skill arch-indexgit clone --depth 1 https://github.com/coco-research/cocoWrote 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.
[](https://agentmods.dev/skills/coco-research/coco/arch-index)<a href="https://agentmods.dev/skills/coco-research/coco/arch-index"><img src="https://agentmods.dev/badge/skills/coco-research/coco/arch-index/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.
<a href="https://agentmods.dev/skills/coco-research/coco/arch-index"><img src="https://agentmods.dev/badge/skills/coco-research/coco/arch-index.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00133 | $0.02720 |
| Opus 5.5 | $0.00053 | $0.01088 |
| Sonnet 5.5 | $0.00027 | $0.00544 |
| Haiku 4.5 | $0.00013 | $0.00272 |
Grade A, and why
arch-index 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.
arch-index
Produces one artifact: .arch/index.json, a commit-pinned map from each architectural
component of a repository to the real directories and files that implement it. Every
claimed path is verified to exist by a script with an exit code, not by a promise in a
prompt.
Guiding principle — Paths or it does not exist. The protocol that consumers follow
is team:architecture.md. This file is the producer.
What this skill is for, and what it is not for
It is for answering, mechanically: which files implement this component, and has that stopped being true.
It is not a design tool. The index is reverse-only — it describes code that exists
on disk at a known commit. There is no mode for specifying a system that has not been
built, because the central check is that every path resolves. Forward design work
belongs in /team think, the SI-*-Design councils, or
/util:create-architecture-documentation.
It is not a codebase-mapping tool either, and it should not act like one. When
.planning/codebase/ exists, gsd-map-codebase has already produced seven structured
documents covering the stack, integrations, architecture, structure, conventions,
testing, and concerns. This skill reads those and skips crawling entirely. Crawling
a repository that has already been mapped is the exact waste this skill was designed to
avoid, and duplicating gsd-map-codebase would make it a worse version of a tool that
already exists.
It is not a work-allocation mechanism. The index sits at C4-Container altitude, so a single component can own thousands of files. Nothing derives per-agent file ownership from it.
Modes
Resolve the mode from the invocation. When none is given, use drift if
.arch/pinned-commit exists and build if it does not.
build
Step 1 — find prior art before doing any work. In this order:
- If
.planning/codebase/exists, readARCHITECTURE.md,STRUCTURE.md,STACK.md, andINTEGRATIONS.mdfrom it. Setsourcetogsd-codebase-map. Skip to step 2. Do not crawl. - Otherwise, if gitnexus is available for this repository, call
mcp__gitnexus__contextandmcp__gitnexus__group_listfor a deterministic view of module grouping. Setsourcetogitnexus. Skip to step 2.
What ships with it
18 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.
- references/analysis-taxonomy.md 4.7 KB
- references/arch-plan.md 7.9 KB
- references/component-rules.md 6.8 KB
- references/schema.md 9.1 KB
- references/tool-frugality.md 4.6 KB
- scripts/arch_drift.py 8.4 KB runs code
- scripts/fixtures/bad-invariants.json 1.6 KB
- scripts/fixtures/bad-paths.json 1.9 KB
- scripts/fixtures/good.json 3.2 KB
- scripts/fixtures/plan-bad-shape.json 1.3 KB
- scripts/fixtures/plan-good.json 1.2 KB
- scripts/fixtures/plan-unbuilt.json 1.3 KB
- scripts/repo_tree.py 7.4 KB runs code
- scripts/run_fixtures.sh 7.2 KB runs code
- scripts/validate_index.py 14 KB runs code
- scripts/verify_arch_plan.py 10 KB runs code
- templates/ARCH-EVIDENCE.md.template 2.0 KB
- templates/INDEX.md.template 1.3 KB
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.
- 2mo ago Changed a4cffa859643
- 3mo ago First seen · 213 lines · 133 tokens per session scan A 485483ff06a0
arch-index is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 133 tokens to every session and 2,720 once invoked, about $0.0005 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-08-30.
arch-index compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| arch-indexcoco-research/coco | Skill | 323 | yesterday | Apache-2.0 | A | 133 | Claude Code, Codex |
| session-handoffwanshuiyin/HERO-Anti-OverDefense | Skill | 929 | 12d ago | MIT | A | 34 | Claude Code, Codex |
| proxmox-fullmarcusquinn/aidevops | Skill | 476 | today | MIT | A | 27 | Claude Code |
| a-philosophy-of-software-designciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 33 | Claude Code, Codex |
| handoffChemaclass/agnostic-ai | Skill | 31 | today | MIT | A | 14 | Claude Code, Codex |
| template-autopoiesisdocxology/template | Skill | 25 | today | Apache-2.0 | A | 51 | Claude Code, Codex |
| template-publishdocxology/template | Skill | 25 | today | Apache-2.0 | A | 52 | Claude Code, Codex |