Agent skill

Codebase Architecture

by mblode in mblode/agent-skills

Designs module interfaces, deepens shallow modules, and installs enforceable repository guardrails and agent wayfinding.

MITAuto-check passedAI & LLM Engineering

Install Codebase Architecture

skills CLI
$ npx skills add mblode/agent-skills --skill codebase-architecture -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mblode/agent-skills codebase-architecture --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mblode/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/codebase-architecture .claude/skills/codebase-architecture && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codebase-architecture
GitHub stars
143
Token cost
~5.2k tokens
SKILL.md length
2,739 words
Files
16 (incl. references)
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

Designs module interfaces, deepens shallow modules, and installs enforceable repository guardrails and agent wayfinding.

  • Works in 7 steps: Constraints first: product scope, team… → Choose repo shape → Define backend module interfaces, each… → …
  • Asked to design the architecture
  • SKILL.md covers Contents, Modes, References and Design mode (new codebase), plus 6 more sections
  • Calls npm and git

What it does

Codebase Architecture is an agent skill from mblode/agent-skills. Designs module interfaces, deepens shallow modules, and installs enforceable repository guardrails and agent wayfinding. Use when asked to "design the architecture", "simplify our modules", "find shallow modules", "harden the repo", or "gate an unattended agent fix job".

Its SKILL.md is about 5.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including reference files (for example `evals/evals.json`, `evals/evaluation-scenarios.md` and `references/agent-runtime.md`).

It sits in AI & LLM Engineering. The repository describes itself as: Nobody ships AI slop on purpose. These skills make sure you don’t. The licence is MIT.

When your agent uses it

  • Asked to design the architecture
  • Simplify our modules
  • Find shallow modules
  • Harden the repo

Example prompts

  • “design the architecture”
  • “simplify our modules”
  • “find shallow modules”
  • “/codebase-architecture”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Constraints first: product scope, team size, compliance/security, expected scale, deploy targets, required integrations, and quality bar…
  2. Choose repo shape
  3. Define backend module interfaces, each naming its enforcement (import-boundary lint or type check)
  4. Define request context and middleware
  5. Define frontend boundaries (Next.js App Router default)
  6. Testing and release
  7. Every contract in the brief names the lint rule, type check, or test that catches its violation, then continue into Harden mode to wire…

What it can do on your machine

Read from SKILL.md and the folder at commit cef4cfa. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codebase Architecture loads about 5.2k tokens when it runs, and up to ~25k if it reads all its reference files. Until then it costs about 73 tokens; SKILL.md has 2,739 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~73
When it runs · the whole SKILL.md, loaded when a task matches
~5.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~25k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mblode/agent-skills at commit cef4cfa, republished under its MIT licence (© mblode). 2,739 words, ~5,189 tokens.

Download SKILL.mdSave it as .claude/skills/codebase-architecture/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.
name
codebase-architecture
description
Designs module interfaces, deepens shallow modules, and installs enforceable repository guardrails and agent wayfinding. Use when asked to "design the architecture", "simplify our modules", "find shallow modules", "harden the repo", or "gate an unattended agent fix job".

Codebase Architecture

Decide a TypeScript codebase's structure, improve it where change has become expensive, and make it hold. The target is a codebase a reader can hold in their head: few surfaces, one canonical way to do each job, and behaviour where you would first look for it.

  • IS: folder structures, module interfaces, request context and middleware pipelines, frontend/backend boundaries; architecture briefs; domain language and decision records; domain-informed deepening; guardrail tooling, CI gates, and agent wayfinding.
  • IS NOT: scaffolding a new repo (scaffold-nextjs for a Next.js turborepo, scaffold-cli for a TypeScript CLI), multi-tenant domain/isolation/routing (multi-tenant-architecture), the content of AGENTS.md itself (agents-md), a plan for one feature (planning), a diff-scoped cleanup pass (tidy), structural review of a local diff (tidy), or a product's own verify CLI, doctor command, and feature map (app-verification, call it by name).

Contents

  • Modes
  • References
  • Design mode (new codebase)
  • Deepen mode (existing codebase)
  • Harden mode (make it stick)
  • Validation loop
  • Output template
  • Gotchas
  • Related skills

Modes

Pick by the problem, not by the artifact, and say which you picked.

