/foundationskills:fs-goalfrom foundationskills
Guides users through collecting and confirming intake facts to produce a FoundationSkills goal_spec artifact. Use when you need to structure training objectives, base model, data sources, and hardware into a formal goal specification.
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 grilling composer: /fs-goal turns whatever the user has said so far (the intake answers) into one
goal_spec artifact, asking ONLY for the facts foundationskills.agent.intake.missing_facts still names
(REQUIRED_FACTS of the skills in skills, default ["training.planner", "data_engine"]) and then one
confirm question. The grilling ends only when the frontier is empty AND the user confirms (confirmed: true). Every round carries the answers so far, so a grilling can stop mid-way and resume with the merged
answers — fs-goal never invents an objective, a base model, data sources or hardware the user did not
state. The frontier is measured against the doctrine in core/status.py (PASS 0, RED 5, UNMEASURED 95,
REFUSED 96): a missing fact is never a pass (UNMEASURED 95, FG-HO-001), an unconfirmed complete goal is
never a pass (UNMEASURED 95, FG-HO-002), no answers object at all is REFUSED 96 (FG-IN-001), and an
answer goal_from_answers rejects is RED 5 (FG-HO-003). Only an empty frontier plus a confirmation writes
the goal_spec and returns PASS 0.
recommended value
each) and stop only when the frontier is empty and the user confirms the preview.goal_spec artifact the planner and the data engine consume.fskills-training, explain
with /fs-status): this skill collects and confirms intake facts only. Do NOT use it to decide
anything beyond "these are the facts the user gave, and they confirmed them".| Field | Required | Meaning |
|---|---|---|
answers | yes | object with the intake answer keys of goal_from_answers: objective, capabilities?, 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? |
confirmed | no (default false) | the user's confirmation of the preview; true (or an answered yes) means the grilling may write the goal_spec |
skills | no (default ["training.planner", "data_engine"]) | which skills' REQUIRED_FACTS define the frontier |
record_dir | no (default ctx.artifacts_dir) | where the goal_spec artifact is written |
One goal_spec artifact (typed goal_spec, the existing goal_spec type, with provenance) — written ONLY
when the frontier is empty AND confirmed is true, to record_dir (never to a directory some other skill
owns). SCHEMA: none (it produces the existing goal_spec type). Until then the result payload is the
grilling state: phase (questions | reject | confirm | complete), questions (one
{key, question, recommended} per open fact; the confirm question is {'key': 'confirm', 'question': 'Is this goal correct? Answer yes to confirm.', 'recommended': 'yes'}), missing_facts,
goal_spec_preview (on confirm), goal_spec (on complete) and goal_spec_valid / goal_spec_error
(the FG-HO-003 flag check_handoff reads).
Exit codes: 0 PASS (empty frontier, user confirmed, valid goal), 95 UNMEASURED (FG-HO-001: facts missing;
FG-HO-002: unconfirmed), 96 REFUSED (FG-IN-001: no answers object). 5 RED fires only as FG-HO-003 from
check_handoff on a PASS result whose payload carries goal_spec_valid: false — run() never returns
RED.
Any LLM/VLM goal of any family and stage, for full/LoRA/QLoRA on gb200, dgx-h100 or local hardware. It
reads one answers object and foundationskills.agent.intake, writes one goal_spec artifact, and
composes or invokes nothing (invokes is empty — it never runs another skill, so no inner rule id can
leak into its findings).
| Rule | Phase | Severity | Description |
|---|---|---|---|
| FG-HO-001 | handoff | WARN | load-bearing facts are missing from the answers so far (the grilling frontier is not empty) |
| FG-HO-002 | handoff | WARN | the assembled goal is complete but the user has not confirmed it |
| FG-HO-003 | handoff | BLOCK | goal_from_answers raised or the assembled goal_spec is invalid |
| FG-IN-001 | input | BLOCK | no "answers" object was given, so fs_goal has nothing to grill and invents nothing |
goal_spec
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 — REFUSED, exit 96, nothing written. A handoff-phase BLOCK fires only from
check_handoff on a PASS result and turns it RED (exit 5). A handoff WARN is a finding returned from
run() with UNMEASURED (exit 95) and never a PASS. Phase by prefix: FG-IN-* rules are input phase,
FG-HO-* rules are handoff phase.
| Rule | Severity | Fires when |
|---|---|---|
| FG-IN-001 | BLOCK | no answers object at all is given (absent, or not an object) → REFUSED 96: fs_goal grills what the user said and invents nothing |
| FG-HO-001 | WARN | load-bearing facts are missing from the answers so far (the grilling frontier is not empty) → UNMEASURED 95 with one question per missing fact |
| FG-HO-002 | WARN | the assembled goal is complete but the user has not confirmed it → UNMEASURED 95 with goal_spec_preview and the confirm question |
| FG-HO-003 | BLOCK | goal_from_answers raised or the assembled goal_spec is invalid (a source without uri/kind, missing hardware, empty objective) → RED 5, fired by check_handoff on the PASS result |
answers object: REFUSED (96) naming FG-IN-001 and what is missing; nothing is written. Pass the
intake answer keys the user has given so far and re-run.yes accepts the question's recommended value, anything else supplies the value) and
re-run with the merged answers. Never treat UNMEASURED as PASS and never skip a question by inventing
an answer.goal_spec_preview, answer yes (re-run with confirmed: true) or send the corrected answers.goal_from_answers raised or the goal is structurally invalid: RED (5) naming FG-HO-003, fired from
check_handoff on the PASS result whose payload flags goal_spec_valid: false; no goal_spec is
written. Fix the answer the message names and re-run — an answer goal_from_answers rejects is a real
contradiction (e.g. a source without uri and kind), not something to paper over.diagnose(); do not improvise a plan, a fix or a launch here.Reads only the request's answers and foundationskills.agent.intake (fskills goal lists the frontier
and the assembled spec); computes nothing else and declares no APIs. It composes and invokes no skill,
never imports or launches FoundationScale, writes only its goal_spec artifact to record_dir (or
ctx.artifacts_dir) and touches no cluster resource. It requires no FoundationScale (requires_fs is
False): on a host with only foundationskills installed it still grills and writes a goal_spec. 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 goal.
Round 1 — two answers, so the frontier is not empty:
/fs-goal answers {objective 'reply to support tickets politely', domain 'support'}
Result: UNMEASURED 95 with FG-HO-001 and one question per missing fact (base_model.name_or_path,
base_model.size_b, base_model.arch, data.sources, hardware.gpu, hardware.nodes,
hardware.gpus_per_node, data_facts.*, preserve_general, rl_algorithm, goal) — nothing written.
Round 2 — the user answers the questions (a yes per recommended, values otherwise):
/fs-goal answers {objective 'reply to support tickets politely', domain 'support', goal 'general_chat',
base_model {name_or_path 'hf/Llama-3.1-8B', size_b 8, arch 'dense'}, sources [{uri 's3://data/tickets.jsonl',
kind 'chat'}], hardware {gpu 'dgx-h100', gpus_per_node 8, nodes 1}, data_facts {has_verifiable_answers false,
has_pairs false, has_instructions true}, preserve_general true, rl_algorithm 'none'}
Result: UNMEASURED 95 with FG-HO-002 — goal_spec_preview plus the confirm question
({'key': 'confirm', ... 'recommended': 'yes'}); nothing written.
Round 3 — the user confirms:
/fs-goal confirmed true, record_dir run/records — answers unchanged.
Result: PASS 0, one goal_spec artifact written to run/records, phase: complete in the payload.
Contradiction — the user confirmed but a source has no kind:
/fs-goal confirmed true — answers {…, sources [{uri 's3://data/tickets.jsonl'}]}
Result: goal_from_answers raises and run() returns PASS carrying goal_spec_valid: false, which
check_handoff turns into RED 5 naming FG-HO-003; no goal_spec is written until the source carries
uri and kind.
What SKILL.md sets; muted values are Claude Code's defaults
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-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