architecture-refactoring-strategy

Solid

Use when code changes need staged structural design: boundary extraction, modularization, dependency inversion, migrations, anti-corruption layers, tests, rollout gates, and rollback.

Code & Development 8 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
32
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Architecture Refactoring Strategy Use when improving architecture needs staged code change rather than a one-shot rewrite. ## Inputs Gather current architecture map, hot paths, structure metrics, runtime topology, ownership topology, target quality attribute, constraints, tests, production signals, failure history, ADRs, and architecture principles. For architecture-significant structural changes, require a baseline before code edits: dirty-tree state, observed boundary evidence, pre-refactor probe or explicit reason it was skipped, representative change/runtime scenario, and the focused skills used from the router. ## Patterns Use the smallest safe pattern: - characterization tests before moving behavior; - branch by abstraction behind stable interface; - strangler fig for extracting flows; - anti-corruption layer for old model or external API coupling; - facade/adapter to stabilize callers; - parallel run, shadow read, dual write for data migration risk; - feature flag or compatibility window for reversibility; - expand-contract migration for schema/API changes. ## Multi-Objective Frame For every refactor name: - primary quality attribute to improve; - secondary attributes that must not regress; - accepted tradeoff and threshold; - evidence signal before and after each slice. Do not recommend a pattern without the measurable quality attribute it improves. ## Slicing Prefer one validated slice at a time: user flow, bounded-context seam, data ownership edge, de...

Details

Author
Xopoko
Repository
Xopoko/plug-n-skills
Created
1 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category