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…

195 other projects use a version of this.

Adopted by

Most recently taken up by

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

    writing-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 77 projects that use this

  • simo97Skill

    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 80 projects that use this

  • LesaniSkill

    writing-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 73 projects that use this

  • liufeng1976Skill

    setup-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 49 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 77 projects that use this

  • simo97Skill

    request-refactor-plan

    Use this skill when user wants to create a refactor plan.

    Also in 44 projects that use this

  • +1 more from Lesani
  • +1 more from simo97

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.