improve-codebase-architecture
Skill2 starsChanged 3 months agoNo licenceView on GitHub
发现架构摩擦并提出*深化改进的机会*——将浅层模块重构为深层模块。目标是提高可测试性和 AI 导航性。 此命令基于项目的领域模型,并采用共享的设计词汇表: 扫描前先确定范围——YAGNI(You Aign I Need It,你不需要它)。 深入理解一个模块有助于简化未来的修改,因此要格外关注代码库中最近发生过更改的部分。在查找之前,先确定查找*哪里*: 首先阅读项目的领域术语表(CONTEXT.md)以及你所接触领域的任何应用定义规则 (ADR)。 然后生成一个子代理来遍历代码库。不要遵循僵化的经验法则——要灵活探索,并记录遇到的阻力: 对任何你怀疑是浅层的模块应用*删除测试*:删除它会集中复杂性,还是仅仅转移复杂性?“是,集中复杂性”就是你想要的信号。 将一个独立的 HTML 文件写入操作系统临时目录,这样就不会有任何内容被上传到代码仓库。临时目录从 $TMPDIR 解析,如果解析失败则使用 /tmp(Windows 系统下为 %TEMP%),并将文件写入 <tmpdir>/architecture-review-<timestamp>.html,以便每次运行都生成一个新文件。用户可以通过 xdg-open <path>(Linux 系统)、open <path>(macOS 系统)或 start <path>(Windows…
194 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- hmjBill/skillstheir own version, first seen Oct 5, 2026
- AlexisBalayre/claude-code-configtheir own version, first seen Oct 5, 2026
- KroxiDev/engineering-skillstheir own version, first seen Oct 5, 2026
- gordon1210/reposcouttheir own version, first seen Oct 4, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use request-refactor-plan, 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.
kayamanSkillrequest-refactor-plan
Guides creating a detailed refactor plan with tiny commits via user interview, then files it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.
Also in 24 projects that use this
qhuang20Skillmigrate-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 34 projects that use this
RoentekSkillwriting-beats
Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.
Also in 27 projects that use this
AnasX7Skillscaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
Also in 34 projects that use this
AnasX7Skillsetup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
Also in 43 projects that use this
kayamanSkilledit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Also in 21 projects that use this
- +1 more from kayaman
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 194
- mattpocock/skills★ 335ksame name
- LibreChat-AI/LibreChat★ 45ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- cashew-labs/libretto★ 904same name
- stevesolun/ctx★ 588same name
- nodetool-ai/nodetool★ 551same name
- chrisdoc/hevy-mcp★ 498same name
- mxyhi/ok-skills★ 492same name
- aws/graph-explorer★ 484same name
- devcxl/mattpocock-skills-zh★ 426same name
184 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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-reviewSkill
- diagnosing-bugsSkill
- frontend-designSkill
- karpathy-guidelines-installerSkill
- Mock-Interview-QuestionList-GenerationSkill
- Mock-InterviewSkill
- write-TRDSkill
The file
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.

