Build or refresh the local schema cache for data files in this directory and
How this command is triggered — by the user, by Claude, or both
Slash command
/conversational-analytics:discover-filesThe summary Claude sees in its command listing — used to decide when to auto-load this command
Build or refresh the local schema cache for data files in this directory and its subdirectories (CSV, TSV, JSON, JSONL, Parquet). $ARGUMENTS If a path is given above, scan that directory; otherwise scan the current working directory and all subdirectories. Skip `.git/`, `venv/`, `node_modules/`, `outputs/`, `schema/`, and other hidden directories. Steps: 1. Find candidate data files: `*.csv`, `*.tsv`, `*.json`, `*.jsonl`, `*.parquet`. Skip `.txt` files unless they're clearly delimited data (e.g. tab/comma-separated rows), not prose. 2. For each file, use the `execute_sql_local` t...
Build or refresh the local schema cache for data files in this directory and its subdirectories (CSV, TSV, JSON, JSONL, Parquet).
$ARGUMENTS
If a path is given above, scan that directory; otherwise scan the current
working directory and all subdirectories. Skip .git/, venv/,
node_modules/, outputs/, schema/, and other hidden directories.
Steps:
Find candidate data files: *.csv, *.tsv, *.json, *.jsonl,
*.parquet. Skip .txt files unless they're clearly delimited data
(e.g. tab/comma-separated rows), not prose.
For each file, use the execute_sql_local tool (DuckDB) to profile it:
DESCRIBE SELECT * FROM 'path/to/file.csv';
SELECT COUNT(*) FROM 'path/to/file.csv';
DuckDB infers columns/types automatically from the file — no manual
schema needed. Reference .json/.jsonl files the same way; use
read_json_auto('path') if a plain path doesn't parse cleanly.
For each file, gather the same kind of profile as /discover-schema:
Write one file per data file to schema/<relative-path-with-slashes-as-underscores>.md,
same format /discover-schema uses:
# `relative/path/to/file.csv`
## Columns
| Column | Type | Notes |
|---|---|---|
| column_name | TYPE | distinct count / sample values / nullability |
## Profile
- Row count: ...
- Time range covered: ... to ... (if a date/timestamp column exists)
## Known issues
(leave empty; filled in by /diagnose-telemetry runs)
Write or update schema/_index.md:
# Local files index: <directory>
- `relative/path/to/file.csv` — one-line description
Report back: how many files found, what formats, which look like the primary data files vs. small lookup/reference files, and anything surprising (unexpected nulls, tiny row counts, inconsistent columns across files that look like they should share a schema).
On re-runs: read schema/_index.md first and report what's new, changed,
or removed rather than re-profiling everything from scratch.
npx claudepluginhub tsnevan4204/conversational-analytics-dev-tool --plugin conversational-analytics