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 Rune-kit/rune --skill improve-architecturegit clone --depth 1 https://github.com/Rune-kit/runeWrote 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/rune-kit/rune/improve-architecture)<a href="https://agentmods.dev/skills/rune-kit/rune/improve-architecture"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/improve-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/rune-kit/rune/improve-architecture"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/improve-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.00061 | $0.03316 |
| Opus 5.5 | $0.00024 | $0.01326 |
| Sonnet 5.5 | $0.00012 | $0.00663 |
| Haiku 4.5 | $0.00006 | $0.00332 |
Grade A, and why
improve-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 8d 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 — 276 lines — stays where its author put it; the contents beside it link to each section on GitHub.
improve-architecture
Purpose
Surface architectural friction in a codebase and propose deepening opportunities — refactors that turn shallow modules into deep ones. Output is structured (numeric scores + JSON proposal payloads) so surgeon, review, and audit can consume it programmatically without re-reading the codebase.
The goal is testability and AI-navigability: a deep module presents a small interface that hides large machinery, so tests target one surface and future agents can reason about the system without traversing N small wrappers.
Vocabulary (controlled — use exactly)
These eight terms have precise meanings. Banned aliases: "boundary" (overloaded with DDD), "component" (UI-specific), "service" (microservice-specific), "layer" (too generic). See references/language.md for full definitions.
- Module — anything with an interface and an implementation (function, class, package, slice).
- Interface — everything a caller must know to use the module: types, invariants, ordering, error modes, config.
- Implementation — the code inside.
- Depth — leverage at the interface; large behavior behind a small interface.
- Seam — where an interface lives; place behavior can be altered without editing in place.
- Adapter — concrete thing satisfying an interface at a seam.
- Leverage — what callers get from depth.
- Locality — what maintainers get from depth.
Triggers
- Called by
cookPhase 5 (quality gate) when refactor signals appear in scout output - Called by
surgeonbefore any deepening session — produces the proposal surgeon executes - Called by
auditto compute the architecture sub-score - Called by
reviewwhen a reviewer flag mentions "shallow", "wrapper", "indirection" - Manual:
/rune improve-architecture <module-path>
Calls (outbound)
scout(L2): re-scan target module + callers when input context is stalebrainstorm(L2): when the deepened module needs a new interface, hand off indesign-it-twicemode (see brainstorm v0.6+)journal(L3): record an ADR if the user rejects a candidate with a load-bearing reason
What ships with it
5 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.
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.
- 8d ago First seen · 276 lines · 61 tokens per session scan A 38ac9cd63755
improve-architecture is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed 2d ago), licensed MIT. It adds 61 tokens to every session and 3,316 once invoked, about $0.0002 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-11-22.
improve-architecture compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| improve-architectureRune-kit/rune | Skill | 96 | 2d ago | MIT | A | 61 | Claude Code |
| criticism-self-criticismHughYau/qiushi-skill | Skill | 4.0k | 2d ago | MIT | A | 197 | Claude Code |
| fix-pr-review-looprichkuo/rk-skills | Skill | 50 | today | MIT | A | 90 | Claude Code |
| validate-issuerichkuo/rk-skills | Skill | 50 | today | MIT | A | 55 | Claude Code |
| fable-validate-looprichkuo/rk-skills | Skill | 50 | today | MIT | A | 102 | Claude Code |
| refactorsmallnest/goal-workflow | Skill | 303 | 2mo ago | MIT | A | 71 | Claude Code |
| walkthroughsmallnest/goal-workflow | Skill | 303 | 2mo ago | MIT | A | 131 | Claude Code |