/probabl-skills:frame-ml-problemfrom probabl-skills
Records ML problem decisions (metric, baseline, fold count, deployment setting) before any model code. Asks every missing decision in one turn via `frame show`.
Ships in probabl-skills. 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.
Read when SKILL.md points to them.
Write ## Modeling decisions in journal/JOURNAL.md. The table
is the contract. This skill does not declare a learner and does
not evaluate one.
Details: setup-workspace references/human_facing_prose.md.
Journal rows describe this dataset. Do not name the skills
framework, the CLI, or a splitter class in the table. Questions
use data-science language — not skill ids, G-* names, or the
wrapper CLI.
Run python -m skore_skills status. If status.setup.pending
is non-empty and status.skills.setup-ml-project is true,
load setup-ml-project and stop. Do not start this skill.
When it returns, continue. Do not load it again on this turn.
If that skill is not installed, name the pending pieces in
one line and stop. Do not invent git init, scaffold, or
env init. If status.setup.env or status.setup.workspace
is declined, stop in one line. A declined git or
editable is not asked again; continue. If data_analysis is
missing and explore-ml-data is installed, AskUserQuestion:
explore first (default) or continue from facts the user stated.
Explore loads explore-ml-data and stops. Do not invent dataset
facts. Do not ask this again once data_analysis is present
or skipped.
Run python -m skore_skills frame show. When the user is
changing a locked constraint and named one decision, do not add
--revise and do not treat proceed as the end of the turn.
Show this command once, in a fence. The only sentence for it
is: That command drops that one recorded decision. Then run
frame show with no --revise.
python -m skore_skills frame clear --cell <key>
Ask the replacement in this message, the way step 5 asks a
missing decision. Do not say that frame show will ask it.
When the named decision is the comparison metric and the
message does not state the new value, say that metric role,
prediction goal, and folds stay filled. Then name the
experiment file from the workspace state and say it still
uses the previous metric and is not run, and that the next
build or evaluate rewrites it after the table is complete
again. The last line is: The comparison
metric is MAE. Which metric replaces it? Nothing follows that
line. When the named decision is the prediction
goal and the message already states the new value, write that
value. Metric role and the comparison metric are unanswered.
Status is draft. Ask those two in this message. Do not write
Status locked. Otherwise, if the message already states the
new value, write it and ask only the decisions that are still
empty. Do not ask Modify / Keep / Stop. Do not say the new
value waits until next turn. Do not load model-ml-pipeline
or git-close on this turn. When they are changing a constraint and did not
name a decision, AskUserQuestion one pick among the filled
decisions (skip n/a) and stop. Do not also ask for a typed
answer. Do not --revise and do not edit the journal on that
turn. JSON action is authoritative. Do not invent a menu.
If the command is missing or exits without JSON, follow
Fallback below. Do not open another reference. Do not guess
candidates.
stop — say the JSON reason and stop.
ask / uncovered — follow Fallback below, including the
table written in this message and the Status rule there. Say
the reuse and change lines, and say there is no splitter
translation. Do not load build-ml-pipeline. Stop this turn.
ask / missing_keys or ask / fill_na — when fill_na
is present, do not ask yet. Run the command below, then
frame show again, and continue this step with that JSON.
The command writes n/a for every key in fill_na. Do not
ask those keys. Do not invent a value for them.
python -m skore_skills frame fill
When the reason is missing_keys, read each distinct
reference in questions once before asking. Do not open
any other file under references/. Ask every key in
missing in one message. Horizon, gap, and time role are
questions only when missing lists them, which is after
deployment is time. Generalize-to is a question only when
missing lists it, which is after deployment is groups.
Do not ask any of those in the same message as deployment,
and do not add a conditional aside. For a question that has
candidates, those are the options. When candidates is
absent, ask for the value the reference describes. Draw on
three sources, and only what they actually say: the EDA
report, free-form text that came with the data if any is
present (notes, a dictionary, or a README beside the raw
files), and facts the user stated. If none of that text is
present, do not invent it. When one of them already states
the fact, quote it in the question. Write every value the
user answered for a key in missing as a journal row.
For deployment, the question is the three candidates and
nothing else. Do not gloss a horizon, a gap, a time column,
a feature, or a group id. If they stated a generalize-to
column while deployment is still empty, write
| Generalize to | <their column> |, ask deployment, and
stop. Do not ask horizon, gap, or time role in that
message. Do not rename the Variable column. Do not stop
after the first decision when other keys in missing are
still unanswered. After that write, run frame show again.
If the new JSON has fill_na, run frame fill before
asking or locking. A deployment of iid or groups makes
horizon, gap, and time role n/a. A deployment of iid
or time makes generalize-to n/a, including a value
volunteered earlier. After that fill, say the filled rows
are n/a. Do not describe a filled time-role row as a
feature, an ordinary column, or unused, and do not name
covariate or sort_key for a row that is n/a.
A fold count of 1 is one
train/test split drawn from a single table. When the EDA
report, the text shipped with the data, or the user already
names a separate training table and test table, offer using
that split in the folds question and write predefined if
they choose it. Do not offer it otherwise. Do not write
prefit in the table. Do not type Revised on; only that
command writes that date. If any key in missing is still
unanswered, set Status to draft once any decision is filled,
ask those keys, and stop. Do not invent their values. Do not
set Status to locked. Do not ask to confirm the table. If
the write fills every required decision, set Status to
locked in that same edit, not draft. Run
python -m skore_skills frame show again in this turn. On
proceed, say the reuse and change lines, then follow step 8.
On ask / set, write Status locked only, say those lines,
run frame show again, and follow step 8. If that frame show
still returns missing_keys or fill_na, the table was not
complete: on fill_na, run frame fill once more and show
again; on missing_keys, ask those keys and stop, and leave
Status draft.
Reuse and change lines, quoting JSON context in 2–4 lines:
these choices are reused for the rest of the experiment so
models stay comparable, and any one of them can be changed by
naming it (for example the comparison metric). Do not say
"lock" in those lines. Do not AskUserQuestion.
When the user named one decision and Status is draft, do not
treat set as accepting the table. Show the same fenced
command for that decision and stop. Do not write the new
value. Do not say any other decision was dropped. The
command's JSON list of dropped keys is the record. Status
stays draft. That command stamps Revised on; do not type
that date. The next frame show asks only keys that are still
empty or invalid.
ask / set — the table was already complete and Status is
still draft. Write Status locked only. Say the reuse and
change lines from step 5. Run frame show again and follow
step 8. Do not AskUserQuestion. The user sentence that opened
this screen is not a choice.
ask / revise is not a user question. Do not present
Modify / Keep / Stop. Ignore those choices. Drop the named
decision and ask the replacement, as in step 2.
proceed — the table is locked, and the user is not changing
a named decision. If they are, step 2 already handled it. If
translation is null, say
that this lock has no splitter translation. Do not load
build-ml-pipeline and do not return to model-ml-pipeline.
Stop. If model-ml-pipeline dispatched this turn, return to
that coordinator and stop. Do not start build, write a design
note, or run the git close from here. If no experiment script
exists and History has no running, done, or abandoned model
row, and status.skills.model-ml-pipeline is true, load that
skill and stop. Do not write a design note here. Do not
git end-turn. Otherwise run
python -m skore_skills git end-turn --stage implement. If
JSON action is invoke, load persist-ml-git only if
status.skills.persist-ml-git is true and stop. Otherwise
load triage-ml-task only if that skill is installed.
After any turn that changes journal/JOURNAL.md (filled
decisions, Status, that command, or lock), coalesce all edits,
then, when policy.site is true and export-ml-site is
installed, run python -m skore_skills site build --if-stale
before the next question or stop. In that message, say the
website has been updated and paste the file:// line from
that output verbatim. Do not name
journal/JOURNAL.md. policy.site
null or false does not enable or build the site. A
read-only frame show with no Markdown change does not build.
TimeSeriesSplit, KFold, GroupKFold, and gap= stay out of
the table.missing.fill_na. frame fill writes those cells.candidates.locked again. Do not ask Modify / Keep / Stop.Revised on; do not type that date. Do not rewrite
experiments/, audit/, or a report in this skill.Use this when frame show is missing, or when the problem is not
classification, regression, or multi-output regression. Do not
open any other file under references/. Do not invent the closed
candidate menu.
Tell the user, in a few lines, that the closed menu does not cover this case, so the comparison has to be written in words. Ask one question: what would count as a better result, and what is an honest baseline. Draw on the EDA report, free-form text that came with the data if any is present, and facts they stated. Quote a fact those sources already give. If that text is absent, do not invent it.
Write the table in this same message:
uncoveredn/a, unless they already stated a valueDo not use placeholders. Do not leave the table for a later
message. Status is locked only when both the comparison and the
baseline are already stated. Otherwise Status is draft. The
words lock, modify, and stop stay out of the message.
Do not name a splitter class or write code. Say these choices are reused for the rest of the experiment so models stay comparable, and that any one of them can be changed by naming it. There is no splitter translation.
If they say it is actually classification or regression, write that
goal instead of uncovered and stop. Do not set Status to locked.
The next frame show uses the closed menu.
If the command is missing, there is no JSON. The same write uses the same lines. There is no splitter translation.
evals/evals.json (opens in a new tab)references/baseline.md (opens in a new tab)references/deployment.md (opens in a new tab)references/fallback.md (opens in a new tab)references/generalize-to.md (opens in a new tab)references/horizon-gap.md (opens in a new tab)references/metric-role.md (opens in a new tab)references/prediction-goal.md (opens in a new tab)references/time-role.md (opens in a new tab)references/validation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/add-python-packageAdd a dependency through the project env manager, or ask the user when the environment is user-managed. Trigger when a workflow needs a missing import, after choose-python-library picks a library, or for editable install of src/<pkg>/.
SKIP choosing between competing libraries (choose-python-library owns that). SKIP bootstrapping a missing manager directly (setup-python-env). When env.managed is null, load setup-ml-project if it is installed.
HOW TO USE: read status.policy.env.managed, env detect, and env route. Classify this turn first (editable | add-skore | named package). If managed is null, load setup-ml-project and stop. If managed, env add --execute (or --editable). If unmanaged, ask; default is the user handles it — do not wait. When setup-ml-project already chose user-managed this turn, name the package and the manager, then return. Do not ask and do not wait. Never --execute while managed is false.
/audit-ml-pipelineAudit a persisted skore report read-only and produce a reusable digest. Do not execute it. Run `materialize.py` once. Never call `skore.evaluate` or `project.put`.
TRIGGER when a completed run needs an audit, the user asks to audit, show, or re-audit an experiment, a re-run overwrote the same `put()` key, or they want a narrative of a past experiment without `journal/ideas/` files.
STOP when `status.setup.pending` is non-empty (load `setup-ml-project`), or when there is no approved design, no report, or no agent feature: explain and send the user to setup, `evaluate-ml-pipeline`, or `model-ml-pipeline`. Also stop for raw-data exploration or sourcing a future experiment.
HOW TO USE: confirm journal, experiment, smoke, and report; place the file from `templates/audit.py`; copy `templates/materialize.py` to scratch; execute once; derive G-AUDIT-FINDING; then the continue-or-close gate. Resolve skore symbols with `api get`.
npx claudepluginhub probabl-ai/skore-skills --plugin probabl-skillsOther plugins' skills for the same job