What problem does it solve?
AI code generation fails in predictable, recurring ways: monolithic output, skipped planning phases, self-auditing without verification, and tests as afterthoughts. Phaselock converts each failure mode into a hard rule with mechanical enforcement through hooks and verification scripts, ensuring AI agents generate, review, and verify code against institutional knowledge.
Core Features & Use Cases
- Tiered Workflow Routing: Classifies tasks into four tiers (Research, Patch, Standard, Complex) to apply the right level of ceremony.
- Phased Implementation Protocol: Enforces sequential planning phases (call-path declaration, domain invariants, seam justification, system dynamics) with human approval gates.
- Sliced Code Generation: Breaks implementation into dependency-ordered slices with per-slice validation, static analysis, and handoff JSON.
- Comprehensive Rule Library: 80 enforceable rules across architecture, database, security, performance, testing, and framework-specific domains (Magento 2, PHP, Python).
Quick Start
Use the phaselock skill to review your AI-generated code against the institutional coding bible and enforce all applicable architectural, security, and performance rules before committing.