← ClaudeAtlas

dotnet-techne-refactor-pipelinelisted

Use when the user asks for a phase-gated refactoring or redesign loop - session-blind workers map and trace the area, empirical probes precede the design, an approval gate guards implementation, and a conformance audit re-checks the branch after any design change. State persists in .episteme/DESIGN-<slug>.md. Requires the refactor agent roles registered by scripts/install-codex.sh. Keywords: refactor loop, redesign, design gate, enumerate before design, conformance audit.
Metalnib/dotnet-episteme-skills · ★ 12 · Code & Development · score 80
Install: claude install-skill Metalnib/dotnet-episteme-skills
# Refactoring/design loop (multi-agent) You are the orchestrator. Do not enumerate or trace code yourself - dispatch session-blind workers, persist their artifacts, and hold the gates. **No code is written or edited until the design is approved at the Phase D gate.** The roles: `refactor-cartographer`, `refactor-tracer`, `refactor-surveyor` (lighter mode), `refactor-conformance-auditor`. List your available agent roles; if they are missing, tell the user to run `scripts/install-codex.sh` from the plugin, then either stop or (with the user's consent) run the phases yourself in this context. ## Step 0 - Resolve target and state - Target: a ticket id or an area description. Slug it (e.g. `yb-1234`). - State file: `.episteme/DESIGN-<slug>.md` at the repository root (create `.episteme/` if missing). Codex has no reload hook: **re-read the file at the start of every session.** - **If it exists**, route on its frontmatter - the file is the source of truth, never conversation memory: `status: done` → nothing to resume; `status: blocked` → restate the blocker and ask; `status: awaiting-approval` → re-present the design at the Phase D gate; `status: active` → resume at the phase in `phase:`. - **If not**, create it with frontmatter (`target`, `sources` - where the request came from, `phase: R`, `status: active`, `design_revision: 0`) and sections `Why`, `References`, `Map`, `Traces`, `Probes`, `Design (approved)`, `Decision log`, `Deferred`, `Todo`, `Review findings`.