improve-codebase-architecture

improve-codebase-architecture is a skill for Claude Code, Codex from MoonTzai/folderbridge-mcp. It costs 24 tokens per session (250 once invoked), scanned A, original, Apache-2.0.

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

Written for no agent in particular: nothing here depends on one.

Good fit Finding high-value module or interface improvements, ranking them by benefit and migration cost, and selecting one architecture change to pursue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/moontzai/folderbridge-mcp/improve-codebase-architecture
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.

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.

Wrote 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.

agentmods badge for improve-codebase-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/moontzai/folderbridge-mcp/improve-codebase-architecture/github.svg)](https://agentmods.dev/skills/moontzai/folderbridge-mcp/improve-codebase-architecture)
Your own site
<a href="https://agentmods.dev/skills/moontzai/folderbridge-mcp/improve-codebase-architecture"><img src="https://agentmods.dev/badge/skills/moontzai/folderbridge-mcp/improve-codebase-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.

agentmods 80×15 button for improve-codebase-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/moontzai/folderbridge-mcp/improve-codebase-architecture"><img src="https://agentmods.dev/badge/skills/moontzai/folderbridge-mcp/improve-codebase-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00024 $0.00250
Opus 5.5 $0.00010 $0.00100
Sonnet 5.5 $0.00005 $0.00050
Haiku 4.5 $0.00002 $0.00025

Measured 1mo ago against content hash 762cfc33db4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

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. 1mo ago 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 (2 stars, last pushed 25d ago), licensed Apache-2.0. It adds 24 tokens to every session and 250 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-08-31.

Related

Other skills, from other repositories

erga-mcp

Use immediately when a user shares a job-posting URL—including a bare link or chat preview—and when organizing recruiting records, evaluating career evidence, or proposing a truthful résumé update through Erga MCP.

Adr1an04/erga-mcp · 44 tokens

mem0-cli

Mem0 CLI -- the command-line interface for mem0 memory operations. TRIGGER when: user mentions "mem0 cli", "mem0 command line", "@mem0/cli", "mem0-cli", "pip install mem0-cli", "npm install -g @mem0/cli", or is running mem0 commands in a terminal/shell (mem0 add, mem0 search, mem0 list, mem0 get, mem0 init, mem0…

mem0ai/mem0 · 177 tokens

mem0-vercel-ai-sdk

Mem0 provider for Vercel AI SDK (@mem0/vercel-ai-provider). TRIGGER when: user mentions "vercel ai sdk", "@mem0/vercel-ai-provider", "createMem0", "retrieveMemories", "addMemories", "getMemories", "searchMemories", "mem0 vercel", "AI SDK provider", "AI SDK memory", or is using generateText/streamText with mem0. Also…

mem0ai/mem0 · 146 tokens

mem0-tour

Browses all stored memories grouped by category with full content display. Use when reviewing all project memories, exploring stored knowledge, onboarding to a project, or getting an overview of captured decisions, conventions, and learnings.

mem0ai/mem0 · 47 tokens

python-env

Setting up or installing into a Python environment. One rule applies whether or not you read the body - the environment belongs with the project, so create it inside the project directory (.venv) or let uv manage it, and never in a scratch directory like /tmp and never by forcing an install into the system…

asgeirtj/system_prompts_leaks · 89 tokens

mem0-remember

Stores a memory verbatim from user input with appropriate type classification and metadata. Use when the user says remember this, save this, store this, note that, or explicitly asks to record a decision, preference, convention, or learning.

mem0ai/mem0 · 52 tokens