improve-codebase-architecture
Skill48k starsChanged 4 months agoMITView on GitHub
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
205 other projects use a version of this, 153 of them edited; 54 of 153 edited versions we compared changed its rules; 16 new projects in the last 4 weeks, against 20 the 4 before.
How people change it
54 of 153 edited versions changed its rules, and some changes recur.
Of the 153 edited versions we compared: 88 keep every rule, 11 are an older text, 54 made changes of their own.
Not in older versions
- If the user named a direction — a module, a subsystem, a pain point — take it, and skip the inference below.missing from 11 of 11
Rules people drop
- If the user named a direction — a module, a subsystem, a pain point — take it, and skip the inference below.dropped by 42 of 54
- Read the project's domain glossary (
CONTEXT.md) and any ADRs in the area you're touching first.dropped by 13 of 54 - Sharpening a fuzzy term during the conversation? Update
CONTEXT.mdright there.dropped by 8 of 54 - Do NOT propose interfaces yet. After the file is written, ask the user: "Which of these would you like to explore?"dropped by 7 of 54
Rules people add
- Use these terms exactly in every suggestion. Consistent language is the point — don't drift into "component," "service," "API," or "boundary." Full definitions in [LANGUAGE.md](LANGUAGE.md).added by 37 of 54
- ADR conflicts: if a candidate contradicts an existing ADR, only surface it when the friction is real enough to warrant revisiting the ADR. Mark it clearly (e.g. _"contradicts ADR-0007 — but worth reopening because…"_). …added by 24 of 54
- Read the existing documentation first:added by 3 of 54
- If any of these files don't exist, proceed silently — don't flag their absence or suggest creating them upfront.added by 3 of 54
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Cooling: 16 new projects took it in the last 4 weeks, 0.8× the 4 weeks before.
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
- ctaxnagomi/agent-kd-skilltheir own version, first seen Nov 29, 2026
- karanmrn/karanagentskillsedited, first seen Nov 29, 2026
- yugasun/aiopsedited, 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 30, 2026[upstream #19169] Investigate intermittent quote-chip timeout in the quoted-excerpt browser test — berry-13/LibreChat0 reactions
45 more on GitHub
- Nov 30, 2026📡 docs: Document Event Subscriptions — LibreChat-AI/docs0 reactions · 3 comments
- Nov 30, 2026[upstream #19106] Investigate intermittent provider installation lookup ordering timeout — berry-13/LibreChat0 reactions · 2 comments
- Nov 29, 2026[upstream #19123] Flaky Branch pointer hit test under the message navigation rail — berry-13/LibreChat0 reactions · 1 comment
- Nov 29, 2026[upstream #19098] Bound composer palette file search and carry its query into Show all — berry-13/LibreChat0 reactions · 1 comment
- Nov 27, 2026librechat: security issues < 0.8.9 — NixOS/nixpkgs0 reactions
- Nov 23, 2026[upstream #18745] #18745: csp.spec.js beforeAll exceeds 30 s under quality coverage — berry-13/LibreChat0 reactions · 1 comment
- Nov 21, 2026LibreChat: Unauthorized File Content Access via Chat Attachment file_id — NixOS/nixpkgs0 reactions
- Nov 20, 2026Gemini 3+: multi-round tool turn restored as one model message with DUMMY_SIGNATURE — LibreChat-AI/agents0 reactions
- Nov 20, 2026[upstream #18572] #18572: Let users re-pin composer chips after unpinning — berry-13/LibreChat0 reactions · 1 comment
- Nov 19, 2026[Conversation Hub/P1] Modular LibreChat-like UI as MAS compound app — Garyu-tt/AdamantiumToolBox0 reactions
- Nov 17, 2026agent-skills.github.librechat-ai.librechat: 0.8.8 → 0.8.9 — sudosubin/agents.nix0 reactions
- Nov 10, 2026[upstream #17989] [#17989] Fix Tool-Tree Hover Route Geometry Failure — berry-13/LibreChat0 reactions · 1 comment
- Nov 10, 2026🔎 docs: Widen the mcpCatalogLookups Scope to Agent Tool Assembly — LibreChat-AI/docs0 reactions · 4 comments
- Nov 6, 2026Prompt cache misses on every turn when an agent has no instructions and per-turn context — LibreChat-AI/agents0 reactions
- Nov 2, 2026Provide an option to deploy a LibreChat instance — monarch-initiative/mechmaker0 reactions · 1 comment
- Nov 2, 2026⏱️ docs: Document the Web-Search Reranker Timeout and the `image_gen_oai` Budget — LibreChat-AI/docs0 reactions · 1 comment
- 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 26, 2026Accept newly downloaded input files on replay continuations — LibreChat-AI/code-interpreter0 reactions
- Oct 26, 2026Preserve MCP file artifacts across programmatic tool calls — LibreChat-AI/agents0 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: Mock e2e specs leak a streaming sidebar chat into later specs in the same worker — berry-13/LibreChat0 reactions
- 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 · 1 comment
- 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 18, 2026Add Ace Data Cloud Chat Completions configuration — LibreChat-AI/librechat-config-yaml0 reactions
- Oct 18, 2026🔗 Broken links detected — duynx8689-boop/awesome-ai-agents-20260 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🐳 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 · 1 comment
- Oct 11, 2026Update All Docker — pedorich-n/home-server-nixos0 reactions
- Oct 11, 2026🔗 Broken links detected — duynx8689-boop/awesome-ai-agents-20260 reactions
- Oct 9, 2026[upstream #16907] Close the remaining disabled-recipe rule gaps Codex found at 916bded — berry-13/LibreChat0 reactions · 2 comments
- 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 #16719] #16719: token search does not use its indexes on DocumentDB planner v1 — berry-13/LibreChat0 reactions
- Oct 4, 2026[upstream #14505] #14505: duplicate conversation ids in one export ingest attachments that are then discarded — berry-13/LibreChat0 reactions
- Oct 4, 2026🔗 Broken links detected — duynx8689-boop/awesome-ai-agents-20260 reactions
- Oct 3, 2026agent-skills.github.librechat-ai.librechat: init at 0.8.8 — sudosubin/agents.nix0 reactions
- Oct 3, 2026[upstream #14701] #14701: Enforce the local parser size limit before uploading a Context document — 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 writing-beats, migrate-to-shoehorn 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.
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 83 projects that use this
simo97Skillmigrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.
Also in 88 projects that use this
simo97Skillrequest-refactor-plan
Use this skill when user wants to create a refactor plan.
Also in 45 projects that use this
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
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 79 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 54 projects that use this
- +2 more from simo97
Other versions205 projects use a version of this.
Word for word · 17
- danny-avila/LibreChat★ 48k100% same
- bestofjs/bestofjs★ 3.1k100% same
- chrisdoc/hevy-mcp★ 554100% same
- hcloud-talos/terraform-hcloud-talos★ 363100% same
- alifanov/scopegate★ 18100% same
- alp82/curia★ 15100% same
- AndyMelnykov/TeamOSTemplate★ 3100% same
- IvanGomezMartinez/MatStudyLab★ 2100% same
- RaapTechllc/Kiro-Orchestrator-Template★ 2100% same
- jjsizemore/jjskills★ 1100% same
7 more not listed
Edited · 153
- mattpocock/skills★ 335k90% same
- QuivrHQ/quivr★ 40k95% same
- The-Vibe-Company/quivr★ 40k95% same
- windmill-labs/windmill★ 19k96% same
- GreyDGL/PentestGPT★ 16k97% same
- humanlayer/humanlayer★ 13k99% same
- mdiri-ai/SoduWork★ 9.1k87% same
- Forget-C/Jellyfish★ 7.5k91% same
- ArcReel/ArcReel★ 6.8k90% same
- withcoral/coral★ 5k90% same
143 more not listed
Wrote their own version · 35
- sanity-io/sanity★ 6.4ksame name
- vinvcn/mattpocock-skills-zh-CN★ 6.2ksame name
- openstatusHQ/data-table-filters★ 2.3ksame name
- stevesolun/ctx★ 583same name
- devcxl/mattpocock-skills-zh★ 565same name
- drvoss/everything-copilot-cli★ 49same name
- etr/groundwork★ 45same name
- WenWuZhiDao/mattpocock-skills-zh★ 27same name
- aveproject/ave★ 26same name
- allemaar/open-skills★ 15same name
25 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
- codebase-designSkill
The file
We split this skill into the rules it gives an agent
4 rules. 1 is common, 1 is distinctive, and 2 are very specific to this project.
1
Common
Most of the 180 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
If the user named a direction — a module, a subsystem, a pain point — take it, and skip the inference below.
- Very specific: line 25
Read the project's domain glossary (CONTEXT.md) and any ADRs in the area you're touching first.
- Common: line 60
Do NOT propose interfaces yet.
- Very specific: line 69
Sharpening a fuzzy term during the conversation?: Update CONTEXT.md right there.
“Common” is measured: kept by at least 6 in 10 of the 180 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
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.
This command is informed by the project's domain model and built on a shared design vocabulary:
- Run the
/codebase-designskill for the architecture vocabulary (module, interface, depth, seam, adapter, leverage, locality) and its principles (the deletion test, "the interface is the test surface", "one adapter = hypothetical seam, two = real"). Use these terms exactly in every suggestion — don't drift into "component," "service," "API," or "boundary." - The domain language in
CONTEXT.mdgives names to good seams; ADRs indocs/adr/record decisions this command should not re-litigate.
Process
1. Explore
Scope before you scan — YAGNI. Deepening a module pays off by making future changes to it easier, so put extra weight on the parts of the codebase that have recently changed. Decide where to look before you look:
- If the user named a direction — a module, a subsystem, a pain point — take it, and skip the inference below.
- Otherwise, walk back a good stretch of the commit history (
git log --oneline) to find the codebase's hot spots — the files and areas that keep coming up — and let those paths pull your attention first. If the changes are scattered with no clear hot spot, widen the net.
Read the project's domain glossary (CONTEXT.md) and any ADRs in the area you're touching first.
Then spawn a sub-agent to walk the codebase. Don't follow rigid heuristics — explore organically and note where you experience friction:
- Where does understanding one concept require bouncing between many small modules?
- Where are modules shallow — interface nearly as complex as the implementation?
- Where have pure functions been extracted just for testability, but the real bugs hide in how they're called (no locality)?
- Where do tightly-coupled modules leak across their seams?
- Which parts of the codebase are untested, or hard to test through their current interface?
Apply the deletion test to anything you suspect is shallow: would deleting it concentrate complexity, or just move it? A "yes, concentrates" is the signal you want.
2. Present candidates as an HTML report
Write a self-contained HTML file to the OS temp directory so nothing lands in the repo. Resolve the temp dir from $TMPDIR, falling back to /tmp (or %TEMP% on Windows), and write to <tmpdir>/architecture-review-<timestamp>.html so each run gets a fresh file. Open it for the user — xdg-open <path> on Linux, open <path> on macOS, start <path> on Windows — and tell them the absolute path.
The report uses Tailwind via CDN for layout and styling, and Mermaid via CDN for diagrams where a graph/flow/sequence reliably communicates the structure. Mix Mermaid with hand-crafted CSS/SVG visuals — use Mermaid when relationships are graph-shaped (call graphs, dependencies, sequences), and hand-built divs/SVG when you want something more editorial (mass diagrams, cross-sections, collapse animations). Each candidate gets a before/after visualisation. Be visual.
For each candidate, render a card with:
- Files — which files/modules are involved
- Problem — why the current architecture is causing friction
- Solution — plain English description of what would change
- Benefits — explained in terms of locality and leverage, and how tests would improve
- Before / After diagram — side-by-side, custom-drawn, illustrating the shallowness and the deepening
- Recommendation strength — one of
Strong,Worth exploring,Speculative, rendered as a badge
End the report with a Top recommendation section: which candidate you'd tackle first and why.
Use CONTEXT.md vocabulary for the domain, and the /codebase-design vocabulary for the architecture. If CONTEXT.md defines "Order," talk about "the Order intake module" — not "the FooBarHandler," and not "the Order service."
ADR conflicts: if a candidate contradicts an existing ADR, only surface it when the friction is real enough to warrant revisiting the ADR. Mark it clearly in the card (e.g. a warning callout: "contradicts ADR-0007 — but worth reopening because…"). Don't list every theoretical refactor an ADR forbids.
See HTML-REPORT.md for the full HTML scaffold, diagram patterns, and styling guidance.
Do NOT propose interfaces yet. After the file is written, ask the user: "Which of these would you like to explore?"
3. Grilling loop
Once the user picks a candidate, run the /grilling skill to walk the decision tree with them — constraints, dependencies, the shape of the deepened module, what sits behind the seam, what tests survive.
Side effects happen inline as decisions crystallize — run the /domain-modeling skill to keep the domain model current as you go:
- Naming a deepened module after a concept not in
CONTEXT.md? Add the term toCONTEXT.md. Create the file lazily if it doesn't exist. - Sharpening a fuzzy term during the conversation? Update
CONTEXT.mdright there. - User rejects the candidate with a load-bearing reason? Offer an ADR, framed as: "Want me to record this as an ADR so future architecture reviews don't re-suggest it?" Only offer when the reason would actually be needed by a future explorer to avoid re-suggesting the same thing — skip ephemeral reasons ("not worth it right now") and self-evident ones.
- Want to explore alternative interfaces for the deepened module? Run the
/codebase-designskill and use its design-it-twice parallel sub-agent pattern.
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.

