ds-plan
REQUIRED Phase 2 of /ds workflow. Profiles data and creates analysis task breakdown. Requires docs/SPEC.md from Phase 1.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
REQUIRED Phase 2 of /ds workflow. Profiles data and creates analysis task breakdown. Requires docs/SPEC.md from Phase 1.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
REQUIRED Phase 5 of the /ds workflow (final). Enforces reproducibility demonstration and user acceptance before completion claims.
REQUIRED Phase 4 of the /ds workflow to review methodology, data quality, and statistical validity. Provides structured review checklists and confidence scoring.
REQUIRED Phase 3 of /ds workflow. Enforces output-first verification at each step via delegation.
This skill should be used when the user asks to "start a data science project", "brainstorm analysis", "plan a data analysis", or wants to clarify analysis requirements. REQUIRED Phase 1 of /ds workflow. Uses Socratic questioning to clarify goals, data sources, and constraints.
| name | ds-plan |
| description | REQUIRED Phase 2 of /ds workflow. Profiles data and creates analysis task breakdown. Requires docs/SPEC.md from Phase 1. |
Announce: "Using ds-plan (Phase 2) to profile data and create task breakdown."
Profile the data and create an analysis plan based on the spec. Requires docs/SPEC.md from /ds-brainstorm first.
SPEC MUST EXIST BEFORE PLANNING. This is not negotiable.
Before exploring data or creating tasks, you MUST have:
docs/SPEC.md with objectives and constraintsIf docs/SPEC.md doesn't exist, run /ds-brainstorm first.
| Excuse | Reality | Do Instead |
|---|---|---|
| "Data looks clean, profiling unnecessary" | Your data is never clean | PROFILE to discover issues |
| "I can profile as I go" | You'll miss systemic issues | PROFILE comprehensively NOW |
| "Quick .head() is enough" | Your head hides tail problems | RUN full profiling checklist |
| "Missing values won't affect my analysis" | They always do | DOCUMENT and plan handling |
| "I'll handle data issues during analysis" | Your issues will derail your analysis | FIX data issues FIRST |
| "User didn't mention data quality" | They assume YOU'LL check | QUALITY check is YOUR job |
| "Profiling takes too long" | Your skipping it costs days later | INVEST time now |
Creating an analysis plan without profiling the data is LYING about understanding the data.
You cannot plan analysis steps without knowing:
Profiling costs you minutes. Your wrong plan costs hours of rework and incorrect results.
After writing docs/PLAN.md, IMMEDIATELY invoke Phase 3:
~/.config/opencode/skills/ds-implement/SKILL.md
DO NOT:
The workflow phases are SEQUENTIAL. Complete plan → immediately start implement.
| DO | DON'T |
|---|---|
| Read docs/SPEC.md | Skip brainstorm phase |
| Profile data (shape, types, stats) | Skip to analysis |
| Identify data quality issues | Ignore missing/duplicate data |
| Create ordered task list | Write final analysis code |
| Write docs/PLAN.md | Make completion claims |
Brainstorm answers: WHAT and WHY Plan answers: HOW and DATA QUALITY
cat docs/SPEC.md # verify-spec: read SPEC file to confirm it exists
If missing, stop and run /skill ds-brainstorm first.
For multiple data sources: Use parallel background tasks if available in OpenCode.
MANDATORY profiling steps:
import pandas as pd
# Basic structure
df.shape # (rows, columns)
df.dtypes # Column types
df.head(10) # Sample data
# Summary statistics
df.describe() # Numeric summaries
df.describe(include='object') # Categorical summaries
df.info() # Memory, non-null counts
# Data quality checks
df.isnull().sum() # Missing values per column
df.duplicated().sum() # Duplicate rows
CRITICAL: Document ALL issues before proceeding:
Break analysis into ordered tasks:
Write to docs/PLAN.md:
For OpenCode: Phase 3 implementation logic found in
~/.config/opencode/skills/ds-implement/SKILL.md.
See: docs/SPEC.md
Define what output proves completion for each task.
Complete the plan when:
docs/SPEC.md is understood.docs/PLAN.md is written and tasks are ordered.IMMEDIATELY invoke Phase 3:
/skill ds-implement