/foundationskills:fs-datafrom foundationskills
Composes the data_engine model skill to turn raw data refs into a training dataset, data_pipeline_spec, and readiness report. Invoke via /fs-data.
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 data-preparation workflow: /fs-data composes the model skill data_engine through the
composition helper (_workflow) to turn raw data refs (sources) into a training dataset,
data_pipeline_spec and readiness_report. The caller provides the data_engine request fields
(passed through unchanged) plus an optional goal_spec path. The skill writes exactly one
workflow_record artifact whose payload says which step ran, what it produced (by path), and the
verdict (PASS, RED or UNMEASURED). A user skill composes model skills (here data_engine), never
another user skill. Do NOT use for explaining fskills results (use /fs-status), fixing data problems
yourself, or launching a training run (use /fs-training): this composes data_engine to produce
data artifacts only.
data_engine to build a dataset from raw data refs, with a data_pipeline_spec and
readiness_report as outputs.goal_spec path (recorded in outputs, not interpreted) and
know the verdict (PASS ready for training; RED fix and re-run; UNMEASURED readiness checks not run)./fs-status), fixing data problems yourself, or training a
model (use /fs-training): compose data_engine here, act there.| Field | Required | Meaning |
|---|---|---|
sources | one of sources / pipeline | list of data source URIs (e.g. s3://..., local:/...) |
target_format | no | the target data format (e.g. sft, preference, chat) |
tokenizer | no | tokenizer name or path |
chat_template_family | no | chat template to apply |
out_dir | no | output directory for the dataset |
requirements | no | extra data requirements |
pipeline | one of sources / pipeline | explicit pipeline definition (object) |
reasoning_unsupported | no | flag for reasoning data handling |
benchmarks | no | benchmark references |
goal_spec | no | path to a goal spec (recorded in outputs, not interpreted) |
One workflow_record artifact (typed, schema-validated, with provenance) whose payload is:
workflow (the slash name "fs_data"), steps (a list of Step rows: {skill, status, exit_code, refusal, artifacts, findings}), outputs ({"dataset": path|None, "readiness_report": path|None, "data_pipeline_spec": path|None, "goal_spec": path|None} — artifacts referenced BY PATH, never
copied), and verdict ("PASS", "RED" or "UNMEASURED"). Exit codes: 0 PASS, 5 RED (FD-HO-001),
95 UNMEASURED (FD-HO-002 as WARN), 96 REFUSED (FD-IN-001 or FD-IN-002); nothing is written for
REFUSED.
The full FoundationSkills data catalogue: any model type, family and stage. Composes exactly one
model skill (data_engine); writes one workflow_record artifact; requires no FoundationScale.
A user skill composes model skills (data_engine), never another user skill.
fskills data run
--request (required)--workdir| Rule | Phase | Severity | Description |
|---|---|---|---|
| FD-HO-001 | handoff | BLOCK | data_engine came back RED (e.g. zero records, readiness RED) |
| FD-HO-002 | handoff | WARN | data_engine came back UNMEASURED (readiness checks not run) |
| FD-IN-001 | input | BLOCK | no "sources" and no explicit "pipeline" is given |
| FD-IN-002 | input | BLOCK | the composed data_engine 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-phase BLOCK turns
the output to RED, exit 5. WARN findings never block; they travel with the result. Phase by prefix:
FD-IN-* rules are input phase, FD-HO-* rules are handoff phase.
| Rule | Severity | Fires when |
|---|---|---|
| FD-IN-001 | BLOCK | no sources and no explicit pipeline is given → REFUSED 96 |
| FD-IN-002 | BLOCK | the composed data_engine refused (e.g. unknown target_format, missing local source) → REFUSED 96 |
| FD-HO-001 | BLOCK | data_engine came back RED (e.g. zero records, readiness RED) → RED 5 |
| FD-HO-002 | WARN | data_engine came back UNMEASURED (readiness checks not run) → UNMEASURED 95 (WARN finding; never PASS) |
The composed model skill data_engine has its own rules (DE-IN-001..DE-IN-008, DE-HO-001..DE-HO-003)
that govern its own run; those rule ids are not returned here — inner findings travel as step evidence
in the workflow record and the FD-HO-001 / FD-HO-002 findings.
sources and no explicit pipeline: REFUSED (96) naming FD-IN-001; nothing is written. Pass
sources or pipeline and re-run.data_engine refused: REFUSED (96) naming FD-IN-002; fix the data_engine findings or refusal it
names (e.g. unknown target_format DE-IN-002, missing local source DE-IN-003) and re-run.data_engine came back RED: RED (5) naming FD-HO-001 (e.g. zero records, readiness RED). Fix the
data_engine findings and re-run; never treat a RED dataset as ready for training.data_engine came back UNMEASURED: UNMEASURED (95) with FD-HO-002 WARN finding (readiness checks
not run). Resolve the readiness issues and re-run; never treat UNMEASURED as PASS.diagnose(); do not improvise a fix here.Composes data_engine through _workflow (run_step, outcome_class, registry, Step) to turn raw data
refs into a dataset with a readiness report. (fskills data entry point.) Never imports or launches
FoundationScale; writes one workflow_record artifact and touches no cluster resource. requires_fs
is False: on a host with only the foundationskills package installed it still composes data_engine
and records the workflow. On a host where even the foundationskills package is missing, report
REFUSED with the install step (pip install -e <FoundationScale repo>/FoundationSkills) and never
improvise a data preparation run.
fs-data {"sources": ["s3://bucket/train.jsonl"], "target_format": "sft"} — runs data_engine on
the S3 source, produces dataset (JSONL), data_pipeline_spec and readiness_report, and returns a
workflow_record with verdict PASS (data is ready).fs-data {"pipeline": {"raw_data_ref": "local:/data/*.parquet"}} — runs data_engine with an
explicit pipeline definition, no sources required.fs-data {} — REFUSED 96 (FD-IN-001): no sources and no pipeline given.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-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)./fskills-confirm-before-launchGates an fs_launch_spec behind the user-confirmed plan hash: it recomputes the plan hash (`fskills hash --spec`, the same token `fskills launch --confirm` requires) and REFUSES (96) when the user-supplied hash is absent or mismatches, sealing a confirmation_record with confirmed_by=user and auto_filled=false when they match. Do NOT use to write plans (fskills-training), run probes (fskills-probe-first) or score checkpoints (fskills-evaluation). It never submits a job, never prints or fills the expected hash for a caller to copy.Other plugins' skills for the same job