codebase-design
Skill48k starsChanged 4 months agoMITView on GitHub
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
238 other projects use a version of this, 138 of them edited.
Trending
More talk lately.about the whole repository
Most recently taken up by
- quarkiverse/quarkus-reactive-messaging-nats-jetstreamedited, first seen Nov 30, 2026
- Rain-kl/OpenFlareedited, first seen Nov 30, 2026
- Forget-C/Jellyfishedited, first seen Nov 29, 2026
- MarkTripoli/skillstheir own version, first seen Nov 29, 2026
- ctaxnagomi/agent-kd-skilltheir own version, first seen Nov 29, 2026
- karanmrn/karanagentskillsedited, first seen Nov 29, 2026
Who's talking about LibreChat-AI/LibreChat
- Синтез“LibreChat: свой ChatGPT со всеми моделями #shorts”YouTube · Oct 18, 2026 · 659 views
- ForkCast“LibreChat-AI/LibreChat — Every model. One chat you own. 🟢 Clone #Shorts”YouTube · Sep 27, 2026 · 510 views
- AutomateNow“LibreChat: A Free, Open-Source AI Chat App That Brings Every Major Model Into One Place”YouTube · Oct 25, 2026 · 422 views
- AutomateNow“LibreChat: Every Major AI Model in One Free, Self-Hosted Chat App #Shorts”YouTube · Oct 25, 2026 · 400 views
- The AI Toolbox“Self-hosted AI chat for teams: AnythingLLM vs LibreChat vs Open WebUI”YouTube · Oct 28, 2026 · 44 views
The biggest 5 of 63 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 63
Talked about on GitHub, YouTube, Bluesky and the web (63 times).
On GitHub · 50
- Nov 17, 2026fix(auth): handle ended sessions and retry temporary failures — LibreChat-AI/admin-panel1 reaction · 8 comments
- Nov 13, 2026🪪 docs: Document the permissionPrincipalLookups Concurrency Key — LibreChat-AI/docs1 reaction · 3 comments
- Nov 7, 2026Automated issue spam targeting open source projects — genclass-dev/GenClass1 reaction · 6 comments
- Sep 15, 2026🔖 feat: Anchor GPT-5.6 Cache Breakpoint to the Stable Prefix — LibreChat-AI/agents1 reaction · 2 comments
- Nov 21, 2026LibreChat: Unauthorized File Content Access via Chat Attachment file_id — NixOS/nixpkgs0 reactions
45 more on GitHub
- Nov 20, 2026[upstream #18572] #18572: Let users re-pin composer chips after unpinning — berry-13/LibreChat0 reactions
- Nov 17, 2026agent-skills.github.librechat-ai.librechat: 0.8.8 → 0.8.9 — sudosubin/agents.nix0 reactions
- Nov 10, 2026🔎 docs: Widen the mcpCatalogLookups Scope to Agent Tool Assembly — LibreChat-AI/docs0 reactions · 4 comments
- Nov 2, 2026⏱️ docs: Document the Web-Search Reranker Timeout and the `image_gen_oai` Budget — LibreChat-AI/docs0 reactions · 1 comment
- Oct 31, 2026[upstream #17681] Stabilize the terminalProjectionBoundary Redis replay spec (flaky at :352 in the Redis cluster lane) — berry-13/LibreChat0 reactions
- Oct 31, 2026build(deps): bump @librechat/data-schemas from 0.0.74 to 0.0.77 — vsivasamy/MahathiChat-Admin0 reactions
- Oct 29, 2026🪪 docs: Document the Option to Sync Only Existing Entra ID Groups — LibreChat-AI/docs0 reactions · 1 comment
- Oct 29, 2026⚡ docs: Document Performance and Retention Config Keys — LibreChat-AI/docs0 reactions · 3 comments
- Oct 26, 2026fix: mount new inputs before replaying programmatic calls — LibreChat-AI/code-interpreter0 reactions
- Oct 26, 2026fix: preserve MCP file artifacts in programmatic tool calls — LibreChat-AI/agents0 reactions
- Oct 22, 2026[upstream #17357] Validate the theme docs page against the appearance key manifest — berry-13/LibreChat0 reactions
- Oct 21, 2026feat(agent): 실행 추적과 지연 도구 검색을 추가한다 — dungsil/keundal0 reactions · 3 comments
- Oct 21, 2026[upstream #17030] #17030: Give pauses of one generation a server-assigned order — berry-13/LibreChat0 reactions · 2 comments
- Oct 20, 2026[upstream #17268] #17268: Input padding and adornments do not mirror under RTL — berry-13/LibreChat0 reactions
- Oct 19, 2026[upstream #17270] LibreChat-AI/LibreChat#17270: Stop automatic speech before a provider request once the client left — berry-13/LibreChat0 reactions
- Oct 19, 2026🔗 fix: Resolve Sandbox File Links Across the Conversation — aproorg/LibreChat0 reactions · 1 comment
- Oct 19, 2026🔗 fix: Resolve Sandbox File Links to the Turn's Attachments — aproorg/LibreChat0 reactions
- Oct 18, 2026feat: add five independent LibreChat service plugins — AceDataCloud/LibreChatPlugins0 reactions
- Oct 16, 2026[upstream #16809] PR #16809: Bind subagent ancestor links to the conversation document — berry-13/LibreChat0 reactions
- Oct 16, 2026[upstream #16809] PR #16809: Run the code environment reconciler in one worker without Redis — berry-13/LibreChat0 reactions
- Oct 14, 2026[upstream #17048] #17048: Replace the log email regexes with a linear scanner and a coverage contract — berry-13/LibreChat0 reactions
- Oct 14, 2026[upstream #17054] Upstream PR 17054: capture the replaced MCP config atomically for the update audit — berry-13/LibreChat0 reactions
- Oct 14, 2026[upstream #17054] Upstream PR 17054: keep audit chain continuity across a full retention purge — berry-13/LibreChat0 reactions
- Oct 14, 2026[upstream #17033] 17033: Shared-link erasure races legacy ACL auto-migration — berry-13/LibreChat0 reactions
- Oct 14, 2026🐳 fix: Publish Admin Panel Image Under Repository Organization — LibreChat-AI/admin-panel0 reactions
- Oct 14, 2026[upstream #17053] #17053: Base the resource lease on the database clock — berry-13/LibreChat0 reactions
- Oct 14, 2026[upstream #17053] #17053: Expose the permission lease timing in configSchema — berry-13/LibreChat0 reactions
- Oct 12, 2026[upstream #17033] 17033: Keep Mongoose types out of the eraseUserData dependency contract — berry-13/LibreChat0 reactions
- Oct 11, 2026[upstream #16961] 16961: Persist the reviewer's approval decision on resumed tool calls — berry-13/LibreChat0 reactions
- Oct 11, 2026Update All Docker — pedorich-n/home-server-nixos0 reactions
- Oct 10, 2026[upstream #16961] PR 16961: Include the ask-user part in the stored content union — berry-13/LibreChat0 reactions
- Oct 9, 2026[upstream #16907] Close the remaining disabled-recipe rule gaps Codex found at 916bded — berry-13/LibreChat0 reactions · 1 comment
- Oct 9, 2026[upstream #16907] Accept spelled-out disabled recipes under the same enclosing variants as the dim — berry-13/LibreChat0 reactions
- Oct 4, 2026[upstream #16736] LibreChat-AI/LibreChat#16736: Route .prose-only quote bars through the prose-quote-bar role — berry-13/LibreChat0 reactions
- Oct 4, 2026[upstream #16552] #16552: Never reopen a durable ordinary reply with a late disconnect snapshot — berry-13/LibreChat0 reactions
- Oct 4, 2026[upstream #16719] #16719: token search does not use its indexes on DocumentDB planner v1 — berry-13/LibreChat0 reactions
- Oct 3, 2026agent-skills.github.librechat-ai.librechat: init at 0.8.8 — sudosubin/agents.nix0 reactions
- Oct 3, 2026[upstream #16632] #16632: Resolve a detached run only from a fresh status and server-returned history — berry-13/LibreChat0 reactions
- Oct 3, 2026[upstream #16632] #16632: Release a follow-up queued behind an off-screen admitted successor — berry-13/LibreChat0 reactions
- Oct 3, 2026[upstream #16708] #16708: Base the native web search warning on effective provider settings — berry-13/LibreChat0 reactions
- Oct 3, 2026[upstream #14701] #14701: Enforce the local parser size limit before uploading a Context document — berry-13/LibreChat0 reactions
- Oct 3, 2026[upstream #14701] #14701: Answer coded upload refusals with fixed messages even without redaction — berry-13/LibreChat0 reactions
- Oct 3, 2026[upstream #14505] Expose import concurrency and shard-size limits through configSchema — berry-13/LibreChat0 reactions
- Oct 2, 2026[upstream #15959] Forward endpoint prompt-cache retention to cross-provider summarizers — berry-13/LibreChat0 reactions
- Oct 2, 2026[upstream #15959] Explicit prompt-cache breakpoints with one model capability gate — berry-13/LibreChat0 reactions
On YouTube · 10
- Oct 18, 2026LibreChat: свой ChatGPT со всеми моделями #shorts — Синтез659 views
- Sep 27, 2026LibreChat-AI/LibreChat — Every model. One chat you own. 🟢 Clone #Shorts — ForkCast510 views
- Oct 25, 2026LibreChat: A Free, Open-Source AI Chat App That Brings Every Major Model Into One Place — AutomateNow422 views
- Oct 25, 2026LibreChat: Every Major AI Model in One Free, Self-Hosted Chat App #Shorts — AutomateNow400 views
- Oct 28, 2026Self-hosted AI chat for teams: AnythingLLM vs LibreChat vs Open WebUI — The AI Toolbox44 views
5 more on YouTube
- Oct 20, 2026Answers buried in your team's PDFs? Ask AnythingLLM — The AI Toolbox26 views
- Oct 22, 2026Hopping between AI apps all day? LibreChat puts them in one — The AI Toolbox25 views
- Oct 23, 2026LibreChat: dùng nhiều mô hình AI, tạo trợ lý không cần code — Nờ Ham Học18 views
- Oct 22, 2026Team locked out of your local AI? Open WebUI lets them in — The AI Toolbox13 views
- Oct 11, 2026Tenha o seu ChatGPT interno, conversando com os documentos da sua empresa. O programa é grátis, e dá — Ivan Lessa | IA para Negócios12 views
On Bluesky · 2
- Oct 18, 2026📦 LibreChat-AI / LibreChat ⭐ 45,914 (+69) 🗒 TypeScript Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS,… — @github-trending-js.bsky.social2 likes and reposts
- Nov 1, 2026📦 LibreChat-AI / LibreChat ⭐ 46,602 (+61) 🗒 TypeScript Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS,… — @github-trending-js.bsky.social1 likes and repost
On the web · 1
- Apr 5, 2023LibreChat-AI/LibreChat v0.3.0 on GitHub — newreleases.io
Used with
Projects with it also use decision-mapping, setup-ts-deep-modules and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
FabienDehopreSkilldecision-mapping
Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.
Also in 8 projects that use this
liufeng1976Skillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 53 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 66 projects that use this
LesaniSkillwriting-beats
Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.
Also in 71 projects that use this
LesaniSkillwriting-shape
Take a markdown file of raw material and shape it into an article through a conversational session — drafting candidate openings, growing the piece paragraph by paragraph, arguing about format (lists, tables, callouts, quotes) at each step. Use when the user has a pile of notes, fragments, or a rough draft and wants help turning it into something publishable.
Also in 72 projects that use this
AWSSkillwizard
Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
Also in 151 projects that use this
- +1 more from Lesani
Other versions238 projects use a version of this.
Word for word · 78
- danny-avila/LibreChat★ 48k100% same
- GreyDGL/PentestGPT★ 16k100% same
- openstatusHQ/openstatus★ 9.3k100% same
- bestofjs/bestofjs★ 3.1k100% same
- Tiberriver256/mcp-server-azure-devops★ 404100% same
- hcloud-talos/terraform-hcloud-talos★ 363100% same
- ninehills/skills★ 280100% same
- loulanyue/skills★ 231100% same
- HarryMtv/create-frontstack★ 94100% same
- scibly-dev/scibly★ 39100% same
68 more not listed
Edited · 138
- mattpocock/skills★ 335k100% same
- QuivrHQ/quivr★ 40k100% same
- The-Vibe-Company/quivr★ 40k100% same
- windmill-labs/windmill★ 19k96% same
- MODSetter/SurfSense★ 17k100% same
- formbricks/formbricks★ 13k100% same
- humanlayer/humanlayer★ 13k100% same
- mdiri-ai/SoduWork★ 9.1k94% same
- Forget-C/Jellyfish★ 7.5k100% same
- ArcReel/ArcReel★ 6.8k100% same
128 more not listed
Wrote their own version · 22
- stevesolun/ctx★ 583same name
- devcxl/mattpocock-skills-zh★ 565same name
- OyadotAI/oya-browser★ 415same name
- ahonn/dotfiles★ 65same name
- sgaabdu4/building-flutter-apps★ 25same name
- kriscard/Skills★ 16same name
- eralmansouri/skills★ 9same name
- imMamdouhaboammar/matts-skills-into-chatgpt★ 8same name
- rafaelghif/antigravity-agents-core★ 6same name
- Boom-Vitt/skills-thai★ 5same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- improve-codebase-architectureSkill
The file
We split this skill into the rules it gives an agent
2 rules. 2 are common, 0 are distinctive, and 0 are very specific to this project.
2
Common
Most of the 150 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 12
Use these terms exactly — don't substitute "component," "service," "API," or "boundary." Consistent language is the whole point.
- Common: line 54
When designing an interface, ask:
“Common” is measured: kept by at least 6 in 10 of the 150 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 these terms exactly — don't substitute "component," "service," "API," or "boundary." Consistent language is the whole point.
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).
Implementation — what's inside a module, its body of code. Distinct from Adapter: a thing can be a small adapter with a large implementation (a Postgres repo) or a large adapter with a small implementation (an in-memory fake). Reach for "adapter" when the seam is the topic; "implementation" otherwise.
Depth — leverage at the interface: the amount of behaviour a caller (or test) can exercise per unit of interface they have to learn. A module is deep when a large amount of behaviour sits behind a small interface, shallow when the interface is nearly as complex as the implementation.
Seam (Michael Feathers) — a place where you can alter behaviour without editing in that place; the location at which a module's interface lives. Where to put the seam is its own design decision, distinct from what goes behind it. Avoid: boundary (overloaded with DDD's bounded context).
Adapter — a concrete thing that satisfies an interface at a seam. Describes role (what slot it fills), not substance (what's inside).
Leverage — what callers get from depth: more capability per unit of interface they learn. One implementation pays back across N call sites and M tests.
Locality — what maintainers get from depth: change, bugs, knowledge, and verification concentrate in one place rather than spreading across callers. Fix once, fixed everywhere.
Deep vs shallow
Deep module = small interface + lots of implementation:
┌─────────────────────┐
│ Small Interface │ ← Few methods, simple params
├─────────────────────┤
│ │
│ Deep Implementation│ ← Complex logic hidden
│ │
└─────────────────────┘Shallow module = large interface + little implementation (avoid):
┌─────────────────────────────────┐
│ Large Interface │ ← Many methods, complex params
├─────────────────────────────────┤
│ Thin Implementation │ ← Just passes through
└─────────────────────────────────┘When designing an interface, ask:
- Can I reduce the number of methods?
- Can I simplify the parameters?
- Can I hide more complexity inside?
Principles
- Depth is a property of the interface, not the implementation. A deep module can be internally composed of small, mockable, swappable parts — they just aren't part of the interface. A module can have internal seams (private to its implementation, used by its own tests) as well as the external seam at its interface.
- The deletion test. Imagine deleting the module. If complexity vanishes, it was a pass-through. If complexity reappears across N callers, it was earning its keep.
- The interface is the test surface. Callers and tests cross the same seam. If you want to test past the interface, the module is probably the wrong shape.
- One adapter means a hypothetical seam. Two adapters means a real one. Don't introduce a seam unless something actually varies across it.
Designing for testability
Good interfaces make testing natural:
Accept dependencies, don't create them.
// Testable function processOrder(order, paymentGateway) {} // Hard to test function processOrder(order) { const gateway = new StripeGateway(); }Return results, don't produce side effects.
// Testable function calculateDiscount(cart): Discount {} // Hard to test function applyDiscount(cart): void { cart.total -= discount; }- Small surface area. Fewer methods = fewer tests needed. Fewer params = simpler test setup.
Relationships
- A Module has exactly one Interface (the surface it presents to callers and tests).
- Depth is a property of a Module, measured against its Interface.
- A Seam is where a Module's Interface lives.
- An Adapter sits at a Seam and satisfies the Interface.
- Depth produces Leverage for callers and Locality for maintainers.
Rejected framings
- Depth as ratio of implementation-lines to interface-lines (Ousterhout): rewards padding the implementation. We use depth-as-leverage instead.
- "Interface" as the TypeScript
interfacekeyword or a class's public methods: too narrow — interface here includes every fact a caller must know. - "Boundary": overloaded with DDD's bounded context. Say seam or interface.
Going deeper
- Deepening a cluster given its dependencies — see DEEPENING.md: dependency categories, seam discipline, and replace-don't-layer testing.
- Exploring alternative interfaces — see DESIGN-IT-TWICE.md: spin up parallel sub-agents to design the interface several radically different ways, then compare on depth, locality, and seam placement.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

