/loxihart-engineering:sparc-methodology-coachfrom loxihart-engineering
Guide structured development through 5 phases — Specification, Pseudocode, Architecture, Refinement (TDD), and Completion — with explicit time budgets per phase and a mandatory 6-persona staff-level audit loop at Completion that evaluates systemic risk, blast radius, and architectural coherence before any ship gate. Use whenever someone asks to build a feature, module, or system that benefits from structured thinking before coding. Triggers on: build this properly, spec this out, SPARC, TDD, test-driven, write tests first, spec before code, pseudocode this, architecture before coding, structured development, I keep rewriting this, this got messy, acceptance criteria, Given When Then, Red Green Refactor, time budget, phase-gated, completion checklist. Works standalone or activates inside staff-engineer-v4 Implement phase for STANDARD or FULL scope tasks. Do NOT trigger on quick fixes, patches, single-function tweaks, or LITE-scope tasks.
Ships in loxihart-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
<essential_principles>
Coding before thinking is the most expensive mistake in software. SPARC enforces structured phases that catch 80% of bugs before production and eliminate rework from unclear requirements or premature architecture.
The 5 phases nest inside staff-engineer-v4. Staff-engineer-v4 decides what to build (scope, stack, file plan). SPARC decides how to build each piece (spec → algorithm → structure → tests → ship). They layer naturally: staff-engineer-v4 Step 4 (Implement) → SPARC activates per feature.
Time budgets are guardrails, not rituals. S: 20% / P: 15% / A: 20% / R: 35% / C: 10%. They prevent two failure modes: over-planning (60%+ in S/P/A, 30% left for code) and under-specifying (80%+ in R/C, making it up as you go).
The audit loop at Completion is a ship gate. P0 findings block the feature. No exceptions. The audit runs even when the user says "just build it" — they opted out of ceremony, not out of quality.
"Just build it" is valid. Compress S and P into a brief internal plan (don't show it). Proceed to Architecture → TDD → Completion + Audit. Respect the request, preserve the quality.
</essential_principles>
Activate when:
Do NOT activate when:
Time budget by task estimate:
| Estimate | S (20%) | P (15%) | A (20%) | R (35%) | C (10%) |
|---|---|---|---|---|---|
| 2 hours | 25 min | 18 min | 25 min | 42 min | 12 min |
| 8 hours | 1.6h | 1.2h | 1.6h | 2.8h | 0.8h |
| 1 day | 1.6h | 1.2h | 1.6h | 2.8h | 0.8h |
Route to the appropriate workflow for each phase:
| Phase | Workflow | When to Load |
|---|---|---|
| S: Specification | workflows/specification.md | Start of every SPARC activation |
| P: Pseudocode | workflows/pseudocode.md | After Spec approved |
| A: Architecture | workflows/architecture.md | After Pseudocode complete |
| R: Refinement (TDD) | workflows/refinement-tdd.md | After Architecture locked |
| C: Completion + Audit | workflows/completion-audit.md | After all tests pass |
Load each workflow file as you enter that phase. Do not pre-load all phases.
<reference_index>
| Reference | Purpose |
|---|---|
references/patterns.md | Pseudocode examples, TDD cycle patterns, decisions log format, SPARC + staff-engineer-v4 integration map |
</reference_index>
<workflows_index>
| Workflow | Purpose |
|---|---|
workflows/specification.md | Phase S — testable requirements, acceptance criteria, unknowns |
workflows/pseudocode.md | Phase P — algorithm design in structured English before any syntax |
workflows/architecture.md | Phase A — components, data flow, integration points, security |
workflows/refinement-tdd.md | Phase R — Red → Green → Refactor TDD cycle |
workflows/completion-audit.md | Phase C — completion checklist + 6-persona staff audit loop |
</workflows_index>
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-engineering22 skills in this plugin
/administering-supabaseManages Supabase database operations for FlashFusion's production stack — schema design, Row Level Security policies, migrations, Edge Functions, and debugging. Active project: flashnframe-app (etctmappdhpjuwptdbeb). Use when the user mentions: Supabase, RLS, row level security, migration, schema, database, table, Edge Function, auth, policies, Postgres, supabase query, database admin, add a column, create a table, why is my query blocked, or any task involving the Supabase project or database structure.
/auditing-logicAudits code for logical errors before they become bugs — control flow gaps, data contract violations, schema/type drift, business logic inconsistencies, and silent failure paths. Produces a severity-rated issue list with a one-line diagnosis and one-line fix per finding. Use this skill whenever code is pasted with a review request, or when the user says "audit this", "check the logic", "does this make sense", "any issues with this", "logic audit", "what's wrong here", "review this function", "is this correct", or hands you any code file and wants a critical eye. Even if the user does not say "logic" — if code is present and they want feedback, use this skill. Also triggers on: "find the bug", "something feels off", "is this right", "sanity check this", "does this hold", "validate my logic", "code review", "PR review", "review this PR".
/code-auditorPerforms comprehensive codebase analysis covering architecture, code quality, security, performance, testing, and maintainability. Use when user wants to audit code quality, identify technical debt, find security issues, assess test coverage, or get a codebase health check./code-transferTransfer code between files with line-based precision. Use when users request copying code from one location to another, moving functions or classes between files, extracting code blocks, or inserting code at specific line numbers./debug-like-expertDeep analysis debugging mode for complex issues. Activates methodical investigation protocol with evidence gathering, hypothesis testing, and rigorous verification. Use when standard troubleshooting fails or when issues require systematic root cause analysis. Triggers on: debug this, root cause analysis, systematic debugging, why is this failing, trace this bug, diagnose this issue, investigation protocol, hypothesis testing./engineering-patternsProduction engineering pattern library spanning 11 phases — Foundation, Resilience, Performance, Data Integrity, Observability, Deployment, Scalability, Edge Cases, Security Deep, Compliance/DR/FinOps, and AI/HITL. Use when auditing code for production readiness, applying hardening patterns, reviewing system design, pattern audit, apply phase, harden this, production-ready, resilience patterns, observability gaps, security review, DR plan, FinOps, or AI guardrails. Use alongside engineering-staff-workflows for execution. Not for writing the implementation itself — that is engineering-staff-workflows.