architecture-modernization
Skill4 starsChanged 32 days agoApache-2.0View on GitHub
Plan a safe, incremental modernization or migration of an existing system. Covers baseline, target state, seams, strangler slices with interop, data migration, rollback, exit criteria and measurable outcomes. Use this skill whenever the user mentions breaking up a monolith, rewriting, replatforming, cloud migration, a framework or database upgrade, "legacy", or asks for the safest order in which to change a running system, even if they never say "modernization". Do not use it for greenfield design (use architecture-design) or for a pure assessment (use architecture-audit).
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- architecture-auditSkill
- architecture-designSkill
- architecture-verificationSkill
- threat-modelingSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
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
- Distinctive: line 19
Baseline: Use an architecture-audit report (or run that skill first) for the current state, risks and blind spots.
- Distinctive: line 21
Define the target state: only as far as the outcomes require.
- Distinctive: line 22
Find seams: Look for modules with few inbound dependencies, stable interfaces and owned data.
- Distinctive: line 23
Cut slices: Prefer strangler-style slices.
- Distinctive: line 25
Sequence by risk removed per effort and by dependencies: Put the riskiest unknown early as a cheap experiment.
- Distinctive: line 33
Do not break consumers you cannot see: Treat unknown consumers as present.
- Very specific: line 38
Write the plan as both docs/architecture/modernization.md and docs/architecture/modernization.html.
- Distinctive: line 42
Use architecture-design for a component that is genuinely new.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Architecture Modernization
Plan change to a system that must keep running. The goal is a sequence of small, reversible steps, each of which leaves the system better and shippable.
Why this skill is built the way it is
- Rewrites fail most often because they stop delivering value for months while the old system keeps changing. Incremental slices keep value flowing and risk small.
- Migrations hurt at the data layer and at the edges (consumers you cannot see). So data movement and interop get their own plan, not a footnote.
- "Modern" is not a goal. A migration is justified only by a measurable outcome, so you define the outcome first.
Workflow
- Baseline. Use an architecture-audit report (or run that skill first) for the current state, risks and blind spots. If none exists, map the system enough to name its parts and dependencies.
- Define why and how success is measured. Pick 2 to 4 outcomes with numbers (lead time, incident rate, cost per request, the scale limit you will hit). If the user cannot name any, say the migration is not yet justified and ask.
- Define the target state only as far as the outcomes require. Avoid a perfect end-state diagram nobody can reach.
- Find seams. Look for modules with few inbound dependencies, stable interfaces and owned data. Use references/seam-finding.md.
- Cut slices. Prefer strangler-style slices. For each slice write scope, interop, data migration, rollback, verification and exit criteria using references/slice-template.md.
- Build the safety net first. Characterization tests, contract tests and fitness functions before the first change. If none exist, the first tasks are tests, not changes.
- Sequence by risk removed per effort and by dependencies. Put the riskiest unknown early as a cheap experiment.
- Keep a risk register (references/risk-register.md): what could stall the program (people, data quality, vendor limits) and the cheapest early test of each.
Rules that keep migrations survivable
- Every slice has a rollback that was tested, or the slice is not ready. Say when rollback stops being possible (the point of no return) and gate that step.
- Expand, migrate, contract for data: add the new structure, move data while both work, remove the old only after verification.
- Reject big-bang rewrites unless the user states a constraint that forces one; then record the reason and shrink the blast radius anyway.
- Do not break consumers you cannot see. Treat unknown consumers as present; version and deprecate with dates.
- Label claims
observed,inferred,proposedorunknown. Most of the plan isproposed; the current state must beobserved.
Files the reader gets
Write the plan as both docs/architecture/modernization.md and docs/architecture/modernization.html. Save the Markdown, then run archsutra html docs/architecture/modernization.md. Do not hand-write HTML. Do not leave the plan only in chat.
Hand-offs
Use architecture-design for a component that is genuinely new. Use threat-modeling when a slice changes a trust boundary. Run architecture-verification before presenting the plan.
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
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.

