Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.
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
# Improve Codebase Architecture
Surface architectural friction and propose deepening opportunities: refactors that turn shallow modules into deep ones. The aim is testability and AI-navigability.
## Glossary
Use these terms exactly in every suggestion. Full definitions are in [LANGUAGE.md](LANGUAGE.md).
- Module: anything with an interface and an implementation.
- Interface: everything a caller must know to use the module correctly.
- Implementation: the code inside.
- Depth: leverage at the interface. Deep means high leverage; shallow means the interface is nearly as complex as the implementation.
- Seam: where an interface lives; a place behavior can be altered without editing in place.
- Adapter: a concrete thing satisfying an interface at a seam.
- Leverage: what callers get from depth.
- Locality: what maintainers get from depth.
Key principles:
- Deletion test: imagine deleting the module. If complexity vanishes, it was a pass-through. If complexity reappears across many callers, it was earning its keep.
- The interface is the test surface.
- One adapter means a hypothetical seam. Two adapters means a real seam.
## Process
### 1. Explore
…
The line at the top of this page pins the label git:20260509.57ec9e4, 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.
GET https://markdownregistry.com/api/v1/artifacts/art_u63ugrnzfxpyjk3t
GET https://markdownregistry.com/api/v1/resolve?ref=mart337i/odoo-skills/improve-codebase-architecture
GET https://markdownregistry.com/api/v1/blob/8f4a0a71958dcff2637da027dfcc74e9b1bfef74420dadfd438ec1e07771d412
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.
mart337i/odoo-skills · skills/grill-me/SKILL.md · Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of…
mart337i/odoo-skills · skills/grill-with-docs/SKILL.md · Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates…
mart337i/odoo-skills · skills/odoo-19.0/SKILL.md · Odoo 19 development knowledge base covering actions, controllers, data files, API decorators, SQL constraints, indexes…
mart337i/odoo-skills · skills/odoo-20.0/SKILL.md · Odoo 20 development knowledge base covering actions, controllers, data files, API decorators, SQL constraints, indexes…
mart337i/odoo-skills · skills/odoo-code-tracer/SKILL.md · Trace Odoo execution flow from an entry point through controllers, button actions, cron jobs, model methods, overrides…
mart337i/odoo-skills · skills/odoo-idea-gates/SKILL.md · Odoo-aware idea validation for deciding whether a module, addon, app, or product should exist before implementation…
danny-avila/librechat · .claude/skills/improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
librechat-ai/librechat · .claude/skills/improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
mxyhi/ok-skills · improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
asymmetric-al/core · .agents/skills/improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
pc-style/x-md · .agents/skills/improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
rudycity/superagent · .agents/skills/improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
akillness/jeo-skills · .agent-skills/improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…