ds-method

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

A shared rulebook for a data-science workflow. It defines warning signs, common excuses, and stop conditions that the other stages use to protect against data leakage, misleading metrics, and results that cannot be reproduced.

In plain words
What is it for?
Use it when explaining or enforcing workflow gates, deciding whether to stop and ask for missing evidence, and handling objections about the required checks.
Why use it?
It keeps decisions consistent when someone wants to skip a baseline, inspect test data early, or continue despite a missing required check.

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 when explaining or enforcing workflow gates, deciding whether to stop and ask for missing evidence, and handling objections about the required checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stamkavid/last-ds-mile/ds-method
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-method
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-method

README.md
[![agentmods](https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/ds-method.svg)](https://agentmods.dev/skills/stamkavid/last-ds-mile/ds-method)
Your own site
<a href="https://agentmods.dev/skills/stamkavid/last-ds-mile/ds-method"><img src="https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/ds-method.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,934 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.00073 $0.01934
Opus 5 $0.00036 $0.00967
Sonnet 5 $0.00015 $0.00387
Haiku 4.5 $0.00007 $0.00193

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

Security

Grade A, and why

ds-method 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 8d 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-method/SKILL.md · 126 lines

How it starts

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

ds-method — The Last DS Mile Discipline Layer

Overview

Every /ds-* stage skill in this plugin inherits this shared voice. This is not a pipeline stage itself — it defines the Red Flags, Rationalizations, and Hard Gates that every stage cites, so a project can't quietly drift into leakage, inflated metrics, or unreproducible results.

When to Use

  • Referenced automatically by every stage skill (ds-frame through ds-handoff) — you should not need to invoke it directly.
  • Use directly when the user asks "why do I need a baseline," pushes back on a gate, or you need to decide whether a stage should stop and ask before proceeding.

Core Process

  1. When a stage skill's process reaches a point covered below, check the relevant table instead of inventing new judgment calls ad hoc — this keeps behavior consistent across every stage.
  2. When a discipline gate applies and its artifact is missing, produce it inline — run the prior stage's work yourself, in the same turn, and say plainly what you produced and why. Never silently work around a missing gate artifact, and never end the turn asking the user to go run a separate command first: the gate is satisfied by doing the work, not by requesting permission to do it.
  3. When a safety gate applies (see below), stop and ask before proceeding — these are the cases where continuing unilaterally could be irreversible or externally visible.
  4. Before running a stage's full process, climb the stage ladder: (a) does that stage's artifact already exist? if so, reuse it, don't redo it. (b) does this request actually need it, or can the ask be answered without it (see ds-method's guard against escalating a plain question)? (c) can it be satisfied in a couple of lines in the run's notes, rather than a full stage write-up? Stop at the first rung that resolves it. If you track progress with a todo list, keep one list for the whole run, not a fresh create/update pair per stage — a dozen-plus todo-tool calls for a single request is a sign the ladder above wasn't applied.
  5. Pick the artifact mode once, at the start, and say which you picked:
    • Express (default for a single-shot request answered in one session — "build a model for X and tell me how it does"): write one .last-ds-mile/run.md carrying every stage's output — framing, baseline, validation choice, model comparison, evaluation/slices — as sections in that one file, not a dozen separate stages/*.md files. The gates and their evidence still all have to be there; only the file layout is consolidated.
    • Full per-stage (a genuine multi-session project, or the user asks to run a specific /ds-* stage on its own): each stage writes its own .last-ds-mile/stages/NN-name.md as described in that stage's own Core Process — this is what makes stages resumable and reviewable independently across sessions.
    • Once a project has .last-ds-mile/stages/ files, stay in full per-stage mode for consistency; don't switch an in-progress project to express mid-way.
  6. When a Red Flag fires, say so out loud before continuing, even if the user seems to want to move fast — a flagged result that turns out fine costs one sentence; a leaked metric that ships costs the project's credibility.

Read the full file on GitHub · 126 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. 8d ago First seen · 126 lines · 73 tokens per session scan A c58b0f6b8328

Subscribe to this mod's changes

ds-method is a skill published in the GitHub repository StamKavid/last-ds-mile (3 stars, last pushed 1mo ago), licensed MIT. It adds 73 tokens to every session and 1,934 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

science-vibecoding

Structured AI-assisted scientific code generation. 6 safety guards, 8 principles, 11 prompt templates. Grounded in Nature (2026).

Liu-MingH/Scientific-research-SKILL · 35 tokens

metabolomics-analysis

Untargeted and targeted metabolomics data analysis using pyMZML, mzTab-M processing, and metabolite identification. Use for LC-MS/GC-MS feature detection, metabolite annotation, differential metabolite analysis, pathway mapping, and metabolic flux visualization. Covers XCMS-compatible workflows in Python.

Lord1Egypt/scientific-agent-toolkit · 65 tokens

neuroscience-imaging

Neuroimaging data analysis with nilearn, nibabel, and fMRIPrep outputs. Use for fMRI/MRI data loading, brain atlas parcellation, functional connectivity analysis, GLM-based task fMRI, resting-state network analysis, and publication-quality brain visualizations. Covers structural MRI, task fMRI, and rs-fMRI workflows.

Lord1Egypt/scientific-agent-toolkit · 78 tokens

ngs-pipeline-management

Next-generation sequencing pipeline management with Snakemake and Nextflow. Use for building, running, and debugging reproducible NGS workflows for RNA-seq, WGS, ChIP-seq, ATAC-seq, and amplicon sequencing. Covers pipeline design patterns, HPC/cloud execution, containerization, and workflow optimization.

Lord1Egypt/scientific-agent-toolkit · 72 tokens

omics-integration

Multi-omics data integration using MOFA+, DIABLO, and MixOmics for combining genomics, transcriptomics, proteomics, metabolomics, and epigenomics datasets. Use for identifying shared variation across omics layers, building integrative biomarker models, and discovering cross-modal biological patterns. Best for paired…

Lord1Egypt/scientific-agent-toolkit · 74 tokens

proteomics-analysis

Mass spectrometry-based proteomics data analysis with pyteomics, spectrumutils, and MaxQuant/DIA-NN output processing. Use for peptide identification, protein quantification (LFQ, TMT, SILAC), differential expression, PTM analysis, and proteomics data visualization. Covers both DDA and DIA proteomics workflows.

Lord1Egypt/scientific-agent-toolkit · 71 tokens