agentleFS
rotnovrotnov/pycc/.agents/skills/improve-codebase-architecture/SKILL.md

improve-codebase-architecture

Skill2 starsChanged 3 months agoMITView on GitHub

Explicit invocation only; never select this skill implicitly. Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

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

  • simo97Skill

    request-refactor-plan

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

    Also in 45 projects that use this

  • 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

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

  • +2 more from simo97

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 187 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If sub-agent dispatch is unavailable in this session — the multi-agent feature is disabled, the agent depth limit is reached, or …

    line 28

“Common” is measured: kept by at least 6 in 10 of the 187 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Improve Codebase Architecture

The canonical workflow is explicit-only. Continue only when the current user request explicitly names $improve-codebase-architecture. If this adapter was selected implicitly, stop without writing files and say that explicit invocation is required.

Resolve the current repository root. Before applying this skill, read .claude/skills/improve-codebase-architecture/SKILL.md from that repository completely and follow it as the canonical workflow. If the file is missing, stop and report the missing project instruction instead of substituting a cached copy.

Sub-agent dispatch on Codex

This skill explicitly asks for sub-agents, delegation, and parallel agent work; treat that as the permission Codex requires before spawning. Where the canonical workflow says to use the Agent tool with subagent_type=Explore, use spawn_agent and join with wait_agent. Codex has no read-only sub-agent type, so the spawn brief must impose that discipline itself: instruct the sub-agent to read and report only and to modify no file in the workspace. When the canonical workflow routes into the codebase-design skill's design-it-twice step, issue one spawn_agent call per design brief and wait_agent on all of them.

If sub-agent dispatch is unavailable in this session — the multi-agent feature is disabled, the agent depth limit is reached, or spawn_agent is not offered — do not silently skip the step. Carry out the same exploration inline in this session and state in the output that sub-agent dispatch was unavailable and the step ran inline.

Download now (ZIP)

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.