Skip to content
Level up your prompts with SurePrompts — curated prompts for every workflow.
agentscamp

Analytics Commands

Slash commands for analytics work in Claude Code: profile a dataset, define a metric.

Count Feedback

Count a single-label feedback CSV with code: validate record IDs, collapse exact duplicate rows, reject conflicting rows for one ID, and report records, distinct known respondents, missing identities, and label totals without inventing prevalence.

/count-feedback<feedback.csv> [output.md]

Define Metric

Write or refine a metric definition — name, plain-language meaning, grain, filters, source tables and columns, edge cases, and owner — into analysis/metrics/<slug>.md, after searching the repo for a definition that already exists.

/define-metric[metric name]

First Look

Read the first rows and the true row count of a CSV or spreadsheet, profile it against a fixed checklist, and write the result to analysis/profiles/<name>.md so the dataset's condition is on record before anyone queries it.

/first-look[data file path]