agentleFS
shahvatsalofficialshahvatsalofficial/archsutra-ai/skills/architecture-modernization/SKILL.md

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).

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
  1. Distinctive:

    Baseline: Use an architecture-audit report (or run that skill first) for the current state, risks and blind spots.

    line 19
  2. Distinctive:

    Define the target state: only as far as the outcomes require.

    line 21
  3. Distinctive:

    Find seams: Look for modules with few inbound dependencies, stable interfaces and owned data.

    line 22
  4. Distinctive:

    Cut slices: Prefer strangler-style slices.

    line 23
  5. Distinctive:

    Sequence by risk removed per effort and by dependencies: Put the riskiest unknown early as a cheap experiment.

    line 25
  6. Distinctive:

    Do not break consumers you cannot see: Treat unknown consumers as present.

    line 33
  7. Very specific:

    Write the plan as both docs/architecture/modernization.md and docs/architecture/modernization.html.

    line 38
  8. Distinctive:

    Use architecture-design for a component that is genuinely new.

    line 42

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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.
  2. 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.
  3. Define the target state only as far as the outcomes require. Avoid a perfect end-state diagram nobody can reach.
  4. Find seams. Look for modules with few inbound dependencies, stable interfaces and owned data. Use references/seam-finding.md.
  5. Cut slices. Prefer strangler-style slices. For each slice write scope, interop, data migration, rollback, verification and exit criteria using references/slice-template.md.
  6. 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.
  7. Sequence by risk removed per effort and by dependencies. Put the riskiest unknown early as a cheap experiment.
  8. 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, proposed or unknown. Most of the plan is proposed; the current state must be observed.

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.

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.