ModeYou are here whenOutput
DesignStarting a new app, service, or surface, and the structure is not decided yetAn architecture brief
DeepenThe code works, but change is expensive: concepts scattered, seams leaking, one idea under three namesRanked opportunities, then one migrated slice
HardenThe structure is decided and keeps decaying, or agents keep doing the wrong thing in this repoWired checks, markers, and recipes

Modes compose, and running more than one is normal. Design ends in Harden, because a contract with no check is a suggestion. Deepen ends in Harden, so the new seam cannot decay back. Harden runs alone when the structure is already right and only the enforcement is missing, which is the common case in a repo that agents work in.

When two look equally right, prefer Deepen. "Agents keep using the old pattern" sounds like Harden, but if the cause is one concept living in two places, quarantine only freezes the duplicate: Deepen deletes it and Harden holds the line until that lands. Harden alone is right when the old thing genuinely has to stay.

When you cannot write to the repo (no checkout, read-only request, or a question rather than a change), each mode's output degrades to its plan: the brief, the ranked opportunities, or the named checks with their rungs. Say which checks remain unproven, since none of them are wired.

As simple as possible, no simpler. Every mode cuts: surfaces in Design, concepts in Deepen, dual paths and dormant config in Harden. The floor does not get cut: validation at trust boundaries, error handling that prevents data loss, security, accessibility, observability on anything deployed, and whatever was explicitly asked for. A simplification that reaches one of those is a bug. Where a corner is cut on purpose, mark it with its ceiling and upgrade path rather than leaving the next reader to guess whether it is finished.

Copy this to track progress, and delete the lines for modes you are not running:

text
Codebase architecture progress:
- [ ] Modes chosen and stated (Design / Deepen / Harden)
- [ ] Design: assumptions stated, repo shape, every contract names its check, brief written
- [ ] Deepen: git hot spots, glossary, ranked opportunities with paths, one slice migrated
- [ ] Harden: existing checks surveyed, checks picked by failure, each landed green and proven to bite
- [ ] Validation loop run for the modes used; evidence recorded, N/A items named

References

Load only when the condition applies.

ReferenceModeRead when
references/vocabulary.mdAllBefore naming a module, interface, seam, or adapter in any output; it defines the deletion test
references/stack-defaults.mdDesignChoosing libraries, tooling, or deploy targets
references/api-design.mdDesign, DeepenDesigning endpoints, module interfaces, request context, error shapes, or forwarded credentials
references/distributed-correctness.mdDesign, DeepenThe work provably touches an external system, webhook, retry, audit trail, or money. In Deepen you can grep for it; in Design it is a question about requirements, so confirm before loading rather than inferring it from the product's domain
references/brief-conventions.mdDesignWriting the conventions, testing, quality-bar, or rollout and rollback sections of the brief
references/deepening-existing.mdDeepenRunning Deepen: opportunity patterns, design it twice, ranking, measuring an agent-facing change, output template
references/domain-language.mdDeepenWriting or fixing a glossary, resolving naming divergence, recording a decision
references/enforcement-ladder.mdHardenAdding any check to a repo that already violates it
references/guardrail-tooling.mdHardenChoosing and wiring the actual checks: dead code, duplication, cycles, module and package boundaries, file size, staleness gates
references/wayfinding.mdHardenAgents cannot find things, or keep re-deriving the same path
references/contagion-markers.mdHardenThe repo has legacy, generated, dual-path, or deliberately simplified code
references/verification-tiers.mdHardenDefining which commands an agent should run, and when
references/agent-runtime.mdHardenConfiguring the post-edit hook, the permission allowlist, or a job where an agent drafts fixes unattended

Design mode (new codebase)

