Improve Architecture
Find concrete architecture friction and shape only the decision still needed.
Use architecture-language.md, engineering-discipline.md, and the repo Glossary/ADRs when present.
Boundaries
- Use this skill to discover opportunities or clarify an unresolved module/interface/seam choice.
- Use
review-work to judge architecture in a concrete change, PR, or Phase.
- Send an already-chosen behavior-preserving simplification to
simplify-work; send other decided implementation to implement-work. Do not force candidate selection, an interview, a Plan, or a handoff.
- Review may recommend this skill but should not start it automatically.
Discovery
- Start from caller-visible usage. Map the smallest useful call, component, data, or control-flow sketch needed to clarify modules, ownership, interfaces, and seams.
- Identify evidence-backed friction: scattered knowledge, shallow pass-through layers, leaky details, avoidable branches or mutable state, hard-to-test behavior, change amplification, unclear ownership, or a data model that permits invalid states.
- Present a small ranked set of candidates only when the user has not already selected the area.
- For the chosen candidate, clarify only load-bearing constraints, migration, verification, and caller impact.
- Return the smallest useful next artifact: recommendation, interface choice, bounded
simplify-work or implement-work scope, Plan request, or handoff. Do not create a Plan or handoff by default.
Candidate summaries should name the area, observed friction, opportunity, benefits, risks, and evidence.
Interface or seam choice
When placement is genuinely unresolved, compare two or three materially different options by caller impact, hidden complexity, migration cost, testability, volatility, and ownership. Recommend one. Skip this branch when placement is obvious or unchanged.
Treat architecture vocabulary as heuristics. A single adapter can justify a seam when it isolates volatility, ownership, or testing; ask what boundary it protects. Prefer public or intentionally stable interfaces as behavioral test surfaces without exposing internals only for tests.
Do not propose broad rewrites, relitigate ADRs without new friction, or make ordinary feature work speak architecture jargon unnecessarily.
1---2name: improve-architecture3description: Discover and shape architecture improvement or simplification opportunities in hard-to-understand, hard-to-test, shallow, scattered, or over-coupled code. Use when the opportunity or interface shape still needs discovery, not for an already-decided bounded change.4---56# Improve Architecture78Find concrete architecture friction and shape only the decision still needed.910Use [architecture-language.md](references/architecture-language.md), [engineering-discipline.md](references/engineering-discipline.md), and the repo Glossary/ADRs when present.1112## Boundaries1314- Use this skill to discover opportunities or clarify an unresolved module/interface/seam choice.15- Use `review-work` to judge architecture in a concrete change, PR, or Phase.16- Send an already-chosen behavior-preserving simplification to `simplify-work`; send other decided implementation to `implement-work`. Do not force candidate selection, an interview, a Plan, or a handoff.17- Review may recommend this skill but should not start it automatically.1819## Discovery20211. Start from caller-visible usage. Map the smallest useful call, component, data, or control-flow sketch needed to clarify modules, ownership, interfaces, and seams.222. Identify evidence-backed friction: scattered knowledge, shallow pass-through layers, leaky details, avoidable branches or mutable state, hard-to-test behavior, change amplification, unclear ownership, or a data model that permits invalid states.233. Present a small ranked set of candidates only when the user has not already selected the area.244. For the chosen candidate, clarify only load-bearing constraints, migration, verification, and caller impact.255. Return the smallest useful next artifact: recommendation, interface choice, bounded `simplify-work` or `implement-work` scope, Plan request, or handoff. Do not create a Plan or handoff by default.2627Candidate summaries should name the area, observed friction, opportunity, benefits, risks, and evidence.2829## Interface or seam choice3031When placement is genuinely unresolved, compare two or three materially different options by caller impact, hidden complexity, migration cost, testability, volatility, and ownership. Recommend one. Skip this branch when placement is obvious or unchanged.3233Treat architecture vocabulary as heuristics. A single adapter can justify a seam when it isolates volatility, ownership, or testing; ask what boundary it protects. Prefer public or intentionally stable interfaces as behavioral test surfaces without exposing internals only for tests.3435Do not propose broad rewrites, relitigate ADRs without new friction, or make ordinary feature work speak architecture jargon unnecessarily.