agentleFS
535803710535803710/ai-rd-skills/skills/improve-codebase-architecture/SKILL.md

improve-codebase-architecture

Skill8 starsChanged 6 months agoMITView on GitHub

发现代码库架构深化机会,适用于用户要求改进架构、寻找重构点、拆分耦合模块、提升可测试性、让代码更适合 AI 理解和维护时使用。

Files
SKILL.md

Improve Codebase Architecture

目标

找出真正能降低复杂度、提高可测试性和可理解性的架构改进。不要为了抽象而抽象。

工作方式

  1. 先阅读现有模块边界、调用关系和测试情况。
  2. 找出变化频繁、职责混杂、测试困难的地方。
  3. 用业务语言描述问题,不只说代码坏味道。
  4. 给出小步可落地的重构建议。
  5. 对高成本改动说明收益、风险和回退方案。

参考

  • 深化模块:references/deepening.md
  • 接口设计:references/interface-design.md
  • 领域语言:references/language.md

Download now (ZIP)

  • Other versions195 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 195

    1. mattpocock/skills★ 309ksame name
    2. danny-avila/LibreChat★ 47ksame name
    3. LibreChat-AI/LibreChat★ 47ksame name
    4. QuivrHQ/quivr★ 40ksame name
    5. windmill-labs/windmill★ 18ksame name
    6. GreyDGL/PentestGPT★ 16ksame name
    7. humanlayer/humanlayer★ 13ksame name
    8. sanity-io/sanity★ 6.4ksame name
    9. ArcReel/ArcReel★ 6ksame name
    10. vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name

    185 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.

  • Used alongsideProjects with it also use decision-mapping, 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.
    • FabienDehopreSkill

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

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

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

    • simo97Skill

      request-refactor-plan

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

      Also in 43 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 38 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 66 projects that use this

    • +2 more from simo97
  • In this repository17 other files it gives its agents.

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.