What problem does it solve?
Refine prevents wasted engineering cycles caused by unclear shared language, unagreed boundaries, and missing interface contracts by forcing early, codebase-first alignment before any implementation begins.
Core Features & Use Cases
- Grill-me protocol for alignment: Runs a full decision-tree that resolves glossary terms, architectural boundaries, constraints, and out-of-scope decisions prior to building.
- Context-first system contracts: Produces a structured Agent Brief with interface-first schemas, error states, and testability notes rather than implementation plans.
- Architecture decision capture: Converts every architectural decision into MADR-format ADRs and updates contextual invariants and constraints.
- Session discipline and guardrails: Uses context sensitivity thresholds to avoid drifting alignment when the context window is large or unstable.
Quick Start
Ask the AI to run the refine skill to produce an updated CONTEXT.md, an Agent Brief with interface contracts, and any required MADR ADRs for your feature request.