Agent skill

X Analytics Import

by asimons81 in asimons81/hermes-field-kit

A skill your agent uses when X Analytics CSV exports must be inspected, validated, normalized, imported, or compared through a repeatable private-by-default workflow.

Apache-2.0Auto-check passedDocuments & Office

Install X Analytics Import

skills CLI
$ npx skills add asimons81/hermes-field-kit --skill x-analytics-import -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install asimons81/hermes-field-kit x-analytics-import --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/asimons81/hermes-field-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/x-analytics-import .claude/skills/x-analytics-import && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
x-analytics-import
GitHub stars
126
Token cost
~2.1k tokens
SKILL.md length
993 words
Files
20 (incl. scripts, references)
Skills in repo
20
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when X Analytics CSV exports must be inspected, validated, normalized, imported, or compared through a repeatable private-by-default workflow.

  • Works in 6 steps: Identify the exact export set → Choose the run type → First baseline → …
  • X Analytics CSV exports must be inspected
  • SKILL.md covers Overview, When to Use, Safety Contract and Modes, plus 5 more sections
  • Runs Python scripts from its folder; calls python

What it does

X Analytics Import is an agent skill from asimons81/hermes-field-kit. Use when X Analytics CSV exports must be inspected, validated, normalized, imported, or compared through a repeatable private-by-default workflow.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 24 other files, including scripts and reference files (for example `README.md`, `examples/first-baseline.md` and `examples/recurring-refresh.md`).

It sits in Documents & Office, covering CSV and tabular files. It works with Git. The repository describes itself as: Field-tested, open-source skills for Hermes Agent. The licence is Apache-2.0.

When your agent uses it

  • X Analytics CSV exports must be inspected
  • Compared through a repeatable private-by-default workflow

Example prompts

  • “/x-analytics-import”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Identify the exact export set
  2. Choose the run type
  3. First baseline
  4. Recurring refresh
  5. Interpret the result
  6. Report without leaking data

What it can do on your machine

Read from SKILL.md and the folder at commit 367f8a3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

X Analytics Import loads about 2.1k tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 41 tokens; SKILL.md has 993 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from asimons81/hermes-field-kit at commit 367f8a3, republished under its Apache-2.0 licence (© asimons81). 993 words, ~2,144 tokens.

