x-analytics-import

x-analytics-import is a skill for Claude Code, Codex from asimons81/hermes-field-kit. It costs 32 tokens per session (1,859 once invoked), scanned A, original, Apache-2.0.

A repeatable local workflow for checking, standardizing, importing, and comparing CSV exports from X Analytics, the analytics area for an X account. It keeps normalized snapshots private on the local machine.

In plain words
What is it for?
Use it to establish an analytics baseline, add later X Analytics exports, compare periods with matching coverage, or reprocess historical posts after classification rules change.
Why use it?
It catches invalid data and avoids duplicate imports when new exports are added. It also supports consistent comparisons between snapshots and can reclassify older posts when the rules change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to establish an analytics baseline, add later X Analytics exports, compare periods with matching coverage, or reprocess historical posts after classification rules change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asimons81/hermes-field-kit/x-analytics-import
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add asimons81/hermes-field-kit --skill x-analytics-import
Clone the repo
git clone --depth 1 https://github.com/asimons81/hermes-field-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for x-analytics-import

README.md
[![agentmods](https://agentmods.dev/badge/skills/asimons81/hermes-field-kit/x-analytics-import.svg)](https://agentmods.dev/skills/asimons81/hermes-field-kit/x-analytics-import)
Your own site
<a href="https://agentmods.dev/skills/asimons81/hermes-field-kit/x-analytics-import"><img src="https://agentmods.dev/badge/skills/asimons81/hermes-field-kit/x-analytics-import.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,859 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 51
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01859
Opus 5 $0.00016 $0.00929
Sonnet 5 $0.00006 $0.00372
Haiku 4.5 $0.00003 $0.00186

Measured 8d ago against content hash 2152343e197c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

x-analytics-import scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/x_analytics_import.py, tests/test_x_analytics_import.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/x-analytics-import/SKILL.md · 218 lines

How it starts

The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.

X Analytics Import

Overview

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.

When to Use

Use this skill when:

  • Overview, content, or video analytics CSVs are available locally.
  • A first normalized baseline must be established.
  • New exports must be added without duplicating prior imports.
  • Two snapshots must be compared using matched coverage.
  • Lane rules changed and historical posts must be reclassified.

Do not use this skill when:

  • The exports still need to be downloaded from X.
  • The task is to post, reply, follow, message, or modify an X account.
  • The data comes from GA4, Search Console, or another analytics product.
  • The user wants raw exports copied into Git or published.

Safety Contract

  1. Treat raw exports, normalized rows, post text, post links, source hashes, revenue fields, and lane results as sensitive.
  2. Select exact files by path, date coverage, and modification time. Never trust alphabetical glob order.
  3. Run inspect, validate-only, and dry-run before every write mode.
  4. Store outputs outside repositories, normally under ~/.hermes/data/x-analytics-import.
  5. Never copy, rename, overwrite, stage, commit, or publish raw CSVs.
  6. Never use --force unless the user explicitly requests an identical re-import.
  7. A successful import does not authorize updates to notes, dashboards, websites, or Git.

Modes

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

Read the full file on GitHub · 218 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 218 lines · 32 tokens per session scan A 2152343e197c

Subscribe to this mod's changes

x-analytics-import is a skill published in the GitHub repository asimons81/hermes-field-kit (125 stars, last pushed 2d ago), licensed Apache-2.0. It adds 32 tokens to every session and 1,859 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.