agentleFS
cmdr-characmdr-chara/codex-toolkit/skills/codebase-evolution-controller/SKILL.md

codebase-evolution-controller

Skill2 starsChanged 11 days agoMITView on GitHub

Plan and execute dependency, framework, schema, API, or runtime transitions with compatibility and rollback. Use when a known current state must move safely to a defined target. Not for unexplained failures, feature work, or performance tuning.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for dependency/runtime upgrades, framework migrations, schema or API transitions, compatibility windows, staged rollout, and …

    line 12
  2. Distinctive:

    Do not trigger for an unexplained failure, ordinary feature work, measured performance tuning, security-only review, or final release …

    line 14
  3. Distinctive:

    Verify the resulting signals against authoritative repository evidence.

    line 26
  4. Distinctive:

    Do not silently upgrade, regenerate, rewrite lockfiles, or remove compatibility paths during discovery.

    line 31
  5. Distinctive:

    Verify volatile target-version, support, security, and compatibility claims from current primary sources.

    line 32
  6. Distinctive:

    Keep irreversible data/schema changes behind explicit recovery evidence.

    line 33
  7. Very specific:

    Treat human-approved formal laws and proof contracts (including Bend 2 LAWS.bend) as protected compatibility surfaces.

    line 34
  8. Very specific:

    Map compatibility: Use references/compatibility-evidence.md.

    line 40
  9. Very specific:

    Check dependency risk when relevant: Read references/dependency-risk.md for CVE reachability, maintenance, supply-chain, lockfile, and …

    line 41
  10. Very specific:

    Check database migration safety when relevant: Read references/database-migration-safety.md before production DDL/backfills or …

    line 42
  11. Very specific:

    Build stages: Use references/migration-plan-template.md.

    line 43
  12. Distinctive:

    Verify and roll out: Test old/new and mixed states where relevant, observe rollout signals, and confirm rollback/forward-recovery.

    line 45
  13. Distinctive:

    Contract: Remove legacy paths only after their retirement criteria are proven.

    line 46
  14. Distinctive:

    If the target cannot be supported safely, stop with the incompatible constraint rather than forcing the migration.

    line 54
  15. Distinctive:

    Stop when the requested transition stage is implemented and verified with compatibility/rollback evidence, or when a concrete blocker …

    line 58

≈ “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 Evolution Controller

Move a repository from a known current state to a defined target without breaking consumers or losing rollback.

Trigger boundary

Use this skill for dependency/runtime upgrades, framework migrations, schema or API transitions, compatibility windows, staged rollout, and retirement of legacy paths.

Do not trigger for an unexplained failure, ordinary feature work, measured performance tuning, security-only review, or final release approval.

Required inputs

Resolve current and target states, repository/working-tree identity, manifests/lockfiles, consumers, compatibility constraints, data/schema impact, rollout environment, rollback path, and authorization.

For a read-only manifest inventory, run:

python skills/codebase-evolution-controller/scripts/manifest_inventory.py . --format markdown

Verify the resulting signals against authoritative repository evidence.

Safety baseline

  • Preserve uncommitted user work.
  • Do not silently upgrade, regenerate, rewrite lockfiles, or remove compatibility paths during discovery.
  • Verify volatile target-version, support, security, and compatibility claims from current primary sources.
  • Keep irreversible data/schema changes behind explicit recovery evidence.
  • Treat human-approved formal laws and proof contracts (including Bend 2 LAWS.bend) as protected compatibility surfaces; never silently weaken them to complete a migration.

Workflow

  1. Define the transition contract. Record current state, target state, consumers, non-negotiable behavior, compatibility window, rollout, rollback, and removal criteria.
  2. Capture a baseline. Establish build/test/runtime evidence and the existing contract before edits.
  3. Map compatibility. Use references/compatibility-evidence.md; identify producer/consumer order, mixed-version periods, generated clients, persisted data, and operational dependencies.
  4. Check dependency risk when relevant. Read references/dependency-risk.md for CVE reachability, maintenance, supply-chain, lockfile, and license considerations.
  5. Check database migration safety when relevant. Read references/database-migration-safety.md before production DDL/backfills or expand-contract work.
  6. Build stages. Use references/migration-plan-template.md. Each stage must be independently verifiable and have an exit/rollback condition.
  7. Implement bounded stages. Preserve compatibility until all required consumers have moved; do not delete the old path early.
  8. Verify and roll out. Test old/new and mixed states where relevant, observe rollout signals, and confirm rollback/forward-recovery.
  9. Contract. Remove legacy paths only after their retirement criteria are proven.

Handoffs and interaction boundaries

Use repository-intelligence for unclear blast radius, security-review for security-first code assessment, debugging-investigator when a migration uncovers an unexplained failure, and documentation-synchronizer for migration docs. Bounded implementation can go to production-web-builder, flutter-production-builder, expo-react-native-builder, rust-engineering, kotlin-engineering, python-engineering, cpp-engineering, swift-engineering, or go-engineering, according to the changed boundary. Each stage inherits the transition's input-domain, consumer, and rollback constraints. verification-and-release retains final ship judgment.

Failure handling

If the target cannot be supported safely, stop with the incompatible constraint rather than forcing the migration. If rollback is impossible, require explicit forward-recovery and containment evidence. Treat unresolved consumer inventory as a blocker to destructive contraction.

Stop conditions

Stop when the requested transition stage is implemented and verified with compatibility/rollback evidence, or when a concrete blocker prevents a safe transition. Legacy removal is a separate completion point unless explicitly in scope.

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.