Use when X Analytics CSV exports must be inspected, validated, normalized, imported, or compared through a repeatable private-by-default workflow.
npx skills add https://github.com/asimons81/hermes-field-kit --skill x-analytics-import
Use this skill to turn X Analytics CSV exports into validated, normalized, private local snapshots. The deterministic engine is scripts/x_analytics_import.py; it uses only the Python standard library and has no network, browser, Git, or publishing side effects.
The operating rule is simple:
first run: inspect -> validate-only -> dry-run -> full-import
later runs: inspect -> validate-only -> dry-run -> incremental-import -> compare
Read references/operations.md only when command detail or recovery guidance is needed.
Use this skill when:
Do not use this skill when:
inspect, validate-only, and dry-run before every write mode.~/.hermes/data/x-analytics-import.--force unless the user explicitly requests an identical re-import.| Mode | Purpose | Writes |
|---|---|---:|
| inspect | Detect export type, schema, hash, rows, and coverage | No |
| validate-only | Run structural and semantic checks | No |
| dry-run | Execute the complete pipeline without artifacts | No |
| full-import | Create the first baseline or deliberate rebuild | Yes |
| incremental-import | Add a new source set only when hashes differ | Yes |
| compare-snapshots | Compare matched dates and post IDs | No |
| rebuild-classification | Reapply lane rules without reparsing CSVs | Yes |
Expected file families:
account_overview_analytics*.csv
account_analytics_content_<start>_<end>.csv
video_overview_analytics*.csv
Video is optional. Confirm the files belong to the intended export run. Chrome suffixes such as (1) are not chronology.
Completion criterion: every selected file has an exact path, plausible coverage, and no stale duplicate has been substituted.
already_imported.Completion criterion: the agent can name the prior import ID or state that no baseline exists.
Run, in order:
inspect
validate-only
dry-run
full-import
Use the same exact file paths for all four stages. Stop before full-import when validation fails, reconciliation fails, or file pairing is doubtful.
After full-import, verify:
incremental-import returns already_imported.Completion criterion: one verified baseline exists and duplicate protection is proven.
Run, in order:
inspect
validate-only
dry-run
incremental-import
compare-snapshots
Use incremental-import for ordinary future runs. If it returns already_imported, do not force a duplicate and do not create a comparison.
Compare the new snapshot against the previous completed snapshot. Use the original baseline only for a separate long-range view.
Comparison rules:
Completion criterion: a new import is either safely rejected as duplicate or written once and compared on matched coverage.
Use medians, p25, p75, p90, sample sizes, and IQR outliers. Separate originals, replies, quotes, reposts, and unknown types. Treat CSV-only post type as heuristic. Preserve Uncertain lane results rather than forcing a winner.
Exclude detected partial dates from default statistics. State confidence and source coverage. Do not claim causation from correlation.
Completion criterion: every recommendation includes evidence, sample size, confidence, and outlier context.
Return operational status first:
Exact metrics, post content, source hashes, revenue, and strategy findings remain local unless the user explicitly requests them.
Completion criterion: the response is useful without exposing sensitive values by default.
python "<skill-dir>/scripts/x_analytics_import.py" <mode> --overview "<overview.csv>" --content "<content.csv>" --video "<video.csv>" --config "<local-config.json>" --output-dir "<private-output-dir>" --json
Omit --video or --config when unused. Copy references/config.example.json to a private local path before customizing lane rules.
Snapshot comparison:
python "<skill-dir>/scripts/x_analytics_import.py" compare-snapshots --snapshot-a "<older.json>" --snapshot-b "<newer.json>" --json
Stop before a write mode when:
Warnings such as an X filename window starting before the first actual content row may be acceptable when actual row coverage and end dates align. Explain the warning rather than silently discarding it.
full-import every time. Use it once for the baseline; use incremental-import afterward.inspect, validate-only, and dry-run completed firstfull-import; later runs use incremental-importalready_importedComprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.
Picks random winners from lists, spreadsheets, or Google Sheets for giveaways, raffles, and contests. Ensures fair, unbiased selection with transparency.
Query openFDA API for drugs, devices, adverse events, recalls, regulatory submissions (510k, PMA), substance identification (UNII), for FDA regulatory data analysis and safety research.
MATLAB and GNU Octave numerical computing for matrix operations, data analysis, visualization, and scientific computing. Use when writing MATLAB/Octave scripts for linear algebra, signal processing, image processing, differential equations, optimization, statistics, or creating scientific visualizations. Also use when the user needs help with MATLAB syntax, functions, or wants to convert between MATLAB and Python code. Scripts can be executed with MATLAB or the open-source GNU Octave interpreter.
UMAP dimensionality reduction. Fast nonlinear manifold learning for 2D/3D visualization, clustering preprocessing (HDBSCAN), supervised/parametric UMAP, for high-dimensional data.
Creating interactive data visualisations using d3.js. This skill should be used when creating custom charts, graphs, network diagrams, geographic visualisations, or any complex SVG-based data visualisation that requires fine-grained control over visual elements, transitions, or interactions. Use this for bespoke visualisations beyond standard charting libraries, whether in React, Vue, Svelte, vanilla JavaScript, or any other environment.
Access AlphaFold 200M+ AI-predicted protein structures. Retrieve structures by UniProt ID, download PDB/mmCIF files, analyze confidence metrics (pLDDT, PAE), for drug discovery and structural biology.
Take asimons81/x-analytics-import from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.