downloading-batch-export-files

downloading-batch-export-files is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 97 tokens per session (2,088 once invoked), scanned A, original, MIT.

A tool for creating one-off downloadable exports of PostHog data, including events, people, sessions, or HogQL query results. It can produce Parquet or JSONLines files.

In plain words
What is it for?
Use it to export selected PostHog data for offline analysis, backups, or sharing. It also supports downloading the results of a HogQL query, PostHog’s query language.
Why use it?
It removes the need to manually assemble raw data exports or handle export status yourself. It is useful when you need a file for analysis or transfer.

Skill for Claude CodeCodex

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

Good fit Use it to export selected PostHog data for offline analysis, backups, or sharing. It also supports downloading the results of a HogQL query, PostHog’s query language.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/downloading-batch-export-files
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 PostHog/posthog-foss --skill downloading-batch-export-files
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

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 downloading-batch-export-files

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/downloading-batch-export-files/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/downloading-batch-export-files)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/downloading-batch-export-files"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/downloading-batch-export-files/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for downloading-batch-export-files

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/downloading-batch-export-files"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/downloading-batch-export-files.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,088 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 pass 7 Sept 2026
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.00097 $0.02088
Opus 5.5 $0.00039 $0.00835
Sonnet 5.5 $0.00019 $0.00418
Haiku 4.5 $0.00010 $0.00209

Measured today against content hash 468283622420, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

downloading-batch-export-files 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 today.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

products/batch_exports/skills/downloading-batch-export-files/SKILL.md · 166 lines

How it starts

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

Downloading batch export files

Use this skill when a user wants a one-off downloadable export of PostHog data. The export is started and monitored through MCP, but the final file download uses the existing REST endpoint directly.

Available MCP tools

Tool Purpose
posthog:file-download-batch-exports-create Start an on-demand export and return the run ID
posthog:file-download-batch-exports-retrieve Poll the run status and return file IDs after completion

Do not rely on a generated MCP tool for the /download/ endpoint. That endpoint is a redirecting file download endpoint, so raw HTTP/download handling is the right interface until MCP has explicit redirect support.

Workflow

1. Choose the export shape

Ask a short clarifying question if the user did not specify the required inputs:

  • model: one of events, persons, sessions, or hogql
  • data_interval_start and data_interval_end: ISO 8601 datetimes. Any supplied bound may not be in the future. When both bounds are supplied, they must be ordered and at most one week apart Required for events, persons, and sessions. For hogql, required only for the placeholders the query references. If only one placeholder is referenced, the other bound may be omitted and the one-week limit does not apply.
  • file.format: Parquet or JSONLines; prefer Parquet for compact analytics exports and JSONLines for line-oriented text processing
  • file.compression: optional, one of zstd, gzip, brotli, lz4, or snappy. If JSONLines was chosen as format, only gzip and brotli are supported.
  • file.max_size_mb: part size in MiB, 1024 by default. A part can go a little over this size. Lower it when the user wants smaller parts, raise it for fewer and bigger ones, or set it to null to write a single file of any size.

Read the full file on GitHub · 166 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. today Changed · +2 lines 468283622420
  2. 1mo ago Changed b8a5921b4dbe
  3. 2mo ago Changed · +1 lines 6607c712cec1
  4. 2mo ago Changed · +9 lines 536bb5d551a9
  5. 2mo ago Changed · +4 lines 323cc6f3d0f0
  6. 2mo ago First seen · 150 lines · 97 tokens per session scan A 247eb9888bc9

Subscribe to this mod's changes

downloading-batch-export-files is a skill published in the GitHub repository PostHog/posthog-foss (734 stars, last pushed today), licensed MIT. It adds 97 tokens to every session and 2,088 once invoked, about $0.0004 per session on Opus 5.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-09-03.

Related

downloading-batch-export-files compared with skills from other repositories

downloading-batch-export-files next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
downloading-batch-export-filesPostHog/posthog-fossSkill734todayMITA97Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144kyesterdayMITA95Claude Code