ds-plan

ds-plan is a command for coding agents from realnghon/data-scientist. It costs 35 tokens per session (331 once invoked), scanned A, original, MIT.

A command for turning an already described dataset and analysis goal into a documented analysis plan.

In plain words
What is it for?
Use it to plan group comparisons, rank possible drivers of an outcome, or investigate a decline in production. It defines the measures, tests, order of work, charts, and unresolved decisions without running the analysis.
Why use it?
It helps choose methods that fit the data and goal, test their assumptions, and record why weaker alternatives were rejected before analysis starts.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the data-scientist plugin — 1 skill, 4 commands, 1 agent shipped together

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.

agentmods
npx agentmods add commands/realnghon/data-scientist/ds-plan
Clone the repo
git clone --depth 1 https://github.com/realnghon/data-scientist

Or install data-scientist, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 1 agent.

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-plan

README.md
[![agentmods](https://agentmods.dev/badge/commands/realnghon/data-scientist/ds-plan.svg)](https://agentmods.dev/commands/realnghon/data-scientist/ds-plan)
Your own site
<a href="https://agentmods.dev/commands/realnghon/data-scientist/ds-plan"><img src="https://agentmods.dev/badge/commands/realnghon/data-scientist/ds-plan.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 331 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.00331
Opus 5 $0.00017 $0.00166
Sonnet 5 $0.00007 $0.00066
Haiku 4.5 $0.00003 $0.00033

Measured 4d ago against content hash 080fccc57105, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ds-plan 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 4d 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.

plugins/data-scientist/commands/ds-plan.md · 33 lines

What it actually says

制定分析方案

使用 data-scientist 方法规划流程,将已画像的数据集和用户目标转化为可辩护的分析方案。

示例:

  • /ds-plan "比较实验组与对照组"
  • /ds-plan "对转化驱动因素进行排序"
  • /ds-plan "检测产出下降" yield_pct

执行要求

  1. 确认目标指标 Y、分析粒度以及允许的分析范围。
  2. 读取 ${CLAUDE_PLUGIN_ROOT}/skills/analysis-workflow/references/method-registry.md${CLAUDE_PLUGIN_ROOT}/skills/analysis-workflow/references/data-readiness.md 以及相关的领域手册。
  3. 根据目的、数据类型、假设条件和业务实用性选择方法。
  4. 记录被拒绝的方法及其被拒绝的原因(较弱或无效)。
  5. 对重要结论纳入交叉验证。

预期输出

  • 分析目的
  • 选定的方法集
  • 假设检验
  • 被拒绝的方法
  • 执行顺序
  • 所需图表
  • 仍需人工决策的事项

除非用户明确要求,否则不要执行该方案。

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. 4d ago First seen · 33 lines · 35 tokens per session scan A 080fccc57105

Subscribe to this mod's changes

ds-plan is a command published in the GitHub repository realnghon/data-scientist (2 stars, last pushed 2mo ago), licensed MIT. It adds 35 tokens to every session and 331 once invoked, about $0.0002 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 commands, from other repositories