codebase-architecture SKILL.md skillA

codebase-architecture from mblode/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add mblode/agent-skills/codebase-architecture@git:20261022.dc3f816

Pins git:20261022.dc3f816 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
mblode/agent-skills
Path
skills/codebase-architecture/SKILL.md
Versions recorded
12
Latest version
git:20261022.dc3f816, committed Oct 22, 2026
First version recorded
Aug 5, 2026
Size
21,653 bytes
Repository stars
180
License
MIT

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", "gate an unattended agent fix job", or "triage alerts with an agent".

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 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
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add mblode/agent-skills/codebase-architecture@sha256:c8547e5e6465d7ac

The line at the top of this page pins the label git:20261022.dc3f816, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_awwra346xzdd4f45.svg)](https://markdownregistry.com/a/art_awwra346xzdd4f45)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 12 versions of this file, between Aug 5, 2026 and Oct 22, 2026, about one every 7 days.

versioncommittedcommitsizeaudit
git:20261022.dc3f816 latest2026-10-22 dc3f816 21,653 BA view · diff
git:20261022.8d78f922026-10-22 8d78f92 21,665 BA view · diff
git:20261008.f75aaa42026-10-08 f75aaa4 20,843 BA view · diff
git:20261008.50e47b32026-10-08 50e47b3 20,812 BA view · diff
git:20261003.54abc352026-10-03 54abc35 20,753 BA view · diff
git:20260927.92ed8e02026-09-27 92ed8e0 23,351 BA view · diff
git:20260921.b690e672026-09-21 b690e67 22,433 BA view · diff
git:20260904.359fa942026-09-04 359fa94 22,480 BA view · diff
git:20260901.a877ac02026-09-01 a877ac0 23,063 BA view · diff
git:20260830.c5765e52026-08-30 c5765e5 21,042 BA view · diff
git:20260805.b18d5872026-08-05 b18d587 20,590 BA view · diff
git:20260805.85390ba2026-08-05 85390ba 19,198 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (21653 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

mblode/agent-skills · 180 stars · license MIT · pushed 2026-11-01 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_awwra346xzdd4f45
GET https://markdownregistry.com/api/v1/resolve?ref=mblode/agent-skills/codebase-architecture
GET https://markdownregistry.com/api/v1/blob/c8547e5e6465d7ac17e52fc2985021961307f9d2f81178a9a3c8118b6a73e2dc

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from mblode/agent-skills

AGENTS.md AGENTS.md file
mblode/agent-skills · AGENTS.md
git:20260927.a1355f3 · audit A · 180 stars
agent-ready SKILL.md skill
mblode/agent-skills · skills/agent-ready/SKILL.md · Implements agent-readiness on public sites and docs from Mintlify Agent Score, AFDocs, Is Agentic, Is It Agent Ready…
git:20261027.0148e62 · audit A · 180 stars
agent-skills-creator SKILL.md skill
mblode/agent-skills · skills/agent-skills-creator/SKILL.md · Creates and improves portable Agent Skills with a validator, routing scenarios, and evidence-based keep, cut, merge, or…
git:20261004.37878f9 · audit A · 180 stars
agents-md SKILL.md skill
mblode/agent-skills · skills/agents-md/SKILL.md · Audits and edits agent instruction files, verifies repository commands, and migrates repositories to AGENTS.md as the…
git:20261022.dc3f816 · audit B · 180 stars
app-verification SKILL.md skill
mblode/agent-skills · skills/app-verification/SKILL.md · Builds and maintains a repo's own verification harness (verify CLI, doctor, worktree isolation, feature map, seed data)…
git:20261016.81d0af2 · audit A · 180 stars
autoship SKILL.md skill
mblode/agent-skills · skills/autoship/SKILL.md · Runs a changesets npm release through the version PR, CI publish, and registry verification. Use when asked to "release…
git:20261022.dc3f816 · audit A · 180 stars
ax-audit SKILL.md skill
mblode/agent-skills · skills/ax-audit/SKILL.md · Audits agentic products for tool parity, authority, approval payloads, recovery, and trust using 24 rules and a ship…
git:20261003.52dd41e · audit A · 180 stars
chat-history SKILL.md skill
mblode/agent-skills · skills/chat-history/SKILL.md · Recovers decisions, previous fixes, research, and what followed a prompt from past AI conversations, with source…
git:20261003.9187df5 · audit A · 180 stars
ci-speedup SKILL.md skill
mblode/agent-skills · skills/ci-speedup/SKILL.md · Speeds up CI and the merge path: finds where changes wait between push and deploy, then fixes the critical path, check…
git:20261022.d48d166 · audit A · 180 stars
dx-audit SKILL.md skill
mblode/agent-skills · skills/dx-audit/SKILL.md · Audits libraries, CLIs, and SDKs using 38 rules for public contracts, package exports, piped output, errors, and…
git:20261022.dc3f816 · audit A · 180 stars
eli5 SKILL.md skill
mblode/agent-skills · skills/eli5/SKILL.md · Picks the form that explains best and applies the house explanation style: plain prose, controlled English modelled on…
git:20261003.7f8f7cb · audit A · 180 stars
ghostwriter SKILL.md skill
mblode/agent-skills · skills/ghostwriter/SKILL.md · Writes, rewrites, and critiques messages, posts, review comments, tickets, PRDs, design docs, talk scripts, docs…
git:20261025.193fa28 · audit A · 180 stars

Every file in mblode/agent-skills

Other files named codebase-architecture

codebase-architecture SKILL.md skill
okhp3/skillz · community/codebase-architecture/SKILL.md · Designs, deepens, and hardens TypeScript codebase architecture in three modes: folder structures, module contracts, and…
git:20260828.866dec6 · audit A · 3 stars

Browse by kind, by grade A, or by owner.