Before any of this, ask whether each surface needs to exist. A module, service, app, or entrypoint that could be a folder in something that already ships is the cheapest architecture decision available, and the only one that stays cheap. Every surface you do accept pays the relationship cost in the surface-area budget (brief-conventions.md): name its owner, tests, observability, and deletion path before it goes in the brief.

  1. Constraints first: product scope, team size, compliance/security, expected scale, deploy targets, required integrations, and quality bar. A one-line request supplies none of these, so assume the common case, state every assumption in the brief's first section, and invite correction. Ask outright only where a wrong guess would restructure the brief rather than extend it, which in practice is multi-tenancy and whether the API is public.
  2. Choose repo shape:
    • apps/ for deployable surfaces (api, web, admin).
    • packages/ for shared libraries (shared, ui, icons, auth, proto).
  3. Define backend module interfaces, each naming its enforcement (import-boundary lint or type check):
    • handler: transport only.
    • service: business orchestration.
    • dao: database access only.
    • mapper: DB/proto/domain transformations.
    • constants and types: module-local contracts.
  4. Define request context and middleware:
    • Carry tenantId, userId, and traceId in an AsyncLocalStorage-backed RequestContext, initialized in every entrypoint (RPC, HTTP, jobs, CLI) and read via getContext(). A threaded ctx parameter grows every signature, and adding one field later touches every call site. Implementation in references/api-design.md.
    • Require an explicit auth policy per RPC method at registration; a method without one fails registration rather than defaulting to open.
    • Keep auth, logging, errors, and context in shared middleware, not per-handler code.
  5. Define frontend boundaries (Next.js App Router default):
    • app/ holds routing files only (page, layout, loading, error, route). Domain code lives in src/modules/<name>/ behind its root files; UI private to one route goes in a _components/ folder beside its page. A page that grows logic moves it to a module, not to a sibling file in app/.
    • Server Components by default; "use client" at the interactive leaves. Where a client wrapper needs server-rendered content, pass it in as children.
    • Server state in TanStack or Connect Query; client state in component state; MobX only for cross-cutting client state that fits neither. Each piece of data has one owner: server data mirrored into useState, or two stores synced with useEffect, is the sign that ownership is unclear.
    • proxy.ts (Next 16's name for middleware.ts) handles redirects, rewrites, and headers. Authorization is decided inside each route handler and Server Function, because a matcher-excluded path skips the proxy and Server Functions post to their page's route.
  6. Testing and release:
    • Unit tests stay DB-free; integration/E2E run in parallel with dynamically generated IDs so runs never collide on fixtures.
    • Release in small, complete, reversible vertical slices with a rollback plan per change.
    • A slice is complete only when reliability, error paths, observability, and user-facing states are covered; deferring them to a polish pass is how they never ship.
  7. Every contract in the brief names the lint rule, type check, or test that catches its violation, then continue into Harden mode to wire them.

Deepen mode (existing codebase)

Goal: domain-informed deepening, not a rewrite. Load references/deepening-existing.md for the analysis method, opportunity patterns, and output template.

  1. Map the domain language and decisions. Read CONTEXT.md, docs/adr/, or local equivalents if present, then read the code for entities, actions, and contexts as the team names them. Note divergence (one concept, three names; or one name, three concepts). Format and ADR rules in references/domain-language.md.
  2. Scope the scan by where change lands. Deepening pays off on code that keeps changing, so git log --oneline over a good stretch of history first and weight the files that keep coming up. An unscoped scan drifts into speculative cleanup.
  3. Find deepening opportunities. Look for anemic concepts, shallow modules, leaking seams, naming divergence, duplicated concepts, primitive obsession, misplaced logic, and tests forced past the public interface. Record each with file paths, never a vague smell. Check deletion first on every candidate: a concept with no live caller, a flag whose branch never runs, a layer with one implementation. Deleting it is the deepening, and it is the only move that cannot make the codebase harder to read.
  4. Rank by leverage. Prefer opportunities that pass the deletion test, localize named future changes, have low churn, meet a current requirement, and have a viable testing seam. Rank candidates before designing target interfaces; drop speculative cleanups. For the top candidate, design the interface twice before picking one.
  5. Migrate one vertical slice first. Prove the highest-leverage move end to end through one slice before generalizing.
  6. Enforce the new seam with lint, type, or test checks so it cannot decay, then roll out module by module. Continue into Harden mode for the enforcement rung and the check-bites test.
Show full SKILL.md (1,206 more words)Show less

Harden mode (make it stick)

Two halves: guardrails stop the wrong thing landing, wayfinding makes the right thing cheap to find. Both exist because agents arrive by grep, not by reading docs, so the warning has to live where they land and the rule has to be an exit code rather than a sentence someone might recall.

Reach for the strongest mechanism first: structure, then lint and CI, then prose, then human review; every review comment is a missing lint rule (references/enforcement-ladder.md).

Steps 1 to 3 always run. Steps 4 to 6 run only when their condition holds, and a request to add one check stops at step 3. Running all six for every request loads most of the bundle and is the failure this mode is most prone to.

  1. Survey what exists. Package scripts, CI steps, hook config, lint config, the instruction file, the docs index. Find three things: checks that run locally but do not gate the merge, checks that run in CI but cannot fail (verification-tiers.md, "Commands that lie"), and dormant config nobody invokes. Wire the first, fix the second, delete the third (references/contagion-markers.md).
  2. Choose checks by the failure they prevent, never by tool popularity. Categories and tools in references/guardrail-tooling.md. Pick the two or three failures this repo actually exhibits; installing the full set at once forces the weakest enforcement rung on all of them.
  3. Install each check: pick an enforcement rung for the violations that already exist (references/enforcement-ladder.md), ship it green, then prove it bites (run it, break it on purpose, watch it fail with a message naming the fix, revert). Wire it into both a pre-commit hook and CI.
  4. Wayfinding per references/wayfinding.md: naming and locality, the add-a-new-X recipe file, the trust-labeled docs index, one canonical instruction file.
  5. Contagion markers per references/contagion-markers.md: anything an agent must not copy or must not edit gets a greppable marker at the code site naming what to use instead.
  6. Runtime ergonomics: verification tiers in references/verification-tiers.md; session hooks, the permission allowlist, and unattended fix jobs in references/agent-runtime.md; review gating at rung 4 of the enforcement order.

Validation loop

Run the items matching the modes you ran, and record results in the output. Each needs evidence; "looks consistent" is not a pass. An item that cannot execute yet, because nothing is installed or the repo is not writable, is recorded N/A with that reason. Silently passing it is how an unenforced contract ships looking verified.

  1. Consistency (Design, Deepen): naming, module interfaces, and middleware rules read the same across every service. Evidence: a contradiction scan with zero findings.
  2. Enforceability (all): every contract names its lint rule, type check, or test. Evidence: an enforcement note per contract, and for any check actually installed, the pass, then fail on a deliberate violation, then pass after revert.
  3. Operability (Design): observability, health checks, and a rollback path per deployable surface. Evidence: the rollout section names each.
  4. Quality gates (whenever code changed): the repo's lint, type-check, and targeted tests (npm run lint, npm run check-types, npm run test --workspace=<pkg> or equivalents). Evidence: passing output, quoted.
  5. CI and local agree (Harden): the CI step invokes the same umbrella command a developer runs, or the difference is deliberate and stated.
  6. No dangling pointers, and a recipe works cold (Harden): a grep proving every path named in the docs index and instruction file exists, plus a fresh-context agent following one add-a-new-X recipe end to end with no further guidance.
  7. Net simplicity (all): the result leaves a reader less to hold, not more. Evidence: the net change in files, surfaces, and exported names, with every increase named and paid for by what it removed elsewhere; plus, for each layer, port, or indirection introduced, the second caller or implementation that made it real. An architecture pass that only adds has failed this check even when every other item passes.

On failure: fix the brief, the conventions, or the wiring, then re-run the loop.

Output template

Design mode produces this brief. Deepen mode's ranked-opportunity template is in references/deepening-existing.md. Harden mode's output is the wiring itself plus the loop's evidence, not a document.

markdown
# Architecture brief

## Context and constraints
## Repo shape
## Backend module interfaces
## Request context and middleware policy
## Frontend boundaries
## Testing strategy
## Quality bar and surface-area budget
## Rollout and rollback plan
## Open risks and follow-ups

Size the brief to the decisions, not to the template. Drop any heading the project does not face rather than filling it: a single-tenant internal service with no frontend does not owe you a Frontend boundaries section. Each section carries the decision and the constraint that forced it, not a restatement of the conventions in the references. A brief that pads to nine sections costs the review attention that the two contested decisions needed.

Gotchas

Harden-mode gotchas live in the reference each step loads (guardrail-tooling.md, enforcement-ladder.md, contagion-markers.md, verification-tiers.md, wayfinding.md).

  • Microservices for a team under 5 buy a deploy pipeline, contract versioning, and an on-call surface per service. Start with a modular monorepo; split when a boundary is proven by team or scale pressure.
  • App-level deps in a monorepo's root package.json hoist silently, so an app builds locally and breaks when deployed alone. Each app owns its deps.
  • A handler/service/dao contract with no import-boundary rule decays at the first deadline. Add the rule (dao may not import handler) the day you write the contract.
  • "use client" at page or layout level converts the whole subtree to client rendering and forfeits streaming and direct server data access. Push it to leaves.
  • Extracting to packages/ before 3+ apps need the code couples release cycles for nothing. The exception is the contract two surfaces already share (generated types, the RPC schema, branded IDs): that is the interface between them, and it belongs in a package at two apps.
  • Dual-writing to a database and a queue or webhook without an outbox (or CDC) loses or fabricates a notification whenever one side commits and the other fails. See references/distributed-correctness.md.
  • An externally-forceable invariant enforced by construction (unsigned type, hard CHECK) crashes or clamps when the outside world forces the state. Represent it, detect it post-factum, recover explicitly.
  • Relying on proxy.ts as the only authorization layer: a matcher-excluded path skips it, and Server Functions post to their page's route, so a matcher change silently removes coverage. Check authorization in the handler or Server Function itself.
  • A whole-codebase deepening scan without git log hot-spot scoping fills the list with modules nobody touches, and every entry on it is speculative by definition.
  • agents-md: the AGENTS.md / CLAUDE.md file itself. This skill owns the checks and docs tree that file points at; a rule a linter can enforce goes here as an exit code, not there as prose.
  • tidy: review and diff-scoped cleanup, which Harden's guardrails keep small.
  • planning: a plan for one feature; architecture briefs from Design mode feed into it.
  • scaffold-nextjs, scaffold-cli: creating the repo this skill then structures.
  • multi-tenant-architecture: tenant identification, isolation, and routing; this skill supplies the module layout underneath.
  • dx-audit: the developer-facing surface a package ships outward; api-design.md here covers only the contract shape.
  • app-verification: builds and maintains the verify CLI, doctor command, and feature map a repo runs itself with; this skill's Harden mode wires the CI checks that harness's own scripts and fixtures should pass. Call it by name.

Maintenance only: evals/evals.json and evals/evaluation-scenarios.md hold regression scenarios for changes to this skill; neither loads during a user task.

© mblode, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 15 other files (references) in skills/codebase-architecture of mblode/agent-skills.

  • SKILL.md
  • evals/evals.json
  • evals/evaluation-scenarios.md
  • references/agent-runtime.md
  • references/api-design.md
  • references/brief-conventions.md
  • references/contagion-markers.md
  • references/deepening-existing.md
  • references/distributed-correctness.md
  • references/domain-language.md
  • references/enforcement-ladder.md
  • references/guardrail-tooling.md
  • references/stack-defaults.md
  • references/verification-tiers.md
  • references/vocabulary.md
  • references/wayfinding.md

Open the folder on GitHubat commit cef4cfa

Compare with similar skills

Codebase Architecture next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codebase Architecture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codebase Architecture this skillmblode/agent-skills143—~5.2kAutomated safety check: PassMIT
Agent BuildershareAI-lab/learn-claude-code78k6 repos~1.2kAutomated safety check: PassMIT
Add Uint Supportpytorch/pytorch104k2 repos~2.3kAutomated safety check: PassCustom licence
Peft Fine TuningOrchestra-Research/AI-Research-SKILLs13k9 repos~3.1kAutomated safety check: PassMIT
Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs13k9 repos~3.3kAutomated safety check: PassMIT
1passwordtrpc-group/trpc-agent-go1.8k15 repos~656Automated safety check: PassApache-2.0

Similar skills

  • Agent Builder

    shareAI-lab/learn-claude-code

    Design and build AI agents for any domain. An agent skill from shareAI-lab/learn-claude-code.

    78k GitHub starsUsed in 6 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Add Uint Support

    pytorch/pytorch

    Add unsigned integer (uint) type support to PyTorch operators by updating ATDISPATCH macros.

    104k GitHub starsUsed in 2 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Peft Fine Tuning

    Orchestra-Research/AI-Research-SKILLs

    Parameter-efficient fine-tuning for LLMs using LoRA, QLoRA, and 25+ methods.

    13k GitHub starsUsed in 9 repos~3.1k tokens
    AI & LLM EngineeringAuto-check passed
  • Segment Anything Model Guide

    Orchestra-Research/AI-Research-SKILLs

    Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.

    13k GitHub starsUsed in 9 repos~3.3k tokens
    AI & LLM EngineeringAuto-check passed
  • 1password

    trpc-group/trpc-agent-go

    Set up and use 1Password CLI (op). An agent skill from trpc-group/trpc-agent-go.

    1.8k GitHub starsUsed in 15 repos~656 tokens
    AI & LLM EngineeringAuto-check passed
  • Chroma Vector Database

    Orchestra-Research/AI-Research-SKILLs

    Shows how to store documents and embeddings in Chroma, query them by similarity with metadata filters, and persist them to disk for RAG and semantic search projects.

    13k GitHub starsUsed in 8 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed

More from mblode/agent-skills

All 28 skills in this repo
  • Agent Ready

    mblode/agent-skills

    Implements agent-readiness on public sites and docs from Mintlify Agent Score, AFDocs, Is Agentic, Is It Agent Ready, or url-discovery-bench reports, or from server logs of agents 404ing on guessed…

    143 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Agent Skills Creator

    mblode/agent-skills

    Creates and improves portable Agent Skills with a validator, routing scenarios, and evidence-based keep, cut, merge, or retire decisions.

    143 GitHub stars~2.8k tokensUpdated 2 days ago
    Auto-check passed
  • Chat History

    mblode/agent-skills

    Recovers decisions, previous fixes, research, and what followed a prompt from past AI conversations, with source evidence.

    143 GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed
  • CI Speedup

    mblode/agent-skills

    Cuts the wait from push to green by measuring a pipeline's critical path from run timestamps, then splitting, sharding, trimming setup and sharing test module state, with a before/after ledger.

    143 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • PR Babysitter

    mblode/agent-skills

    Monitors or repairs an open GitHub PR: CI failures, conflicts, review threads, and merge readiness, reporting state changes.

    143 GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check passed
  • App Verification

    mblode/agent-skills

    Builds and maintains a repo's own verification harness (verify CLI, doctor, worktree isolation, feature map, seed data) and a reproduce-first bug handoff.

    143 GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed

Questions about Codebase Architecture

What does Codebase Architecture do?

Designs module interfaces, deepens shallow modules, and installs enforceable repository guardrails and agent wayfinding. Codebase Architecture is an agent skill from mblode/agent-skills. Designs module interfaces, deepens shallow modules, and installs enforceable repository guardrails and agent wayfinding.

When should I use Codebase Architecture?

Codebase Architecture fits situations like: asked to design the architecture; simplify our modules; find shallow modules; harden the repo.

How do I install Codebase Architecture in Claude Code?

Run `npx skills add mblode/agent-skills --skill codebase-architecture -a claude-code`. Or copy the skill folder (skills/codebase-architecture in mblode/agent-skills) into .claude/skills/codebase-architecture in your project. Claude Code loads it when a task matches its description.

How do I install Codebase Architecture in Codex?

Run `npx skills add mblode/agent-skills --skill codebase-architecture -a codex`. Or copy the skill folder (skills/codebase-architecture in mblode/agent-skills) into .agents/skills/codebase-architecture in your project. Codex loads it when a task matches its description.

Can I use Codebase Architecture in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mblode/agent-skills --skill codebase-architecture -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codebase-architecture, .gemini/skills/codebase-architecture, .github/skills/codebase-architecture and .opencode/skills/codebase-architecture in your project.

What does Codebase Architecture need to run?

Going by SKILL.md and its folder, Codebase Architecture needs the command-line tools its instructions call (npm and git).

Does Codebase Architecture access the network?

SKILL.md contains no URLs. Its commands use npm and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Codebase Architecture safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Codebase Architecture use?

Codebase Architecture is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codebase Architecture use?

About 5.2k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 20k tokens, read only when the agent opens those files.

What are the alternatives to Codebase Architecture?

Skills that share tags, products or a category with Codebase Architecture: Agent Builder (shareAI-lab/learn-claude-code, 78k stars), Add Uint Support (pytorch/pytorch, 104k stars), Peft Fine Tuning (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Segment Anything Model Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codebase Architecture?

mblode (a GitHub user) maintains it in mblode/agent-skills, which has 143 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 6, 2026.

Source: mblode/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.