Skills
Gate AI-generated code behind a three-phase spec state machine (proposal → apply → archive) with OpenSpec
OpenSpec, the most actively maintained open-source spec-driven framework (52,100 GitHub stars as of June 2026), enforces a strict three-phase state machine — proposal, apply, archive — before any code is written, turning executable specifications into active validation gates rather than docs. The pattern works because the spec, not the chat history, becomes the durable source of truth the agent and reviewer share, catching drift before it reaches production. For builders shipping agent-written code, this is a concrete workflow upgrade over ad-hoc prompting when output has to survive real use.
Source
↳ Follow the thread