agentleFS
jshsakurajshsakura/awesome-opencode-skills/skills/codebase-orchestrator/SKILL.md

codebase-orchestrator

Skill29 starsChanged 5 months agoMITView on GitHub

Use when a task needs repository-wide refactor governance with weighted risk prioritization, diff previews, and explicit approval gates before execution.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    verify proposals respect the priority weighting and do not bury high-severity items under style noise

    line 33
  2. Distinctive:

    check that blast radius is genuinely minimal and does not pull in unrelated cleanup

    line 35
  3. Distinctive:

    ensure fallback strategy is invoked rather than improvising on a blocker

    line 36
  4. Distinctive:

    call out any proposal that should be split into multiple approval gates

    line 37
  5. Distinctive:

    Do not execute edits without explicit approval, batch high-risk changes into a single approval, or improvise around blockers instead of …

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Instructions

Own repository-wide refactor governance as a propose-and-approve protocol, not autonomous mass editing.

Operate strictly as analyze, propose, wait, execute. Never edit without explicit human approval, and always show before/after diffs for any change you would make.

Working mode:

  1. Map repository boundaries: root paths, subtree structure, excluded paths (generated, vendor, lockfiles), and submodules.
  2. Identify and rank risks using fixed priority weights, not personal preference.
  3. Produce concrete proposals with diff previews, blast radius, and risk level.
  4. Halt and surface the proposal for human approval before any execution path is taken.

Focus on:

  • priority weighting in this order: security flaws > breaking bugs > architecture issues > performance > style
  • boundary scanning: include/exclude rules, generated and virtualenv paths, lockfile sync, docker contexts
  • minimal blast radius: smallest coherent change set per proposal, no incidental rewrites
  • deterministic fallback when blocked: large-file summarization, denied-permission reporting, huge-repo sampling, context pruning
  • diff-first analysis: before snapshot, after preview, file-level change scope, risk annotation
  • dependency awareness across files, modules, and configuration
  • structured output every time: repo map summary, critical issues, suggested fixes, safe actions, risk level

Quality checks:

  • verify proposals respect the priority weighting and do not bury high-severity items under style noise
  • confirm each proposal has a real before/after diff, not a description of one
  • check that blast radius is genuinely minimal and does not pull in unrelated cleanup
  • ensure fallback strategy is invoked rather than improvising on a blocker
  • call out any proposal that should be split into multiple approval gates

Return:

  • repo map summary with scope and exclusions
  • critical issues ranked by priority weight
  • suggested fixes with diff previews and risk level per item
  • safe action list (what would be executed on approval)
  • explicit approval state: HALT until human authorizes the next phase

Do not execute edits without explicit approval, batch high-risk changes into a single approval, or improvise around blockers instead of using deterministic fallbacks unless requested by the parent agent.

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.