/spml:using-spmlfrom spml
Establishes SPML skill loading protocol at conversation start, requiring host-appropriate skill activation before any response. For multi-host Claude Code plugin environments.
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.
IF A SKILL APPLIES TO YOUR TASK, YOU DO NOT HAVE A CHOICE. YOU MUST USE IT.
This is not negotiable. This is not optional. You cannot rationalize your way out of this.
SPML skills override default system prompt behavior, but user instructions always take precedence:
superpowers:* skills they delegate to) — override default system behavior where they conflictIf CLAUDE.md, GEMINI.md, or AGENTS.md says "don't use TDD" and a skill says "always use TDD," follow the user's instructions. The user is in control.
Use the mechanism that matches your host:
Skill tool to load skills, TodoWrite to track
checklist items, and Task for subagents when a skill asks for them.update_plan to track checklist items, and use native
subagents.skill tool. Skills are auto-discovered from
installed plugins. The skill tool works the same as Claude Code's Skill tool.activate_skill tool. Gemini loads
skill metadata at session start and activates the full content on demand.SKILL.md like an ordinary project file.SPML skills use Claude Code tool names. Non-CC platforms: see the upstream
superpowers plugin's references/copilot-tools.md (Copilot CLI) and
references/codex-tools.md (Codex) for tool equivalents. Gemini CLI users get
the tool mapping loaded automatically via GEMINI.md.
Before considering any spml:* skill, determine whether the current task is conducting an ML experiment. SPML skills are designed for running experiments, not for building software — even software that happens to involve ML code.
IS an ML experiment (→ proceed with SPML skills):
Is NOT an ML experiment (→ skip ALL spml:* skills, defer to superpowers:* equivalents):
The key question: Is the goal to observe an experimental outcome, or to ship working software?
Experiment directory override: If an upstream brainstorm has already established an experiment directory, ALL downstream artifacts (plans, docs, design docs) MUST be saved under that experiment directory — even when deferring to superpowers:* skills like superpowers:writing-plans. Never fall back to the default docs/plans/ path when an experiment directory has been set.
Before routing to any skill, check if the user's request references an existing experiment directory.
Detection:
If an experiment directory is identified, scan it:
When an experiment directory with existing artifacts is detected, you MUST read all existing design docs and plans BEFORE invoking any skill. Pass their content as context to the invoked skill.Do NOT create new design/plan files when existing ones can be revised. Do NOT let any skill skip reading existing artifacts.
State detection:
Scan <experiment-dir>/plans/:
- *-design.md exists? → has_design = true
- non-design *.md exists? → has_plan = true
Scan <experiment-dir>/:
- *.py exists? → has_code = true
Routing based on state:
| has_design | has_plan | has_code | Action |
|---|---|---|---|
| false | false | false | New experiment: invoke spml:ml-brainstorming (new mode) |
| true | false | false | Read design → invoke spml:experiment-planning |
| true | true | false | Read plan → invoke spml:ml-subagent-dev |
| true | true | true | Read design → invoke spml:ml-brainstorming (revision mode) |
Last row is critical: When a full experiment exists and the user wants changes, ALWAYS start from the design. Changes propagate top-down: design → plan → code. Direct code changes without design/plan updates are forbidden.
Load relevant or requested skills BEFORE any response or action. Even a 1% chance a skill might apply means that you should load it to check using the host-appropriate mechanism. If a loaded skill turns out to be wrong for the situation, you don't need to use it.
digraph skill_flow {
"User message received" [shape=doublecircle];
"About to EnterPlanMode?" [shape=doublecircle];
"Already brainstormed?" [shape=diamond];
"Invoke spml:ml-brainstorming" [shape=box];
"Is this an ML experiment?" [shape=diamond, style=bold, color=red];
"Skip all spml:* skills\nDefer to superpowers:*" [shape=box, style=dashed];
"Might any spml skill apply?" [shape=diamond];
"Load relevant skill\n(Skill tool / native discovery)" [shape=box];
"Announce: 'Using [skill] to [purpose]'" [shape=box];
"Has checklist?" [shape=diamond];
"Create checklist tracking item\n(TodoWrite / update_plan)" [shape=box];
"Follow skill exactly" [shape=box];
"Respond (including clarifications)" [shape=doublecircle];
"About to EnterPlanMode?" -> "Already brainstormed?";
"Already brainstormed?" -> "Invoke spml:ml-brainstorming" [label="no"];
"Already brainstormed?" -> "Is this an ML experiment?" [label="yes"];
"Invoke spml:ml-brainstorming" -> "Is this an ML experiment?";
"User message received" -> "Is this an ML experiment?";
"Is this an ML experiment?" -> "Skip all spml:* skills\nDefer to superpowers:*" [label="no"];
"Skip all spml:* skills\nDefer to superpowers:*" -> "Respond (including clarifications)";
"Is this an ML experiment?" -> "Might any spml skill apply?" [label="yes"];
"Might any spml skill apply?" -> "Load relevant skill\n(Skill tool / native discovery)" [label="yes, even 1%"];
"Might any spml skill apply?" -> "Respond (including clarifications)" [label="definitely not"];
"Load relevant skill\n(Skill tool / native discovery)" -> "Announce: 'Using [skill] to [purpose]'";
"Announce: 'Using [skill] to [purpose]'" -> "Has checklist?";
"Has checklist?" -> "Create checklist tracking item\n(TodoWrite / update_plan)" [label="yes"];
"Has checklist?" -> "Follow skill exactly" [label="no"];
"Create checklist tracking item\n(TodoWrite / update_plan)" -> "Follow skill exactly";
}
These thoughts mean STOP—you're rationalizing:
| Thought | Reality |
|---|---|
| "This is just a simple question" | Questions are tasks. Check for skills. |
| "I need more context first" | Skill check comes BEFORE clarifying questions. |
| "Let me explore the codebase first" | Skills tell you HOW to explore. Check first. |
| "I can check git/files quickly" | Files lack conversation context. Check for skills. |
| "Let me gather information first" | Skills tell you HOW to gather information. |
| "This doesn't need a formal skill" | If a skill exists, use it. |
| "I remember this skill" | Skills evolve. Read current version. |
| "This doesn't count as a task" | Action = task. Check for skills. |
| "The skill is overkill" | Simple things become complex. Use it. |
| "I'll just do this one thing first" | Check BEFORE doing anything. |
| "This feels productive" | Undisciplined action wastes time. Skills prevent this. |
| "I know what that means" | Knowing the concept ≠ using the skill. Invoke it. |
| "ML is different, I can skip the process" | ML needs MORE process, not less. Follow it. |
When multiple skills could apply, use this order:
spml:ml-brainstorming, spml:diagnostics) - these determine HOW to approach the taskspml:validation-pyramid, spml:ml-static-checks, spml:ml-runtime-validator) - these verify correctnessspml:experiment-planning, spml:ml-subagent-dev) - these guide execution"Let's train X" -> spml:ml-brainstorming first, then spml:experiment-planning.
"Training isn't converging" -> spml:diagnostics first, then validation skills.
"MFU is too low" -> spml:diagnostics first, then spml:ml-runtime-validator.
"Find the best X" / "auto research" / "optimize X automatically" -> spml:autoresearch-create (create protocol + baseline) or spml:ml-brainstorming (keyword detection), then after VP: spml:autoresearch-handoff → spml:autoresearch-run (execute the loop).
Rigid (validation-pyramid, diagnostics): Follow exactly. Don't adapt away discipline.
Flexible (framework knowledge): Adapt principles to context.
The skill itself tells you which.
In ML, code running without errors does NOT mean it's correct. "Not working" is reasonable, but the process must be correct. Always validate through the Validation Pyramid before concluding an experiment.
When validation or evaluation is part of the task, plan it explicitly upstream. Treat evaluation as a first-class subtask with:
full validation scope by default unless explicitly overriddenInstructions say WHAT, not HOW. "Train X" or "Fix convergence" doesn't mean skip workflows.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub qqhard/superpowers-ml --plugin spml17 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 exploration/autoresearch-runUse when the user wants to execute an Auto Research loop - explicit entry point that locates the protocol and starts the autonomous iteration/data-preparationUse when constructing or transforming datasets for training - guides TDD-first workflow to validate data processing logic on small-scale data before running full-scale/diagnosticsUse when ML training isn't converging, shows anomalous behavior, or runs too slowly - systematic diagnosis for training failures, early anomalies, and efficiency bottlenecksOther plugins' skills for the same job