ds-frame

ds-frame is a skill for Claude Code from StamKavid/last-ds-mile. It costs 83 tokens per session (1,132 once invoked), scanned A, original, MIT.

A problem-definition step for data science projects. It specifies what is being predicted, which decision the result supports, how the data is grouped, and how success will be measured.

In plain words
What is it for?
Use it to turn a vague prediction request into a precise target, unit of analysis, decision context, and success criterion.
Why use it?
It prevents teams from building a model before agreeing on the target, the decision, or a useful measure of success.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the last-ds-mile plugin — 29 skills, 17 commands, 3 agents, 4 hooks shipped together

Good fit Use it to turn a vague prediction request into a precise target, unit of analysis, decision context, and success criterion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stamkavid/last-ds-mile/ds-frame
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add StamKavid/last-ds-mile --skill ds-frame
Clone the repo
git clone --depth 1 https://github.com/StamKavid/last-ds-mile

Made for: Claude Code.

Or install last-ds-mile, the plugin that ships this one along with the rest of its 29 skills, 17 commands, 3 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ds-frame

README.md
[![agentmods](https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/ds-frame/github.svg)](https://agentmods.dev/skills/stamkavid/last-ds-mile/ds-frame)
Your own site
<a href="https://agentmods.dev/skills/stamkavid/last-ds-mile/ds-frame"><img src="https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/ds-frame/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ds-frame

Your own site · 80×15
<a href="https://agentmods.dev/skills/stamkavid/last-ds-mile/ds-frame"><img src="https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/ds-frame.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,132 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.01132
Opus 5 $0.00042 $0.00566
Sonnet 5 $0.00017 $0.00226
Haiku 4.5 $0.00008 $0.00113

Measured 10d ago against content hash 350613289dcc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ds-frame scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ds-frame/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ds-frame — Problem Framing

Overview

Turns a vague ask into a crisp problem before any data is touched: what decision this feeds, what exactly is being predicted, and how success will be measured against that decision — not just against a modeling metric.

When to Use

  • Starting a new DS project or a new modeling question within an existing one.
  • The user asks for "a model" or "a prediction" without a defined target, decision, or success metric.
  • NOT for: refining an already-framed problem's features or data (that's /ds-data and /ds-prep); this stage is about the question, not the data.

Core Process

  1. Infer what decision this will inform — who acts on the output, how often, and what happens today without it — from the request and the data, and state it as your own read. Only ask the user when the answer would materially change the target definition or the metric and genuinely can't be inferred (e.g. the request is ambiguous between two different targets); otherwise state the assumption in one line and continue.
  2. Define the unit of analysis and the target variable precisely — not "churn" but "customer with 0 purchases in the next 90 days, as of signup+30 days."
  3. Take an information inventory: write down what will actually be known at the moment of prediction versus what only becomes known after the fact. Calendar, account age, and prior-period totals are usually available; same-day outcomes, values that arrive later, and anything derived from the target are not. This is the framing-time complement to /ds-prep's per-feature check — it decides whether the problem is even feasible and tells you what signal to go looking for before anyone builds a feature.
  4. Check whether this needs ML at all, or whether a simple rule or lookup would solve it just as well (the "do we even need ML?" gate), and state your conclusion — this is a judgment call to make and record, not a question to put back to the user.
  5. Pick a success metric tied to the decision, not only a modeling metric — e.g. "reduce false negatives below X because a missed case costs $Y," not just "maximize AUC." Check explicitly whether over- and under-shooting cost the same: if understaffing hurts more than overstaffing, a symmetric metric (RMSE, accuracy) optimizes the wrong thing — see metric-selection for the asymmetric-cost options.
  6. Write the brief to .last-ds-mile/stages/00-frame.md: problem statement, unit of analysis, target definition, the information inventory, decision, success metric, and explicit non-goals. Then continue to the next stage in the same turn — framing is a record of what you decided, not a stopping point to wait at.

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 81 lines · 83 tokens per session scan A 350613289dcc

Subscribe to this mod's changes

ds-frame is a skill published in the GitHub repository StamKavid/last-ds-mile (3 stars, last pushed 1mo ago), licensed MIT. It adds 83 tokens to every session and 1,132 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

developing-with-streamlit

Use for ALL Streamlit tasks: creating, editing, debugging, beautifying, styling, theming, optimizing, or deploying Streamlit apps. Also custom components, st.components.v2, HTML/JS/CSS work. Discovers and loads version-matched reference docs from the user's installed Streamlit (>=1.57). Triggers: streamlit, st.…

streamlit/streamlit · 128 tokens

marimo-pair

Work inside the user's live marimo notebook from the code editor: run Python in the same kernel the user does, inspect live notebook state, and commit durable notebook changes through code mode. Use whenever you create, analyze, or improve the user's marimo notebook.

marimo-team/marimo · 57 tokens

wax

Swift framework guidance for Wax on-device memory/RAG. Use when writing Swift code with the public Memory facade, experimental PhotoMemory / VideoMemory, BuiltInMultimodalEmbeddings, embedding providers, retrieval modes, or hybrid search. For agent operators using the Wax MCP server tools, use the separate wax-mcp…

christopherkarani/Wax · 68 tokens

wax-memory-maintenance

Maintain the Wax memory store used by the Hermes wax-memory provider.

christopherkarani/Wax · 18 tokens

ml-expert

Expert-level machine learning, deep learning, model training, and MLOps. Use when the user mentions machine learning, deep learning, neural networks, MLOps, or data science, or when the task involves Machine Learning Fundamentals, Data Preparation, or Model Training.

personamanagmentlayer/pcl · 58 tokens

fast-dash

Build a Fast Dash web app from a Python function. Use when the user wants to turn a function into an interactive app, add a UI to an existing function, or build a dashboard / form / wizard. Fast Dash infers UI components from type hints, so a well-typed function becomes an app with one decorator.

dkedar7/fast_dash · 69 tokens