/foundationskills:fs-handofffrom foundationskills
Writes a handoff artifact for a FoundationSkills session, referencing all artifacts by path with sha256, and redacts secrets and PII from notes and next_steps.
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 wrap-it-up skill: when a session is done and somebody else picks it up next,
/fs-handoff turns what this session produced into ONE handoff artifact. It reads
each artifact JSON envelope written this session (its type, id, provenance and
the sha256 of the file's bytes) and references it BY PATH — never copies a payload —
then redacts secrets and PII from notes and next_steps before writing
{artifacts, notes, next_steps, redactions}. It is side-effect free elsewhere: it
composes nothing, invokes nothing and writes only its own artifact. It hands off, it
does not act — it never re-runs a skill, fixes a finding or decides what to run next.
Reading is measured against two input rules: a request with no artifacts list is
REFUSED (FH-IN-001 — there is nothing to hand off), an artifact path that is missing
or is not an artifact envelope (no type/payload) is REFUSED (FH-IN-002) naming the
path. Redaction is reported, never blocking: FH-HO-001 is INFO.
notes and next_steps of secrets (sk-, ghp_, AKIA, Bearer <token>,
and NAME=value lines whose NAME holds KEY/TOKEN/SECRET/PASSWORD — NAME is kept, its
value is redacted) and PII (email, phone, credit_card, ssn, national_id) before
anything is shared.fskills-probe-first, explain a result with /fs-status);
hand off here, act there.| Field | Required | Meaning |
|---|---|---|
artifacts | yes | list of artifact JSON paths from this session; each file must be an artifact envelope (type and payload) |
notes | no | free text for the next session; redacted before it is written |
next_steps | no | list of strings: what the next session should do first; every entry redacted |
record_dir | no | where to write the handoff artifact; default: the run's artifact directory (ctx.artifacts_dir) |
One handoff artifact (typed, schema-validated, with provenance) whose payload is artifacts
([{path, type, id, sha256}, ...] — one row per input artifact, referenced BY PATH with the
sha256 of the file's bytes pinning it; no payload is copied), notes (redacted), next_steps
(list, redacted) and redactions ({kind: count}, kinds with count 0 omitted: env_value,
sk_token, ghp_token, akia_key, bearer_token, email, phone, credit_card, ssn,
national_id). It never uses an untracked temp doc. See SCHEMA for the JSON schema.
Exit codes: 0 PASS (the handoff itself is measured), 96 REFUSED (FH-IN-001: no artifacts list;
FH-IN-002: an artifact path is missing or is not an artifact envelope). FH-HO-001 is INFO and
travels with the PASS result. There is no handoff-phase BLOCK rule, so RED 5 never fires here.
Any FoundationSkills session's artifacts, for LLM and VLM work of any family and stage. It reads
artifact JSON envelopes, writes one handoff artifact and never runs another skill, imports
FoundationScale or touches a cluster resource. Side-effect free: it invokes nothing (invokes is
empty) and composes no slash command.
| Rule | Phase | Severity | Description |
|---|---|---|---|
| FH-HO-001 | handoff | INFO | redactions were applied to notes and next_steps: report the counts; never blocks |
| FH-IN-001 | input | BLOCK | no "artifacts" list is given, so there is nothing to hand off |
| FH-IN-002 | input | BLOCK | an artifact path is missing or is not an artifact envelope (no type/payload) |
handoff
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. WARN and INFO findings never block; they
travel with the result. Phase by prefix: FH-IN-* rules are input phase, FH-HO-* is the handoff phase
(read from the PASS payload on check_handoff).
| Rule | Severity | Fires when |
|---|---|---|
| FH-IN-001 | BLOCK | no artifacts list is given (absent or empty), so there is nothing to hand off → REFUSED 96 |
| FH-IN-002 | BLOCK | an artifact path is missing/unreadable or the file is not an artifact envelope (no type and payload) → REFUSED 96 naming that path |
| FH-HO-001 | INFO | redactions were applied to notes/next_steps: the finding carries the per-kind counts; it reports and never blocks (it is returned from check_handoff on a PASS result) |
artifacts list: REFUSED (96) naming FH-IN-001; nothing is written. Pass the session's
artifact JSON paths (with notes/next_steps) and re-run.type
and payload) and re-run.notes/next_steps are what the next session reads. Never leave a secret or PII in
a handoff on purpose; an INFO finding is a report, not a licence.diagnose() (or TrainingPlannerSkill.diagnose_symptom(name)); read a bad result with
/fs-status. Do not improvise a fix here.Reads only artifact JSON envelopes (fskills status lists what the session wrote) and writes one
handoff artifact. It declares no APIs: it touches no cluster resource, never imports or launches
FoundationScale and invokes no other skill. It requires no FoundationScale (requires_fs is False):
on a host with only foundationskills installed it still writes the handoff. 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 handoff.
/fs-handoff with artifacts job/artifacts/probe.json, job/artifacts/data_report.json,
job/artifacts/skill_result.json, notes "the curator approved the curated-q2 set",
next steps ["resume the trainer at step 3"] and record_dir job/records → PASS 0 that writes
one handoff artifact holding three rows of {path, type, id, sha256}, the notes and next_steps
untouched and redactions: {} — no FH-HO-001, because nothing was redacted./fs-handoff with notes "reached [email protected] after dropping the key sk-live-9f2c44ab77"
and next steps ["resume the trainer at step 3"] → PASS 0 with redactions: {secret_sk: 1, email: 1} and FH-HO-001 INFO naming those counts; the written notes read
"reached [REDACTED:email] after dropping the key [REDACTED:secret_sk]"./fs-handoff with artifacts [job/artifacts/probe.json, job/scratch/raw.json] where
raw.json is {"rows": 1200} → REFUSED 96 naming FH-IN-002 and job/scratch/raw.json
(no type/payload): a plain JSON file is not an artifact envelope. Nothing is written.env_value: 1.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.Other plugins' skills for the same job