Skip to content
agentscamp

Analytics Commands

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

Command

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]
Command

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]