X Analytics Import logo

X Analytics Import

Community
asimons81
x-analytics-import

Use when X Analytics CSV exports must be inspected, validated, normalized, imported, or compared through a repeatable private-by-default workflow.

Overview

Publisherasimons81
Repositoryhermes-field-kit
Skill namex-analytics-import
Stars
127
Forks
12
Bundled files
10
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by asimons81 on GitHub. Read the source before you install it.

Installation

Install the X Analytics Import AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/asimons81/hermes-field-kit/tree/main/skills/x-analytics-import
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/asimons81/hermes-field-kit.git /tmp/hermes-field-kit
mkdir -p .claude/skills
cp -r /tmp/hermes-field-kit/skills/x-analytics-import .claude/skills/x-analytics-import
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable X Analytics Import in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads X Analytics Import on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so X Analytics Import is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the X Analytics Import AI skill do?

Use when X Analytics CSV exports must be inspected, validated, normalized, imported, or compared through a repeatable private-by-default workflow.

Why use X Analytics Import on TypingMind?

Because you install it once and use it with any model. X Analytics Import is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install X Analytics Import in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/asimons81/hermes-field-kit/tree/main/skills/x-analytics-import. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use X Analytics Import?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with X Analytics Import?

As many as you like. As long as a model supports skills, you can use X Analytics Import with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the X Analytics Import AI skill free?

Yes. It is published on GitHub by asimons81 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