Skip to harness content
Open technical reference map

Work-type skill

Architecture and Refactor

Change architecture or module boundaries while preserving required behavior.

valdris-architecture-refactorOwning system: Active lifecycle owner

Skill orientation

Use this panel to select and sequence the skill. The canonical source follows below.

Purpose
Change architecture or module boundaries while preserving required behavior.
Category and sequence
Work type; sequence 4
Primary use
Architecture, Refactor, Migration, Technical Debt
Required gates
Classification, Foundation, Code Intelligence, Production, Proof
Conditional gates
No additional conditional gates are declared
Red Zone triggers
Breaking Contract, Production Migration
Next route
Return to the active lifecycle route
Source identifier
skills/valdris-architecture-refactor/SKILL.md
Canonical pathskills/valdris-architecture-refactor/SKILL.mdRevision69bab1cInspect source

Valdris Architecture And Refactor

  1. Run GitNexus-backed code intelligence; disclose any fallback.
  2. Validate the bound run/workload-classification.json, then require foundation/assessment.json to pass the Layer 0 foundation gate before implementation. The foundation assessment must resolve the required capabilities, effective assurance tier, workload and stakes profiles, and proof contract for the architecture work.
  3. Identify current boundaries, entrypoints, dependencies, invariants, and change pressure.
  4. Produce at least two viable designs when the decision is consequential.
  5. Prefer deep modules, narrow interfaces, explicit ownership, and reversible migration paths.
  6. Record the decision in design/system_design.md or an ADR with alternatives and trade-offs.
  7. Define expand-migrate-contract steps for changes that cannot land as one green vertical slice.
  8. Map production-domain, security, data, deploy, and rollback impact. The 13 canonical production domains are a shared baseline, not an exhaustive list of literal layers; asynchronous orchestration is cross-cutting and must be traced through every affected domain.
  9. Establish proof seams before implementation.

Use $codebase-design for module quality and $code-review after implementation when available.

Do not implement during an audit or design-only request. Do not approve a refactor whose behavior cannot be proven equivalent or intentionally changed.