/foundationskills:fs-planfrom foundationskills
User-invoked slash command that composes training.planner, probe_first, and training.emit skills in sequence, stopping at the first non-PASS step. Shows plan hashes of emitted fs_launch_specs for the user to type back to /fs-launch.
Ships in foundationskills. 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 plan-to-hash workflow: when the user types /fs-plan, it composes three model skills in a fixed
order — training.planner -> probe_first -> training.emit — and stops at the first step that is not
PASS. On PASS it writes one workflow_record and SHOWS the user the plan hash of every emitted
fs_launch_spec, to read and type back to /fs-launch; it never launches and never fills a hash into a
launch. It composes model skills and never another user skill (invokes holds only training.planner,
probe_first, training.emit). Outcome mapping (from foundationskills.skills._workflow): a composed
step that REFUSES becomes FP-IN-003 (REFUSED 96, nothing written); a composed step that is RED, or an
emitted spec with executable false, becomes FP-HO-001 (RED 5); a composed step that is UNMEASURED becomes
FP-HO-002 (UNMEASURED 95, never PASS).
/fs-plan.goal_spec (plus readiness, dataset, probe_report) to emitted fs_launch_spec
artifacts with plan hashes the user can type back to /fs-launch./fs-launch), sealing a confirm_before_launch record without launching
(that is confirm_before_launch), or explaining a result status (that is /fs-status).All inputs are flat request fields (no extra keys are allowed); file fields are artifact paths the skill
reads through load_payload.
| Field | Required | Meaning |
|---|---|---|
goal | yes | path to a goal_spec artifact — what to train |
readiness | no | path to a readiness report handed to the planner alongside the goal |
dataset | no | path to a dataset artifact handed to the emit step |
probe_report | yes | path to the probe report (fskills probe --deep --json); nothing is planned against what FS cannot measurably run (FP-IN-002) |
model | no | model path/name handed to the emit step |
output_root | no | run output root handed to the emit step (default: the workdir runs directory) |
hardware_id | no | hardware target for planner and emit (default gb200) |
nodes | no | node count for the emitted specs (default 1, minimum 1) |
gpus_per_node | no | GPUs per node for the emitted specs (default 1, minimum 1) |
out | no | directory to write the workflow_record into |
One workflow_record artifact (typed, schema-validated, with provenance) whose payload is workflow
("fs_plan"), steps (one row per composed step: training.planner, probe_first, training.emit),
outputs (training_plan path, the probe_report path, and launch_specs: for each emitted
fs_launch_spec a row {path, stage, plan_hash, executable, missing}), verdict ("PASS" or "RED"),
red_step (when the verdict is RED: the reason and the offending specs) and show_user.
Exit codes: 0 PASS (every step PASS and every emitted spec executable — the show_user message reads
"Read each plan_hash below and type it back to /fs-launch with its launch_spec; no hash is ever filled in
for you."; the skill shows each spec's plan hash and the user types it back to /fs-launch — it never
launches and never fills a hash into a launch), 5 RED (FP-HO-001: a composed step came back RED or an
emitted spec is not executable — the workflow_record names the spec's missing item), 95 UNMEASURED
(FP-HO-002: never treated as PASS), 96 REFUSED (FP-IN-001/FP-IN-002/FP-IN-003; nothing is written on a
refusal).
LLM and VLM work of any family and stage (pretrain, cpt, sft, preference, rl) under the methods
full, lora, qlora, on hardware gb200, dgx-h100, local. It composes the three named model
skills and never another user skill, writes only its workflow_record, and never invokes a launcher.
It requires FoundationScale (requires_fs is True) because it composes model skills through the registry.
fskills plan
--goal (required)--hardware--readiness--workdir| Rule | Phase | Severity | Description |
|---|---|---|---|
| FP-HO-001 | handoff | BLOCK | a composed step came back RED, or an emitted spec is not executable |
| FP-HO-002 | handoff | WARN | a composed step came back UNMEASURED |
| FP-IN-001 | input | BLOCK | no goal is given |
| FP-IN-002 | input | BLOCK | no probe_report is given (probe first: plan only against what FS measurably runs) |
| FP-IN-003 | input | BLOCK | a composed step (planner, probe_first or emit) refused |
workflow_record
PASS 0 · RED 5 · UNMEASURED 95 · REFUSED 96
Outcome semantics (from core/contract.py, the same for every skill): an input-phase BLOCK refuses
before any work — status REFUSED, exit 96, nothing written. A handoff BLOCK fires after the run over
the payload — RED, exit 5. WARN and INFO findings never block; they travel with the result. Phase by
prefix: FP-IN-* rules are input phase, FP-HO-* rules are handoff phase.
| Rule | Severity | Fires when |
|---|---|---|
| FP-IN-001 | BLOCK | no goal is given → REFUSED 96: nothing can be planned |
| FP-IN-002 | BLOCK | no probe_report is given (probe first: plan only against what the installed FoundationScale measurably runs) → REFUSED 96 |
| FP-IN-003 | BLOCK | a composed step (training.planner, probe_first or training.emit) refused → REFUSED 96; nothing is written; the step's own findings are the evidence |
| FP-HO-001 | BLOCK | a composed step came back RED, or an emitted spec has executable false → RED 5; the workflow_record names the spec's missing item |
| FP-HO-002 | WARN | a composed step came back UNMEASURED → UNMEASURED 95 (never PASS), with the finding attached |
goal: REFUSED (96) naming FP-IN-001; pass goal (a goal_spec artifact path) and re-run /fs-plan.probe_report: REFUSED (96) naming FP-IN-002 (probe first); run fskills probe --deep --json > probe.json and pass it as probe_report, then re-run /fs-plan.training.planner, probe_first or training.emit): REFUSED (96) naming
FP-IN-003 with that step's findings as evidence; fix what those findings name and re-run /fs-plan.executable false: RED (5) naming FP-HO-001 — the
workflow_record carries steps and red_step; fix the RED step or the spec's missing item and
re-run /fs-plan. Do not treat the spec as launchable and do not hand a hash to /fs-launch.FsPlanSkill.diagnose();
do not improvise a fix here and do not launch anything.CLI entries it relies on: fskills plan, fskills emit, fskills hash (the composed skills compute
these; the hashes are shown, never submitted). It composes training.planner -> probe_first ->
training.emit, emits nothing into the scheduler and declares no APIs. It never invokes another user
skill and never calls a launcher: interfaces.fs.launch.launch (the only launch path) belongs to
/fs-launch. It writes only its workflow_record artifact and touches no cluster resource. It requires
FoundationScale: on a host with only foundationskills installed the composed model skills cannot run —
report REFUSED with the install step (pip install -e <FoundationScale repo>/FoundationScale) and never
improvise a plan.
Everything given, all steps PASS.
User: /fs-plan — plan from goal_spec.q27.json, probe_report probe.q27.json, dataset.json,
model=/models/mistral-7b, nodes=2, gpus_per_node=8, hardware_id=gb200.
The skill runs planner -> probe_first -> emit, writes one workflow_record with verdict PASS and one
launch_specs row per emitted spec, and shows each row's plan_hash with show_user: "Read each
plan_hash below and type it back to /fs-launch with its launch_spec; no hash is ever filled in for you."
The user types those hashes to /fs-launch — /fs-plan never launches and never fills a hash in.
Probe report missing.
User: /fs-plan — plan from goal_spec.q27.json only.
FP-IN-002 fires: REFUSED (96) saying no probe_report is given and to run
fskills probe --deep --json > probe.json first. Nothing is planned and nothing is written.
Emit returns a non-executable spec.
training.planner and probe_first PASS, but training.emit returns a spec with
executable: false, missing: ["sft objective"]. FP-HO-001 fires: RED (5); the workflow_record's
red_step names the not-executable spec and its missing item. Fix it and re-run /fs-plan; no hash is
offered for /fs-launch.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub trannhiem/foundationscale --plugin foundationskills21 skills in this plugin
/fs-dataUser-invoked slash command: run ONLY when the user types /fs-data; never choose it on your own. Slash-command data preparation workflow (/fs-data) that composes the model skill data_engine to turn raw data refs into a dataset, data_pipeline_spec and readiness_report. Inputs: the data_engine request fields (sources, target_format, tokenizer, chat_template_family, out_dir, requirements, pipeline, reasoning_unsupported, benchmarks, ...) passed through unchanged, plus optional goal_spec (a path recorded in outputs, not interpreted). The workflow record says which step ran, what it produced and the verdict (PASS/RED/UNMEASURED). Do NOT use for explaining fskills results (use /fs-status), fixing data problems yourself, or training a model (use /fs-training): this composes data_engine and produces data artifacts only./fs-evalUser-invoked slash command: run ONLY when the user types /fs-eval; never choose it on your own. /fs-eval is the A3.2 user-invoked workflow skill: it takes the evaluation request (checkpoint, run_manifest, base, benchmarks, policy, eval_cache, out, baseline_cache, ...) and forwards it UNCHANGED to the ONE composed model skill `evaluation`, run through foundationskills.skills._workflow, then writes one workflow_record {workflow, steps, outputs, verdict} whose outputs name the eval_report BY PATH. Outcome mapping (PASS 0 / RED 5 / UNMEASURED 95 / REFUSED 96): inner REFUSED -> FE-IN-002 REFUSED; inner RED -> FE-HO-001 RED; inner UNMEASURED -> FE-HO-002 UNMEASURED (never PASS). Do NOT use for fixing a regression, running a bare lm-eval harness or judging launch-readiness: /fs-eval records the evaluation verdict, it never repairs a benchmark or tunes a policy./fs-goalUser-invoked slash command: run ONLY when the user types /fs-goal; never choose it on your own. Grilling composer (/fs-goal) for one FoundationSkills goal_spec: takes the intake answers so far ({objective, goal?, domain?, preserve_general?, base_model {name_or_path, size_b?, arch?}, sources [{uri, kind, ...}], hardware {gpu, gpus_per_node, nodes}, data_facts {has_verifiable_answers, has_pairs, has_instructions}, rl_algorithm?}), asks ONLY for the facts intake.missing_facts still names and then one confirm question, and writes one goal_spec artifact only when the frontier is empty AND confirmed is true. Do NOT use to plan, train, launch, fix or explain a run: this skill only collects and confirms intake facts (fskills-training plans). Side-effect free: composes and invokes nothing (invokes is empty) and writes only its own goal_spec./fs-handoffUser-invoked slash command: run ONLY when the user types /fs-handoff; never choose it on your own. Slash-command closer (/fs-handoff) for a FoundationSkills session: takes this session's artifact JSON paths, optional notes and next_steps and writes ONE handoff artifact that references every artifact BY PATH ({path, type, id, sha256}, payload never copied) with notes and next_steps redacted of secrets (sk-, ghp_, AKIA, Bearer, NAME=KEY/TOKEN/SECRET/PASSWORD values) and PII (email, phone, credit_card, ssn, national_id). Do NOT use for re-running a skill, fixing findings or deciding what to run next: it hands a session off, it does not act./fskills-auto-researchManages a hash-chained auto-research campaign (M0): validates the campaign spec, opens one human approval envelope (campaign_confirm hash), authorises launches with derived tokens, records immutable trial results, proposes ideas from the ideas catalog and closes with statistical acceptance against a calibrated noise floor (guardrails, keep/discard/crash TSV view) writing auto_research_report. Do NOT use for single training runs (fskills-training), nor for evaluation alone (fskills-evaluation). M1 submits emitted trials (`envelope`/`submit`/`cancel`) behind the envelope budget gate and the IMEX fabric probe./fskills-compressionModel compression and quantization of a HF checkpoint (v1 method: RTN weight-only quantize-dequantize, int4 or int8, group-wise). Use it to preflight a host for compression (vendored preflight.py; classifies FAIL, UNKN and PROBE_ERROR results), to plan a probe-first run that emits an fs_launch_spec running rtn_worker.py on one GPU (launched only with the plan hash the user types back), and to verify the measured perplexity ratio (harness A vs B instrument certification, no-op check) against a pre-registered budget into a compression_report. Also route here any GPTQ, AWQ, NVFP4, MXFP4, FP8, modelopt, llm-compressor or quantized-speedup request: this skill answers it with a deferral refusal (CP-IN-003). Do NOT use for serving a checkpoint, already-quantized ones included, or asking whether it fits the serving envelope (fskills-deployment), LoRA merges (fskills-merging), benchmark accuracy suites (fskills-evaluation) or fine-tuning (fskills-training).Other plugins' skills for the same job