improve-codebase-architecture

A codebase architecture survey that looks for places where modules hide too little policy and callers must know too much. Architecture here means the way the code is divided and connected.

In plain words
What is it for?
Finding high-value module or interface improvements, ranking them by benefit and migration cost, and selecting one architecture change to pursue.
Why use it?
It helps avoid unfocused cleanup and identifies structural changes that can reduce duplicated rules, awkward dependencies, and tests that reach into internal details.

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/moontzai/folderbridge-mcp/improve-codebase-architecture
Any agent
npx skills add MoonTzai/folderbridge-mcp --skill improve-codebase-architecture
Clone the repo
git clone --depth 1 https://github.com/MoonTzai/folderbridge-mcp

Made for: Claude Code, Codex.

Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 250 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00024 $0.00250
Opus 5 $0.00012 $0.00125
Sonnet 5 $0.00005 $0.00050
Haiku 4.5 $0.00002 $0.00025

Measured yesterday against content hash 762cfc33db4a, 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 yesterday.

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.

skill_packs/matt-pocock-engineering/skills/improve-codebase-architecture/SKILL.md · 17 lines

What it actually says

Improve Codebase Architecture — FolderBridge Adaptation

Use this as a focused architecture health survey, especially around code that is actively changing.

First understand the relevant modules, recent change hot spots, project vocabulary, tests, and recorded architectural decisions. Then look for deepening opportunities: places where callers must know too much, the same policy appears in several modules, multiple adapters imply a missing seam, or tests are forced to reach through internals because the public interface is too weak.

Do not produce a generic cleanup list. For every candidate, apply the deletion test: would removing the proposed module concentrate complexity somewhere worse, proving the module can hide real policy, or would it merely move names/files around? Prefer changes that reduce caller knowledge and improve locality/testability.

Rank candidates by leverage, current development activity, risk, and migration cost. Separate proven defects from architectural friction. Do not refactor solely because a file is large, and do not split a cohesive deep module just to reduce line count.

Once one opportunity is selected, switch to codebase-design vocabulary to design its interface before editing code.

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. yesterday First seen · 17 lines · 24 tokens per session scan A 762cfc33db4a

Subscribe to this mod's changes

improve-codebase-architecture is a skill published in the GitHub repository MoonTzai/folderbridge-mcp (0 stars, last pushed yesterday), licensed Apache-2.0. It adds 24 tokens to every session and 250 once invoked, about $0.0001 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

seller-research

Use when researching a merchant, storefront, marketplace seller, or merchant of record for a buying decision, especially when identity, refund terms, fulfillment, counterfeit risk, domain history, or independent buyer outcomes are uncertain.

cinderline/northcinder · 46 tokens

product-research

Use when researching or comparing a specific product, model, or variant for a buying decision, especially when specifications conflict, fit or compatibility matters, retailer copy dominates, or the evidence may be incomplete.

cinderline/northcinder · 43 tokens

codexless-release-supervisor

Prepare, validate, and publish Codexless preview/hotfix releases from the canonical household source, including acceptance anti-omission gates, candidate provenance/parity, manifest/build identity, native Windows/macOS fresh-install acceptance from clean public source, safe Git integration, GitHub prerelease…

liyana31811/Codexless · 87 tokens

codexless-browser-repair

Diagnose and temporarily repair Codexless Browser compatibility after a Codex, Chrome Skill, or Browser runtime update when Codexless Browser stopped working. Use for current-version Codexless Browser compatibility drift, not ordinary website bugs, general Browser operation, Codexless install/update work, or long-term…

liyana31811/Codexless · 70 tokens

codex-with-chatgpt

Use ChatGPT (web) as the planning and review brain for Codex coding sessions, while Codex keeps full execution ownership. Use when the user says "使用 Codex with ChatGPT ..." / "Set up Codex with ChatGPT" / "用 ChatGPT 规划", when they ask to connect ChatGPT to the current workspace, disconnect it, or run a task through…

XiaoDuoYa/codex-with-chatgpt · 90 tokens

add-widget

Add a new widget (React UI + MCP tool) to this template. Use when asked to "add a widget", "add a new tool with UI", "create a new widget", "scaffold a widget", or "build a new MCP App feature".

pomerium/mcp-app-typescript-template · 56 tokens