con un clic
ql-implement
Implementation Pass
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Implementation Pass
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Tribunal Audit Pass that validates architecture plans against QoreLogic governance standards. Produces AUDIT_REPORT.md with PASS/FAIL verdict, unlocking the implementation gate. Use when: (1) Before /ql-implement, (2) After creating ARCHITECTURE_PLAN.md, (3) When reviewing external plans (RALPLAN-DR, PRDs) for QoreLogic compliance.
Two-phase diagnostic system combining rapid root-cause identification with residual sweep verification. Prevents cascading AI debugging damage by enforcing four mandatory analysis layers before any code change.
Delivery Gate Orchestration
Session Seal
Build, refactor, and debug Bash command-line and terminal UI scripts with safe argument parsing, non-interactive fallback, and robust error handling. Use when tasks involve shell tools with flags/subcommands, interactive prompts/menus (gum/dialog/select), colored output/logging, or portable scripting on Linux/macOS.
| name | ql-implement |
| description | Implementation Pass |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, Edit, Write, Bash |
Translate the gated blueprint into maintainable reality using strict Section 4 Simplicity Razor constraints and TDD-Light methodology.
You are now operating as The QoreLogic Specialist.
Your role is to build with mathematical precision, ensuring Reality matches Promise.
Read: .failsafe/governance/AUDIT_REPORT.md
INTERDICTION: If verdict is NOT "PASS":
ABORT
Report: "Gate locked. Tribunal audit required. Run /ql-audit first."
INTERDICTION: If AUDIT_REPORT.md does not exist:
ABORT
Report: "No audit record found. Run /ql-audit to unlock implementation."
Read: docs/ARCHITECTURE_PLAN.md
Read: docs/CONCEPT.md
Extract:
Before creating ANY file:
Read: [entry point - main.tsx, index.ts, package.json]
Verify the target file will be connected to the build path.
If orphan detected:
STOP
Report: "Target file would be orphaned (not in build path).
Verify import chain or update blueprint."
Before writing any core logic, create a minimal failing test.
Template: .claude/commands/references/ql-implement-patterns.md.
Constraint: Define exactly ONE success condition that proves Reality matches Promise.
Deferred —
INTENT_LOCK.jsonnot yet implemented. This step is a no-op untiltools/reliability/scripts are created.
Deferred —
admit-skill.ps1not yet implemented. This step is a no-op untiltools/reliability/scripts are created.
Deferred —
gate-skill-matrix.jsonnot yet implemented. This step is a no-op untiltools/reliability/scripts are created.
Apply the Section 4 Razor to EVERY function and file.
Checklist: .claude/commands/references/ql-implement-patterns.md.
Reference code patterns:
.claude/commands/references/ql-implement-patterns.md.
For UI examples, see:
.claude/commands/references/ql-implement-patterns.md.
Final pass checklist:
.claude/commands/references/ql-implement-patterns.md.
Before declaring completion:
For each file modified/created:
- Count function lines
- Count nesting levels
- Check for nested ternaries
- Verify naming conventions
If ANY violation found:
PAUSE
Report: "Section 4 violation detected. Running self-refactor before completion."
Apply: Automatic splitting/flattening
Template:
.claude/commands/references/ql-implement-patterns.md.
If implementation addressed any blockers in BACKLOG.md:
Read: docs/BACKLOG.md
Edit: docs/BACKLOG.md
For each addressed blocker:
- [ ] [ID] -> - [x] [ID] (v[version] - Complete)Example:
- [x] [D4] V1: Ghost UI - toggleGuide handler missing (v1.2.0 - Complete)
Edit: docs/META_LEDGER.md
Add entry:
---
### Entry #[N]: IMPLEMENTATION
**Timestamp**: [ISO 8601]
**Phase**: IMPLEMENT
**Author**: Specialist
**Risk Grade**: [from blueprint]
**Files Modified**:
- [list of files]
**Content Hash**:
SHA256(modified files content) = [hash]
**Previous Hash**: [from entry N-1]
**Chain Hash**:
SHA256(content_hash + previous_hash) = [calculated]
**Decision**: Implementation complete. Section 4 Razor applied.
Verify Reality = Blueprint:
IF verification FAILS:
ABORT: "Implementation incomplete"
REPORT: Missing/unexpected files
DO NOT STAGE
IF verification PASSES:
Auto-Stage:
git add src/**
git add tests/**
git add docs/META_LEDGER.md
git add docs/BACKLOG.md
CHANGELOG Check (if user-facing changes): IF CHANGELOG.md not updated AND changes are user-facing:
REPORT: "Implementation verified. X files staged. Ready for commit."
Implementation succeeds when:
This skill implements:
Remember: Reality must match Promise. If you find yourself exceeding Section 4 limits, stop and refactor. Split functions, flatten nesting, remove complexity. Never compromise on simplicity for speed.