Download SKILL.mdSave it as .claude/skills/x-analytics-import/SKILL.md (or your agent's skills folder). This skill also uses 19 other files; get the full folder from GitHub.
name
x-analytics-import
description
Use when X Analytics CSV exports must be inspected, validated, normalized, imported, or compared through a repeatable private-by-default workflow.
version
1.0.0
author
Tony Simons
license
Apache-2.0
platforms
linux, macos, windows

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:

text
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

ModePurposeWrites
inspectDetect export type, schema, hash, rows, and coverageNo
validate-onlyRun structural and semantic checksNo
dry-runExecute the complete pipeline without artifactsNo
full-importCreate the first baseline or deliberate rebuildYes
incremental-importAdd a new source set only when hashes differYes
compare-snapshotsCompare matched dates and post IDsNo
rebuild-classificationReapply lane rules without reparsing CSVsYes

Workflow

1. Identify the exact export set

Expected file families:

text
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.

2. Choose the run type
  • No completed manifest exists: follow First baseline.
  • A completed manifest exists and the exports are newer: follow Recurring refresh.
  • The same source hashes already exist: stop at already_imported.

Completion criterion: the agent can name the prior import ID or state that no baseline exists.

3. First baseline

Run, in order:

text
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:

  • A completed manifest and normalized snapshot exist.
  • Validation, reconciliation, classification, analysis, and public-safe reports exist.
  • Manifest hashes match the selected inputs.
  • Date coverage and partial-day status are recorded.
  • Re-running the same files with incremental-import returns already_imported.

Completion criterion: one verified baseline exists and duplicate protection is proven.

4. Recurring refresh

Run, in order:

text
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:

  • Use overlapping overview dates.
  • Use matched post IDs for post-level deltas.
  • Report new and removed post IDs separately.
  • Do not subtract whole rolling-window totals when coverage differs.

Completion criterion: a new import is either safely rejected as duplicate or written once and compared on matched coverage.

Show full SKILL.md (411 more words)Show less
5. Interpret the result

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.

6. Report without leaking data

Return operational status first:

  • selected filenames
  • import status and import ID
  • validation and reconciliation status
  • partial-day status
  • artifact paths
  • idempotency result
  • warnings requiring attention

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.

Command Pattern

bash
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:

bash
python "<skill-dir>/scripts/x_analytics_import.py" compare-snapshots   --snapshot-a "<older.json>"   --snapshot-b "<newer.json>"   --json

Failure Gates

Stop before a write mode when:

  • Required columns are missing.
  • Dates or numeric values are malformed.
  • Duplicate post IDs are present.
  • Content extends beyond overview coverage.
  • Files appear to come from different export runs.
  • The output path is inside a repository.

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.

Common Pitfalls

  1. Using full-import every time. Use it once for the baseline; use incremental-import afterward.
  2. Selecting the alphabetically last download. Inspect exact paths, timestamps, hashes, and coverage.
  3. Assuming the newest day is complete. Use recorded partial-day detection.
  4. Comparing unlike windows. Compare overlapping dates and matched post IDs.
  5. Treating content metrics as daily account totals. Content rows are keyed by publish date and are not directly comparable to daily overview totals.
  6. Forcing lane or post-type certainty. Preserve uncertainty and confidence labels.
  7. Publishing the local analysis report. Use the public-safe report as the disclosure starting point.
  8. Using real exports as fixtures. Tests must remain synthetic.

Verification Checklist

  • The exact overview and content paths are recorded
  • Video is included only when compatible and current
  • inspect, validate-only, and dry-run completed first
  • Baseline uses full-import; later runs use incremental-import
  • Validation has no errors
  • Reconciliation has no unresolved failure
  • Output is outside every repository
  • Manifest hashes match the selected sources
  • Partial-day status is recorded
  • Duplicate re-import returns already_imported
  • Comparisons use matched coverage
  • Public-safe output excludes sensitive values
  • Raw CSVs were not copied, staged, committed, or published

© asimons81, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 19 other files (scripts, references) in skills/x-analytics-import of asimons81/hermes-field-kit.

  • SKILL.md
  • README.md
  • examples/first-baseline.md
  • examples/recurring-refresh.md
  • examples/validation-failure.md
  • references/config.example.json
  • references/export-formats.md
  • references/operations.md
  • references/privacy.md
  • scripts/x_analytics_import.py
  • tests/cases.json
  • tests/fixtures/content-valid.csv
  • tests/fixtures/duplicate-post-ids.csv
  • tests/fixtures/malformed-values.csv
  • tests/fixtures/missing-columns.csv
  • tests/fixtures/overview-aliases.csv
  • … and 4 more

Open the folder on GitHubat commit 367f8a3

Compare with similar skills

X Analytics Import next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

X Analytics Import compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
X Analytics Import this skillasimons81/hermes-field-kit126—~2.1kAutomated safety check: PassApache-2.0
Portaljs Add Datasetdatopian/portaljs2.4k1 repos~1.6kAutomated safety check: PassMIT
Data Table Managern8n-io/n8n207k—~2.3kAutomated safety check: PassCustom licence
Instrument Data To Allotropeaws-samples/amazon-bedrock-agents-healthcare-lifesciences2742 repos~2.7kAutomated safety check: PassApache-2.0
Openai Security Ownership Maptrailofbits/skills-curated5125 repos~2.2kAutomated safety check: NotesCC-BY-SA-4.0
Abuse Hunternexu-io/harness-engineering-guide663—~1.9kAutomated safety check: PassMIT

Similar skills

  • Portaljs Add Dataset

    datopian/portaljs

    Add a dataset (CSV, TSV, JSON, or GeoJSON) to an existing PortalJS portal.

    2.4k GitHub starsUsed in 1 repo~1.6k tokens
    Documents & OfficeAuto-check passed
  • Official

    Load before calling data-tables or parse-file. An agent skill from n8n-io/n8n.

    207k GitHub stars~2.3k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Instrument Data To Allotrope

    aws-samples/amazon-bedrock-agents-healthcare-lifesciences

    Official

    Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV.

    274 GitHub starsUsed in 2 repos~2.7k tokens
    Documents & OfficeAuto-check passed
  • Openai Security Ownership Map

    trailofbits/skills-curated

    Official

    Analyze git repositories to build a security ownership topology (people-to-file), compute bus factor and sensitive-code ownership, and export CSV/JSON for graph databases and visualization.

    512 GitHub starsUsed in 5 repos~2.2k tokens
    DevelopmentAuto-check: notes
  • Abuse Hunter

    nexu-io/harness-engineering-guide

    Detect and investigate bulk registration abuse on SaaS platforms.

    663 GitHub stars~1.9k tokensUpdated 5 mo ago
    Documents & OfficeAuto-check passed
  • Markit

    shift-labs-ai/markit

    Convert files and URLs to Markdown. An agent skill from shift-labs-ai/markit.

    1.3k GitHub stars~299 tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed

More from asimons81/hermes-field-kit

All 20 skills in this repo
  • Repo Readiness Audit

    asimons81/hermes-field-kit

    A skill your agent uses when a user asks whether an identified repository is ready for further development, release work, a new feature, handoff, or a new contributor, requiring a disciplined…

    126 GitHub stars~4.7k tokensUpdated 29 days ago
    Auto-check passed
  • X Post Writer

    asimons81/hermes-field-kit

    A skill your agent uses when drafting, rewriting, or repurposing short-form X content, including single posts, quote posts, replies, threads, launches, and personal stories, with source fidelity and…

    126 GitHub stars~2.6k tokensUpdated 29 days ago
    Auto-check passed
  • Dont Lie To Me

    asimons81/hermes-field-kit

    A skill your agent uses when the user explicitly wants evidence-disciplined answers that separate observed facts, sourced claims, user reports, inference, unknowns, and contradictions before making…

    126 GitHub stars~3k tokensUpdated 29 days ago
    Auto-check passed
  • Hermes Environment Migration

    asimons81/hermes-field-kit

    A skill your agent uses when a Hermes environment must be safely migrated between machines with staged exports, integrity manifests, secret separation, selective imports, verification, and rollback.

    126 GitHub stars~2.1k tokensUpdated 29 days ago
    Auto-check passed
  • Hermes Gateway Doctor

    asimons81/hermes-field-kit

    A skill your agent uses when Hermes messaging gateway failures must be diagnosed across process state, adapters, credential posture, logs, delivery evidence, polling conflicts, and service…

    126 GitHub stars~1.4k tokensUpdated 29 days ago
    Auto-check passed
  • Hermes Profile Audit

    asimons81/hermes-field-kit

    A skill your agent uses when a Hermes profile must be audited for role clarity, authority boundaries, configuration fit, skills, memory posture, credential scope, handoffs, and recurring operational…

    126 GitHub stars~1.4k tokensUpdated 29 days ago
    Auto-check passed

Works with

Questions about X Analytics Import

What does X Analytics Import do?

A skill your agent uses when X Analytics CSV exports must be inspected, validated, normalized, imported, or compared through a repeatable private-by-default workflow. X Analytics Import is an agent skill from asimons81/hermes-field-kit. Use when X Analytics CSV exports must be inspected, validated, normalized, imported, or compared through a repeatable private-by-default workflow.

When should I use X Analytics Import?

X Analytics Import fits situations like: X Analytics CSV exports must be inspected; compared through a repeatable private-by-default workflow.

How do I install X Analytics Import in Claude Code?

Run `npx skills add asimons81/hermes-field-kit --skill x-analytics-import -a claude-code`. Or copy the skill folder (skills/x-analytics-import in asimons81/hermes-field-kit) into .claude/skills/x-analytics-import in your project. Claude Code loads it when a task matches its description.

How do I install X Analytics Import in Codex?

Run `npx skills add asimons81/hermes-field-kit --skill x-analytics-import -a codex`. Or copy the skill folder (skills/x-analytics-import in asimons81/hermes-field-kit) into .agents/skills/x-analytics-import in your project. Codex loads it when a task matches its description.

Can I use X Analytics Import in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add asimons81/hermes-field-kit --skill x-analytics-import -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/x-analytics-import, .gemini/skills/x-analytics-import, .github/skills/x-analytics-import and .opencode/skills/x-analytics-import in your project.

What does X Analytics Import need to run?

Going by SKILL.md and its folder, X Analytics Import needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does X Analytics Import access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is X Analytics Import safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does X Analytics Import use?

X Analytics Import is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does X Analytics Import use?

About 2.1k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.9k tokens, read only when the agent opens those files.

What are the alternatives to X Analytics Import?

Skills that share tags, products or a category with X Analytics Import: Portaljs Add Dataset (datopian/portaljs, 2.4k stars), Data Table Manager (n8n-io/n8n, 207k stars), Instrument Data To Allotrope (aws-samples/amazon-bedrock-agents-healthcare-lifesciences, 274 stars) and Openai Security Ownership Map (trailofbits/skills-curated, 512 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains X Analytics Import?

asimons81 (a GitHub user) maintains it in asimons81/hermes-field-kit, which has 126 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on September 9, 2026.

Source: asimons81/hermes-field-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.