agentleFS
rakaarwakyrakaarwaky/agents-arwaky/skills/architechture/aes-migration/SKILL.md

aes-migration

Skill0 starsChanged 5 days agoMITView on GitHub

AES architecture migration workflow for Python, Rust, and TypeScript codebases.

The file

Files
SKILL.md

aes-migration

Guide the phased migration of a legacy codebase into the AES layered architecture: Phase 0 audit the baseline, then Phase 1–7 build each layer bottom-up — taxonomy → contract → utility → capabilities → agent → surface → root — and Phase 8 verify to zero. The audience is the agent planning or executing a migration; the language decides which playbook loads, and the violation count after the baseline audit decides the strategy (< 10: full, 10–50: phased, > 50: taxonomy-first). Each layer's shape is owned by its layer skill; the playbook carries import matrices, phase templates, and troubleshooting. Invariants read by more than one step live in Global Rules below.

Global rules

  • Baseline first: lint-arwaky-cli scan . before touching anything; the recorded violation count picks the strategy.
  • Layer order: migrate bottom-up (taxonomy → contract → utility → capabilities → agent → surface → root); a layer starts only when the one below scans clean.
  • Per-phase gate: lint-arwaky-cli scan <layer-dir> → 0 before moving to the next layer; language compile (python -m compileall / cargo check / npx tsc --noEmit) is fallback only.
  • Done: Phase 8 — full scan of the project root exits 0, language compile clean, tests green; commit migrate: <layer> phase to AES (<rules>) only when asked.
  • Shape ownership: protocol/aggregate shape, structure, DI, wiring — all owned by aes-layer — the migration skill routes; it does not restate layer shape.
  • One fact, one home: the language playbook carries the phase templates and troubleshooting table — read it, do not restate here. Cite the linter, not this file, when pointing at a rule. Each bullet states a fact once; references point at the bullet.

Routing

FilePurpose
references/python-migration.mdPython migration playbook — phases 0–8, lint verify pipeline, fix routing, verify
references/rust-migration.mdRust migration playbook — phases 0–8, lint verify pipeline, fix routing, verify
references/typescript-migration.mdTypeScript migration playbook — phases 0–8, lint verify pipeline, fix routing, verify
references/lint-rules.mdLint Rules (Global): shared CLI surface, AES101 naming contract, fix routing, triage order
Related skillsaes-layer

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.