/spml:validation-pyramidfrom spml
Validates ML training pipelines using two-level checks (L0 static, L1 runtime) to catch integration errors before expensive training runs. Only for the integration subtask once per experiment.
Ships in spml. 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.
None: SKILL.md is the whole skill.
The Validation Pyramid ensures the assembled ML training pipeline is correct before committing to expensive long-running training. Two levels of validation, fired once per experiment, on the single [INTEGRATION] subtask: L0 catches static config errors cheaply (seconds), L1 catches runtime and pipeline errors thoroughly (minutes).
Core principle: In ML, code running without errors does NOT mean it's correct. The Validation Pyramid catches integration errors so you can trust that "not working" means the strategy is ineffective — not that the assembled training pipeline is wrong.
VP fires once, on integration only. Pure code subtasks (model class, dataset, loss, evaluator core, etc.) are validated by standard superpowers TDD + spec review + quality review — they do NOT run L0 or L1. The Validation Pyramid only fires when the components are assembled into the final delivered training pipeline.
VP is validation, not the experiment. Both levels (L0, L1) run with limited steps/data to verify correctness cheaply. The full training run happens AFTER VP passes, via spml:training-handoff → spml:watchdog. Never run VP levels with full experiment settings (full epochs, full dataset iterations).
This is a RIGID skill. Follow exactly. Don't skip levels. Don't adapt away discipline. Don't fire VP on code subtasks.
[INTEGRATION] subtask after standard reviews passspml:ml-subagent-dev's integration path[ ] REVISED)spml:ml-iteration, spml:autoresearch) — each round is itself a delivery and re-validates the assembled pipelineThe VP runs as 2 stages after standard Spec Review and Code Quality Review pass on the integration subtask, inside spml:ml-subagent-dev:
ml-subagent-dev (integration subtask only)
├─ Implementer assembles training pipeline + integration tests
├─ Spec Reviewer
├─ Code Quality Reviewer
├─ L0: ML Static Checks (spml:ml-static-checks) — static analysis
├─ L1: ML Runtime Validation (spml:ml-runtime-validator) — training + pipeline
└─ All pass → integration subtask complete → Post-Completion Gate
Code subtasks complete after Quality Review. They never enter this pipeline.
Execution order: L0 must pass before L1.
| Level | Skill | What it catches | Duration |
|---|---|---|---|
| L0 | spml:ml-static-checks | Static config errors, logging & observability (device, precision, optimizer, DataLoader, loss/speed output) | Seconds (code review) |
| L1 | spml:ml-runtime-validator | Performance anomalies + pipeline flow errors (MFU, gradients, loss, checkpoint, inference, evaluation) | ~5-15 minutes |
When any level fails, the orchestrator resumes the same Implementer subagent (the one that built the integration) to fix the issue. After fixing, re-run only the failed level.
Both levels share one mechanism. Each level has its own retry counter (resets when advancing to the next level):
Run validation
→ Pass → proceed to next level (reset counter)
→ Fail → send feedback to Implementer with specific issues
→ Implementer fixes → re-run this level
→ 5 consecutive failures at this level → pause, notify user
Timeout counts as a failure. Timeouts and metric failures share the same per-level retry counter.
If the Implementer's fix to the integration subtask modifies more than 50 lines, the fix is considered a substantial change. Roll back and re-run all previous integration stages: Spec Review → Code Quality Review → L0 (and any passed levels before the current one). This prevents large fixes from introducing new problems.
If the fix touches files owned by an upstream code subtask, that code subtask must be re-flagged for re-execution; its unit tests + reviews re-run, and the integration must re-run from the beginning afterwards.
[INTEGRATION] subtasks in the plan[INTEGRATION] subtask; that subtask alone runs VPWhat SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/autoresearchUse when running an automated research loop — reads protocol, dispatches Researcher subagent, runs eval + compliance, manages git state, accumulates experience across iterations/autoresearch-createUse when the user wants to start an Auto Research workflow - explicit entry point that activates autoresearch mode and routes into brainstorming for protocol definition/autoresearch-handoffUse after VP passes when the experiment needs automated iteration — verifies base code, generates research protocol, and produces startup prompt for autonomous explorationnpx claudepluginhub qqhard/superpowers-ml --plugin spmlOther plugins' skills for the same job