improve-codebase-architecture

A codebase architecture review finds opportunities to deepen or improve a software system using its domain language and architecture decision records. An architecture decision record is a document explaining an important design choice.

In plain words
What is it for?
Use it to improve architecture, plan refactoring, consolidate tightly coupled modules, make code more testable, and make it easier for AI tools to navigate.
Why use it?
It helps locate tightly connected modules, refactoring opportunities, and design choices that make code harder to test or navigate. It bases the review on the project’s existing context and decisions.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/sarthib7/agentsmith/improve-codebase-architecture
Any agent
npx skills add Sarthib7/agentsmith --skill improve-codebase-architecture
Clone the repo
git clone --depth 1 https://github.com/Sarthib7/agentsmith

Made for: Claude Code, Codex.

Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,150 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00068 $0.01150
Opus 5 $0.00034 $0.00575
Sonnet 5 $0.00014 $0.00230
Haiku 4.5 $0.00007 $0.00115

Measured 2d ago against content hash 9e9b617b1c70, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

improve-codebase-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 2d 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.

skills/improve-codebase-architecture/SKILL.md · 72 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 2d ago First seen · 72 lines · 68 tokens per session scan A 9e9b617b1c70

Subscribe to this mod's changes

improve-codebase-architecture is a skill published in the GitHub repository Sarthib7/agentsmith (9 stars, last pushed 15d ago), with no licence file. It adds 68 tokens to every session and 1,150 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other skills, from other repositories

criticism-self-criticism

触发:当一项工作已经完成、进入阶段验收、收到批评反馈,或反复出现同类错误需要系统纠偏时调用;常见信号包括 review、audit、retrospective、quality check、纠错与复盘。 English: Trigger after delivery or at a review checkpoint when quality must be examined honestly and errors must be corrected without defensiveness. Use this skill for structured self-review, feedback processing, and…

HughYau/qiushi-skill · 103 tokens

mass-line

触发:当你需要收集多方意见、把零散反馈整合成可执行方案,或把方案带回真实使用者/执行者验证时调用;常见信号包括 stakeholder input、user feedback、意见汇总、对齐与验证。 English: Trigger when input must be gathered from many people, synthesized into a clearer plan, and returned to the affected users or executors for validation. Use this skill for a collect-synthesize-validate loop.

HughYau/qiushi-skill · 103 tokens

workflows

触发:当你面临的任务明显需要多个思想武器协作时调用;常见信号包括:从零启动新项目、攻坚复杂疑难问题、对已有方案进行迭代优化。此 skill 提供标准化的跨 skill 工作流组合,解决"应该先用哪个 skill、怎么衔接"的问题。 English: Trigger when a task clearly requires multiple skills in sequence. Use this skill to select a standard workflow that chains skills together, defines data handoff between steps, and specifies…

HughYau/qiushi-skill · 117 tokens

investigation-first

触发:当你准备下判断、做决策或提出建议,但事实、上下文或一手信息还不充分时优先调用;常见信号包括 unknowns、信息缺口、证据不足、领域陌生、需要先摸清现状。 English: Trigger before making claims or decisions when context is incomplete, evidence is weak, or the domain is unfamiliar. Use this skill to investigate first, gather firsthand facts, and let reality shape the conclusion.

HughYau/qiushi-skill · 104 tokens

overall-planning

触发:当你需要在多个目标、利益方或相互制约的指标之间做动态平衡时调用;常见信号包括 trade-offs、目标冲突、系统性约束、优化一项会伤害另一项。 English: Trigger when several important goals must be advanced together and optimizing one dimension can damage another. Use this skill to map the key relationships, avoid one-sided decisions, and balance the system as a whole.

HughYau/qiushi-skill · 98 tokens

protracted-strategy

触发:当目标长期、任务复杂、资源暂时处于劣势,或短期无法速胜但又不能放弃时调用;常见信号包括 long-term effort、phased plan、endurance、战略耐心、需要分阶段推进。 English: Trigger when the work is long-horizon, difficult, and unlikely to be won quickly. Use this skill to divide the effort into stages, keep strategic confidence, and accumulate small wins into overall victory.

HughYau/qiushi-skill · 105 tokens