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 boshu2/agentops --skill architecturegit clone --depth 1 https://github.com/boshu2/agentopsWrote 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/boshu2/agentops/architecture)<a href="https://agentmods.dev/skills/boshu2/agentops/architecture"><img src="https://agentmods.dev/badge/skills/boshu2/agentops/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.
<a href="https://agentmods.dev/skills/boshu2/agentops/architecture"><img src="https://agentmods.dev/badge/skills/boshu2/agentops/architecture.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.00032 | $0.01967 |
| Opus 5.5 | $0.00013 | $0.00787 |
| Sonnet 5.5 | $0.00006 | $0.00393 |
| Haiku 4.5 | $0.00003 | $0.00197 |
Grade A, and why
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 19d 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 — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Architecture
Architecture finds where a codebase's structure makes change expensive and proposes a better shape: a deeper module, a seam where behavior has to vary, or a boundary moved to where the domain language changes. It analyses and proposes; it edits nothing. A user sees it worked when each proposal cites the located friction at file:line, compares call sites against "leave it", and names the step after which reversal stops being cheap.
- Use Refactor to execute one behavior-preserving transformation.
- Use Implement to change behavior.
- Use Plan to slice a chosen change.
- Use Domain to settle what terms mean per context.
- Use Review for advice on an existing plan or diff.
Vocabulary
Use these meanings in every proposal so the caller can compare them.
- Module: anything with an interface and an implementation: a function, type, package or service.
- Interface: everything a caller must know to use the module correctly: the signature, plus call order, invariants, error cases, required configuration and cost.
- Implementation: the code behind the interface.
- Depth: how much the interface hides relative to what callers must know. A deep module hides a lot behind a little; a shallow one asks callers to know nearly as much as it does.
- Seam: a place where behavior can vary without editing the code there, such as a parameter, an injected dependency or a module edge.
- Adapter: code that fits a technology or external system to a seam the domain defines.
- Locality: what changes together lives together, so one decision has one place to change.
- Information leakage: one design decision known in several modules, so changing it means editing each of them.
Procedure
- Start from named pain. Use the pain the caller names: a change that was hard, a defect class that returns, a test that breaks for unrelated reasons. With none named, gather candidates from evidence before reading code broadly: files that change together in history, churn hotspots and fix clusters (see the history queries), and slow or brittle tests (from CI or the caller). State which evidence you used and its window. Without history (pasted code, shallow clone), say co-change and churn are unknown. With no pain and no evidence, ask for one change that hurt instead of surveying the whole codebase.
- Read recorded decisions for the area: ADRs, architecture docs, contracts. Leave a settled decision alone unless the located friction justifies reopening it, and then say which decision and why.
- Locate the friction. Trace the files and call sites a typical change in the pain area touches, and cite file:line. Shallow-module signals: a pass-through layer; an interface about as complex as its implementation; callers that must call in a set order; one decision repeated across modules; options added one caller at a time; tests that mock internals; a helper split out to be tested while the caller wiring it stays untested. Ask what callers would have to know if a suspect module disappeared: nothing new means it was a pass-through; the same rule reproduced in several callers means it earns its place. A signal becomes a finding only when located and tied to the pain; rarely changed code with an awkward shape usually costs less left alone. How to confirm each signal, and its look-alikes, is in the module depth reference.
- Check boundaries and direction. Where a word changes meaning, or two words name one thing, a context boundary is likely; confirm the terms with Domain. Domain rules should not import adapters such as storage, HTTP, CLI parsing or file formats; adapters depend on ports the domain defines.
- Design it twice. For each friction worth a proposal, sketch two interface alternatives plus "leave it". When the caller brings a candidate shape, it is one of the two. Add a third only when the decision turns on a design axis the first two share; never add an option to reach a count. Judge them by the call sites they produce and the change they make cheaper, not by internal elegance. Vary one design axis at a time.
- Name how tests move. A deep module is tested through its interface. Say which tests that mock internals or pin call order would be replaced by tests at the new interface, and which stay; what sits behind the seam decides the test placement.
- Rank, return and stop. Report the strongest proposals first in the shape below, with a migration that keeps every step working. The caller chooses one; a single behavior-preserving transformation goes to Refactor, anything larger or behavior-changing to Plan.
What ships with it
1 file 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.
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.
- 19d ago Changed · +6 lines 78a538af59e1
- 29d ago Changed · +3 lines 44aa4350c212
- 1mo ago Changed · -14 lines 29eeb3942cf1
- 1mo ago First seen · 161 lines · 32 tokens per session scan A ee7f40ad5435
architecture is a skill published in the GitHub repository boshu2/agentops (464 stars, last pushed yesterday), licensed Apache-2.0. It adds 32 tokens to every session and 1,967 once invoked, about $0.0001 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-10-22.
architecture compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| architectureboshu2/agentops | Skill | 464 | yesterday | Apache-2.0 | A | 32 | Claude Code |
| brainstormOutlineDriven/odin-claude-plugin | Skill | 40 | 2mo ago | Apache-2.0 | A | 85 | Claude Code, Codex |
| audit-projectOutlineDriven/odin-claude-plugin | Skill | 40 | 2mo ago | Apache-2.0 | A | 50 | Claude Code, Codex |
| commit-push-prOutlineDriven/odin-claude-plugin | Skill | 40 | 2mo ago | Apache-2.0 | A | 46 | Claude Code, Codex |
| commitOutlineDriven/odin-claude-plugin | Skill | 40 | 2mo ago | Apache-2.0 | A | 46 | Claude Code, Codex |
| duetOutlineDriven/odin-claude-plugin | Skill | 40 | 2mo ago | Apache-2.0 | A | 28 | Claude Code, Codex |
| prototypeOutlineDriven/odin-claude-plugin | Skill | 40 | 2mo ago | Apache-2.0 | A | 36 | Claude Code, Codex |