/lab-skills:new-planfrom lab-skills
Use when starting multi-script or multi-session work that needs tracking, or when the user invokes /new-plan. Creates a planning document and registers it in the project CLAUDE.md.
Ships in lab-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.
None: SKILL.md is the whole skill.
When the user invokes /new-plan, create a structured planning document and register it in the project's document registry.
Ask the user:
If the user provides the topic directly as an argument (e.g., /new-plan thermal proteome profiling), use that and still ask the remaining questions.
Streamline the questions — if the answers are obvious from context, propose defaults and let the user confirm. For example, a data science project asking about "volcano plots" likely wants data science style with status table.
Create a new .md file in the project's .claude/ directory.
SCREAMING_SNAKE_CASE matching existing docs{TOPIC}_PLAN.md (e.g., THERMAL_PROTEOME_PLAN.md){TOPIC}_DATA.md (e.g., SECRETOMICS_DATA.md)For general projects (books, tools, infrastructure) with simple task tracking.
# {Topic} Plan
> Last updated: {today}
## Overview
{Brief description of what this plan covers}
## Goals
- [ ] Goal 1
- [ ] Goal 2
## Open Tasks
{Group tasks by category if there are many}
- [ ] Task 1
- [ ] Task 2
## Key Files
- (list key files and components as they become relevant)
## Key Decisions
- (record decisions with dates as they are made — accumulates, never trimmed)
## Working Notes
(free-form context for next session — what's in progress, gotchas, context that doesn't fit elsewhere)
## Completed
- [x] (move completed items here)
For general projects that benefit from phased tracking.
# {Topic} Plan
> Last updated: {today}
## Overview
{Brief description of what this plan covers}
## Goals
- [ ] Goal 1
- [ ] Goal 2
## Status
| Phase | Description | Status |
|-------|-------------|--------|
| 1 | {First phase} | Not started |
## Key Files
- (list key files and components as they become relevant)
## Key Decisions
- (record decisions with dates as they are made — accumulates, never trimmed)
## Working Notes
(free-form context for next session — what's in progress, gotchas, context that doesn't fit elsewhere)
For analysis projects with numbered scripts, data pipelines, and input/output tracking.
# {Topic} Plan
> Last updated: {today}
## Overview
{Brief description of what this plan covers}
## Goals
- [ ] Goal 1
- [ ] Goal 2
## Status
| Phase | Description | Status |
|-------|-------------|--------|
| 1 | {First phase} | Not started |
## Key Files
### Inputs
- (list input files as they become relevant)
### Outputs
- (list output files as they are created)
### Scripts
Track all scripts here. When a script is superseded, move it to the Legacy section.
#### Active
| Script | Purpose | Status |
|--------|---------|--------|
| (add scripts as they are created) | | |
#### Legacy / Inactive
| Script | Replaced by | Notes |
|--------|-------------|-------|
| (move superseded scripts here) | | |
## Key Decisions
- (record decisions with dates as they are made — accumulates, never trimmed)
## Working Notes
(free-form context for next session — what's in progress, gotchas, context that doesn't fit elsewhere)
For documenting APIs, schemas, configuration formats, or any structured reference material.
# {Topic} Data
## Overview
{Brief description of what this document covers}
## Purpose
{Why this data/schema/format exists and how it's used}
## Key Files
| File | Description |
|------|-------------|
| | |
## Structure / Schema
{Describe the structure, format, or schema of the key files}
## Notes
{Any important notes about usage, edge cases, or conventions}
For documenting experimental datasets with biological/scientific context.
# {Topic} Data
## Overview
{Brief description of the dataset}
## Experimental Design
{Describe the experiment that generated this data}
## Key Files
| File | Description |
|------|-------------|
| | |
## Column Descriptions
{For key files, describe important columns}
## Processing Notes
{Any important notes about how data was processed or should be used}
When a phase is marked complete, collapse its detailed content to a 3-5 line summary. Keep the phase heading and a brief record of what was done and any key outcomes, but remove per-item audit results, checklists, and working notes that are no longer needed for active work. This prevents plans from growing monotonically as work progresses.
Before collapsing, check: Does any information in this phase feed into a future phase that hasn't started yet? If so, ensure that information is already captured in the future phase's section (or the "Next Session" section) before removing it from the completed phase. Only collapse what is truly historical.
Example — before collapsing:
## Phase 2: Dependency Audit ✓ COMPLETE
### Per-script summary
(60 lines of detailed per-script audit results...)
### Critical issues
(30 lines of issue details, all resolved...)
After collapsing:
## Phase 2: Dependency Audit ✓ COMPLETE
Audited 21 scripts. Found 3 critical issues (all resolved in Phase 4): missing `theme_paper()` definition, hardcoded paths in 2 scripts, undeclared dependency on `datasets_for_plotting/conditions.csv`. Full audit preserved in git history.
After creating the document, add it to the Project Document Registry in the project's .claude/CLAUDE.md:
.claude/CLAUDE.md and find the "Project Document Registry" sectionIf no registry exists, create the registry section first (following the format in the /done skill documentation).
Tell the user:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
34 skills in this plugin
/audit-projectPeriodic project health check - cross-check docs, prune conventions, find drift. Use when project documentation feels stale, before milestones, or when CLAUDE.md is getting long. Do NOT load for auditing skills (use /audit-skills) or data analysis scripts (use /audit-script).
/audit-scriptSystematic audit of data analysis scripts for bugs, analytical reasoning, data handling, style, and reproducibility. Includes domain verification phase that researches tools, file formats, and methods to catch domain-specific errors (not just code bugs). Use when auditing a script, reviewing code for correctness, checking for bugs, preparing a script for publication, or when the user says "audit this script", "review this code", "check this for bugs", or "is this script correct". Three modes: thorough (collaborative section-by-section), fast (Claude-driven with discussion), and report-only. Do NOT load for quick one-off questions about a single line or function.
/audit-skillsAudit Claude Code skills for bloat, trigger accuracy, structural quality, redundancy, and pruning opportunities. Use when skills feel bloated, before publishing to lab repo, after building several new skills, when reviewing a single newly-created skill before publishing, or when the user says "audit my skills", "review skills", "check skill quality", "audit this skill", or invokes /audit-skills. Covers both user-level (~/.claude/skills/) and project-level (.claude/skills/) skills, and supports both full-library scans and single-skill reviews. Do NOT load for auditing data analysis scripts (use /audit-script) or project documentation (use /audit-project).
/cleanup-scriptsSession-scoped script cleanup for data science projects. Checks scripts/scratch/ for working files that need consolidation into .qmd scripts, flags numbered non-.qmd files in scripts/, and verifies script-output directory correspondence. Use when finishing a coding session, when scripts/scratch/ has accumulated files, or when the user says "clean up scripts", "consolidate scratch", or "check script conventions". Lightweight and fast — reads files, no expensive computation.
/conda-envConda environment activation for Python commands. Use when running Python scripts, pip, or conda-dependent tools./data-handlingData handling best practices for R and Python data science analysis scripts. Use when writing data manipulation code, analysis pipelines, or .qmd scripts that process scientific/analytical data (e.g., filtering, joining, normalizing datasets). Do NOT load for general Python scripting, infrastructure code, or configuration management.
npx claudepluginhub musserlab/lab-claude-skills --plugin lab-skills