agentleFS
cmdr-characmdr-chara/chara-toolkit/skills/codebase-improvement-planner/SKILL.md

codebase-improvement-planner

Skill2 starsChanged 11 days agoMITView on GitHub

Discover and prioritize evidence-backed improvements when no specific change has been chosen. Use for open-ended requests to improve, modernize, simplify, harden, or clean up a repository. Not for a known bug or an already chosen migration, refactor, or fix.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill for:

    line 12
  2. Distinctive:

    Do not trigger for:

    line 17
  3. Distinctive:

    Do not install, upgrade, regenerate, delete, rename, or broadly rewrite merely to discover candidates.

    line 29
  4. Distinctive:

    Treat volatile dependency, runtime, security, and platform claims as unverified until checked against current primary sources.

    line 30
  5. Distinctive:

    Do not edit generated output before identifying its authoritative generator.

    line 31
  6. Very specific:

    If evidence is too weak to rank safely, narrow the claim, request or gather the missing evidence, or hand off to repository-intelligence.

    line 55
  7. Distinctive:

    Stop when the user has an evidence-backed ranked backlog and a clearly owned next action, or when an approved bounded slice is complete and …

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Codebase Improvement Planner

Choose the highest-value next improvement from repository evidence, then stop before broad implementation unless the user has already authorized a bounded slice.

Trigger boundary

Use this skill for:

  • open-ended "what should we improve next?" requests;
  • repository modernization or cleanup without a predefined target;
  • balanced improvement backlogs across correctness, architecture, delivery, maintainability, and performance.

Do not trigger for:

  • a concrete bug or reproduced failure;
  • a defined migration, refactor, performance bottleneck, security review, or platform implementation;
  • final release approval.

Required inputs

Resolve the repository root, working-tree state, user goal, protected contracts, generated/vendor boundaries, available verification evidence, and whether implementation is already authorized. If business priorities are unknown, rank from technical evidence without inventing product value.

Safety baseline

  • Preserve uncommitted user work and start read-only.
  • Do not install, upgrade, regenerate, delete, rename, or broadly rewrite merely to discover candidates.
  • Treat volatile dependency, runtime, security, and platform claims as unverified until checked against current primary sources.
  • Do not edit generated output before identifying its authoritative generator.

Workflow

  1. Frame the decision. Record scope, desired outcomes, constraints, exclusions, and evidence limits.
  2. Map the baseline. Inspect structure, contracts, tests/CI, error handling, operational boundaries, and concentrated change/risk areas. Use repository-intelligence first when ownership or blast radius is too uncertain.
  3. Admit candidates. Require a concrete signal: failing/weak evidence, repeated cost, risky coupling, unsupported dependency, missing critical verification, or demonstrable delivery friction. For recurring agent-created defects, distinguish truly repeated mechanisms from one-off mistakes; choose the closest existing engineering specialist for an enforceable fix, not a new generic rules file. Do not turn style preferences into findings.
  4. Rank candidates. Apply references/improvement-ranking.md. Keep change magnitude separate from priority.
  5. Select the next upgrade. State the evidence, expected value, scope, risk, reversibility, verification method, and owning specialist.
  6. Stop or execute. Without prior authorization, return the backlog and mark the selected item AWAITING_APPROVAL. With explicit authorization, execute only the selected bounded maintenance slice or hand it to the specialist that owns the concrete task.

Handoffs and interaction boundaries

  • security-review owns security-focused code review.
  • typescript-quality-enforcer owns recurring TypeScript/lint policy.
  • review-and-refactor-code owns defined structural cleanup.
  • optimize-codebase-performance owns measured bottlenecks.
  • codebase-evolution-controller owns migrations and upgrades.
  • debugging-investigator owns concrete failures with unknown causes.
  • production-web-builder, flutter-production-builder, and expo-react-native-builder own implementation once a platform-specific improvement is selected.
  • verification-and-release owns integrated ship judgment.

Failure handling

If evidence is too weak to rank safely, narrow the claim, request or gather the missing evidence, or hand off to repository-intelligence. Keep uncertain candidates explicitly labeled instead of promoting them by intuition.

Stop conditions

Stop when the user has an evidence-backed ranked backlog and a clearly owned next action, or when an approved bounded slice is complete and verified. Do not continue into unrelated cleanup.

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.

Reviews can't be read right now.

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.