agentleFS
FFForeverCodeFFForeverCode/Skills-For-Me/skills/engineer/improve-codebase-architecture/SKILL.md

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

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.
  • kayamanSkill

    request-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

  • qhuang20Skill

    migrate-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

  • RoentekSkill

    writing-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

  • AnasX7Skill

    scaffold-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

  • AnasX7Skill

    setup-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

  • kayamanSkill

    edit-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

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.