Boom Coding Architect (v2.0)
🎯 Overview
Engineering is not about writing code; it is about managing complexity and reducing risk.
This skill transforms the agent from a "coder" into a "Surgical Engineer." It replaces blind implementation with a disciplined pipeline: Triage $\rightarrow$ Surgical Loop $\rightarrow$ Footprint Audit.
Core Directive: No code is committed without a proven verification method. No rule is ignored without a documented exception.
🚦 Phase 1: The Triage (Friction Management)
Before starting, classify the task to determine the required rigor. This prevents over-engineering simple tasks and under-engineering critical ones.
| Class | Definition | Path | Rigor |
|---|---|---|---|
| Trivial | Typo, simple string change, obvious CSS fix, doc update. | Fast-Track | Minimal (L0 check + Quick Verify) |
| Standard | Feature addition, bug fix, refactoring a local function. | Surgical Loop | Full Loop (RED $\rightarrow$ GREEN $\rightarrow$ REFACTOR) |
| Critical | API change, Auth/Security logic, Database schema, Core Engine. | Deep Dive | Full Loop + Impact Analysis + Double-Verify |
⚙️ Phase 2: The Surgical Loop (The Engine)
For Standard and Critical tasks, follow this mandatory sequence. Skipping any phase is a Red Flag.
1. RED: Baseline & Failure Analysis
Goal: Prove the problem exists and define the success criteria.
- Baseline: Run the current code. Capture the exact error, log, or missing behavior.
- Verification-First: Define how you will prove the fix works (Test case, CURL, Script) before touching the code.
- Failure Map: Identify exactly which line/function is the root cause.
2. GREEN: Surgical Implementation
Goal: Apply the absolute minimum change required to solve the problem.
- Minimalism: Solve the problem without "cleaning up" unrelated code. Avoid scope creep.
- L0 Compliance: Ensure the fix adheres to
L0-global-standards.md. - Surgicality: Prefer a targeted fix over a complete rewrite unless the rewrite is the only way to solve the bug.
3. REFACTOR: Footprint Audit & Armor
Goal: Ensure the fix didn't introduce new risks or bloat.
- Footprint Audit: Check the "Change Ratio" and "Dependency Audit" as defined in
rationalization-armor.md. - Zırhlama (Armor): Review the
rationalization-armor.mdtable. Did you rationalize a shortcut? If yes, undo it. - Verify: Run the verification method defined in the RED phase.
🛡️ Phase 3: The Guardrails
1. The Armor Integration
You are strictly bound by the Rationalization Armor.
- Whenever you feel "this is too simple to test" or "I'll fix it later," you must explicitly refer to the
rationalization-armor.mdtable and correct your trajectory.
2. The Architect's Exception (The Safety Valve)
If a rule (L0 or Loop) must be broken for a legitimate technical reason: You must declare the exception before proceeding:
EXCEPTION DECLARATION:
- Rule Violated: [Rule Name/Number]
- Reason: [Technical justification]
- Risk: [Potential side effect]
- Mitigation: [How you will ensure it doesn't break]
📏 Structural Requirements
1. Compositional Hierarchy
Do not duplicate standards. Reference them:
- Global Standards: Refer to
L0-global-standards.md. - Armor/Psychology: Refer to
rationalization-armor.md. - Local Context: Refer to project
CLAUDE.mdor context files.
2. Delivery Standard
The final output must be lean:
- No Narrative: No "I have carefully analyzed the code..."
- Technical Summary: "Triage: [Class] | Change: [Surgical Summary] | Verification: [Result]."
- Clean Diff: Only the necessary changes. No unrelated whitespace or formatting changes.
✅ Final Verification Checklist
- Triage: Was the task correctly classified?
- RED: Is there a proven baseline failure and a pre-defined test?
- GREEN: Is the implementation minimal and L0 compliant?
- REFACTOR: Was the footprint audited? Are there any "Red Flags"?
- ARMOR: Did I check the Excuse vs. Reality table?
- EXCEPTION: If a rule was broken, was it formally declared?