Design or improve a module interface, dependency seam, or test boundary for the requested change without speculative abstraction.
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
Read [local host integration](../.shared/host-integration.md) before applying this imported workflow.
# Codebase Design
Design **deep modules**: a lot of behaviour behind a small interface, placed at a clean seam, testable through that interface. Use this language and these principles wherever code is being designed or restructured. The aim is leverage for callers, locality for maintainers, and testability for everyone.
## Glossary
Use this vocabulary to reason consistently, while preserving the repository's established domain language. The terms below are design concepts rather than mandatory renaming rules.
**Module**: anything with an interface and an implementation. Deliberately scale-agnostic: a function, class, package, or tier-spanning slice. _Avoid_: unit, component, service.
**Interface**: everything a caller must know to use the module correctly: the type signature, but also invariants, ordering constraints, error modes, required configuration, and performance characteristics. _Avoid_: API, signature (too narrow, they refer only to the type-level surface).
…
The line at the top of this page pins the label git:20261029.276ae81, 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_yr34hbmu7uhdphuw
GET https://markdownregistry.com/api/v1/resolve?ref=dayfinggg/openai-codex-agent-skills/codebase-design
GET https://markdownregistry.com/api/v1/blob/016e72e0f3f83ccdbd2743704f9252b3fda62d73b61d495e3d7713838ad859f2
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.
dayfinggg/openai-codex-agent-skills · codex/skills/api-contract-change/SKILL.md · Implement or modify HTTP API contracts with validation, errors, authorization, and client-compatibility checks. Use for…
dayfinggg/openai-codex-agent-skills · codex/skills/backend-security-change/SKILL.md · Secure changed backend boundaries while preserving access policy and accepted events. Use for authentication…
dayfinggg/openai-codex-agent-skills · codex/skills/ci-failure-diagnosis/SKILL.md · Diagnose failed CI jobs from the exact commit, primary error, environment, and reproduction. Use for failed pipelines…
dayfinggg/openai-codex-agent-skills · codex/skills/code-review/SKILL.md · Review code changes, branches, or PRs against requirements and repository standards. Select general review or…
dayfinggg/openai-codex-agent-skills · codex/skills/database-migration-rollout/SKILL.md · Plan and validate schema migrations with lock, data, application-compatibility, rollout, and restoration checks. Use…
dayfinggg/openai-codex-agent-skills · codex/skills/database-query-diagnosis/SKILL.md · Diagnose slow SQL, lock waits, or connection exhaustion using actual queries, plans, and workload evidence. Use for…
dayfinggg/openai-codex-agent-skills · codex/skills/deployment-verification/SKILL.md · Prepare or verify an application release with artifact identity, configuration, migrations, readiness, and restoration…
dayfinggg/openai-codex-agent-skills · codex/skills/diagnosing-bugs/SKILL.md · Diagnose a difficult reproducible bug or performance regression through a feedback loop, competing hypotheses, and…
dayfinggg/openai-codex-agent-skills · codex/skills/docker/SKILL.md · Containerize an application, write or optimize Dockerfiles and image builds, or configure and diagnose Docker Compose…
dayfinggg/openai-codex-agent-skills · codex/skills/documentation-writing/SKILL.md · Write and maintain project documentation. Use when creating or updating README files, guides, API references, runbooks…
librechat-ai/librechat · .claude/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
danny-avila/librechat · .claude/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
dcouple/pane · main/src/services/paneChatBundle/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
greenfield-inc/pane · main/src/services/paneChatBundle/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
mxyhi/ok-skills · codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
asymmetric-al/core · .agents/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…