Export Claude Code session and analytics data in JSON, CSV, or Markdown formats.

MITAuto-check passedDocuments & Office

Install Data Export

skills CLI
$ npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill data-export -a claude-code

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

GitHub CLI
$ gh skill install hoangsonww/Claude-Code-Agent-Monitor data-export --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/hoangsonww/Claude-Code-Agent-Monitor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ccam-devtools/skills/data-export .claude/skills/data-export && 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
data-export
GitHub stars
1k
Token cost
~537 tokens
SKILL.md length
172 words
Files
2
Skills in repo
78
Repo updated
First seen
Licence
MIT

At a glance

Export Claude Code session and analytics data in JSON, CSV, or Markdown formats.

  • Works in 4 steps: Parse the request to determine → Fetch data from http://localhost:4820 → Transform to requested format → …
  • Tasks that involve CSV and tabular files
  • SKILL.md covers Input, Procedure and Output Format
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Data Export is an agent skill from hoangsonww/Claude-Code-Agent-Monitor. Export Claude Code session and analytics data in JSON, CSV, or Markdown formats. Supports exporting sessions, events, costs, and analytics for external analysis or reporting. Use for data backup or integration.

Its SKILL.md is about 540 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Documents & Office, covering CSV and tabular files and Markdown. The repository describes itself as: 🚀 A real-time monitoring dashboard for Claude Code & Codex, built with SQLite3, Node.js, Express, React, Vite, TailwindCSS, & WebSockets. It tracks sessions, agent activity… The licence is MIT.

When your agent uses it

  • Tasks that involve CSV and tabular files
  • Tasks that involve Markdown

Example prompts

  • “/data-export”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Parse the request to determine
  2. Fetch data from http://localhost:4820
  3. Transform to requested format
  4. Output the data

What it can do on your machine

Read from SKILL.md and the folder at commit e0f4a1a. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json and markdown).

    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

Data Export loads about 537 tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 172 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~537

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from hoangsonww/Claude-Code-Agent-Monitor at commit e0f4a1a, republished under its MIT licence (© hoangsonww). 172 words, ~537 tokens.

Download SKILL.mdSave it as .claude/skills/data-export/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
data-export
description
Export Claude Code session and analytics data in JSON, CSV, or Markdown formats. Supports exporting sessions, events, costs, and analytics for external analysis or reporting. Use for data backup or integration.

Data Export

Export Agent Monitor data in various formats.

Input

The user provides: $ARGUMENTS

This may be:

  • A data type: "sessions", "events", "analytics", "costs", "all"
  • A format: "json", "csv", "markdown" (default: json)
  • A filter: "last 7 days", "session {id}", "completed only"
  • Combined: "sessions csv last 30 days"

Procedure

  1. Parse the request to determine:

    • Data scope: which data to export
    • Format: output format
    • Filters: time range, status, session ID
  2. Fetch data from http://localhost:4820:

    • Sessions: GET /api/sessions?limit=1000
    • Events: GET /api/events?limit=5000
    • Analytics: GET /api/analytics
    • Costs: GET /api/pricing/cost
    • Full export: GET /api/settings/export
  3. Transform to requested format:

    JSON Format

    Pretty-printed JSON with metadata header:

    json
    {
      "export": {
        "source": "Claude Code Agent Monitor",
        "exported_at": "2025-04-11T12:00:00Z",
        "filters": { "type": "sessions", "range": "last 7 days" },
        "count": 42
      },
      "data": [...]
    }
    CSV Format

    Standard CSV with headers, proper quoting, and ISO timestamps:

    id,name,status,model,started_at,ended_at,duration_minutes,cost_usd
    Markdown Format

    Human-readable tables with summary statistics:

    markdown
    # Agent Monitor Export — Sessions (Last 7 Days)
    | ID | Name | Status | Model | Duration | Cost |
    |...
    **Total: 42 sessions, $12.34 cost**
  4. Output the data:

    • For small exports (<100 rows): output directly
    • For large exports: save to file and report the path
    • Include row count and any filter notes

Output Format

Deliver the exported data in the requested format. Always include:

  • Export metadata (when, what, filters applied)
  • Row/record count
  • Suggested filename for saving

© hoangsonww, MIT. 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 1 other file in plugins/ccam-devtools/skills/data-export of hoangsonww/Claude-Code-Agent-Monitor.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit e0f4a1a

Compare with similar skills

Data Export 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.

Data Export compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Data Export this skillhoangsonww/Claude-Code-Agent-Monitor1k—~537Automated safety check: PassMIT
Dashen X Battle PlanJayceHuang/xiaomu_x_creator251—~1.1kAutomated safety check: PassNone
Gbro Series Vocabpyang5166/gbro-series-vocab159—~1.1kAutomated safety check: PassMIT
Markdown Converterintellectronica/agent-skills2954 repos~492Automated safety check: PassCC0-1.0
Google Drivecursor/plugins10k—~1.1kAutomated safety check: PassNone
File Converteraiskillstore/marketplace4301 repos~895Automated safety check: PassNone

Similar skills

  • Dashen X Battle Plan

    JayceHuang/xiaomu_x_creator

    为X(推特)账号生成专业内容作战计划Markdown报告,由 dashen.wang(AI最严厉的父亲)出品。当用户想要分析自己或他人的X账号数据、制定内容策略、生成30天创作计划、分析推特数据CSV、复盘上期计划执行情况时,必须调用本skill。触发词包括:内容作战计划、X创作计划、推特内容策略、分析我的X数据、帮我做个创作计划、做个X账号分析报告、X流量分析、内容规划MD、内容规划Markd…

    251 GitHub stars~1.1k tokensUpdated 6 days ago
    Documents & OfficeAuto-check passed
  • Gbro Series Vocab

    pyang5166/gbro-series-vocab

    追剧学英语 / Learn English vocabulary from TV series. An agent skill from pyang5166/gbro-series-vocab.

    159 GitHub stars~1.1k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Markdown Converter

    intellectronica/agent-skills

    Convert documents and files to Markdown using markitdown. An agent skill from intellectronica/agent-skills.

    295 GitHub starsUsed in 4 repos~492 tokens
    Documents & OfficeAuto-check passed
  • Google Drive

    cursor/plugins

    Official

    Work with Google Drive through its MCP tools - search, read, create, organize, share, comment, and export files.

    10k GitHub stars~1.1k tokensUpdated today
    Documents & OfficeAuto-check passed
  • File Converter

    aiskillstore/marketplace

    This skill handles file format conversions across documents (PDF, DOCX, Markdown, HTML, TXT), data files (JSON, CSV, YAML, XML, TOML), and images (PNG, JPG, WebP, SVG, GIF).

    430 GitHub starsUsed in 1 repo~895 tokens
    Documents & OfficeAuto-check passed
  • Literature Experiment Extract

    aipoch/medical-research-skills

    Extract experimental models, experimental methods, and biomarker information from paper Markdown (typically produced by PDF-to-Markdown tools) when a user provides paper Markdown and needs a…

    2k GitHub stars~1.8k tokensUpdated 20 days ago
    Documents & OfficeAuto-check passed

More from hoangsonww/Claude-Code-Agent-Monitor

All 78 skills in this repo
  • Budget Set

    hoangsonww/Claude-Code-Agent-Monitor

    Define a spend budget for Claude Code and, optionally, create a cost alert rule that fires when usage crosses the limit, via POST /api/alerts/rules on the Agent Monitor dashboard.

    1k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Version Release

    hoangsonww/Claude-Code-Agent-Monitor

    Choose and apply the correct semantic version bump for this repository.

    1k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Cost Breakdown

    hoangsonww/Claude-Code-Agent-Monitor

    Break down Claude Code costs using the Agent Monitor pricing engine.

    1k GitHub starsUsed in 1 repo~845 tokens
    Auto-check passed
  • Hook Diagnostics

    hoangsonww/Claude-Code-Agent-Monitor

    Diagnose Claude Code hook installation, delivery, and ingestion issues.

    1k GitHub starsUsed in 1 repo~676 tokens
    Auto-check passed
  • Memory Review

    hoangsonww/Claude-Code-Agent-Monitor

    Review the file-based memory store via the Agent Monitor Config Explorer API: the user and project CLAUDE.md plus per-project auto-memory files under ~/.claude/projects/<slug/memory/.md.

    1k GitHub starsUsed in 1 repo~970 tokens
    Auto-check passed
  • Transcript Grep

    hoangsonww/Claude-Code-Agent-Monitor

    Search a Claude Code session transcript for a string or regex pattern and show every matching message with surrounding context.

    1k GitHub starsUsed in 1 repo~706 tokens
    Auto-check passed

Questions about Data Export

What does Data Export do?

Export Claude Code session and analytics data in JSON, CSV, or Markdown formats. Data Export is an agent skill from hoangsonww/Claude-Code-Agent-Monitor. Export Claude Code session and analytics data in JSON, CSV, or Markdown formats.

When should I use Data Export?

Data Export fits situations like: tasks that involve CSV and tabular files; tasks that involve Markdown.

How do I install Data Export in Claude Code?

Run `npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill data-export -a claude-code`. Or copy the skill folder (plugins/ccam-devtools/skills/data-export in hoangsonww/Claude-Code-Agent-Monitor) into .claude/skills/data-export in your project. Claude Code loads it when a task matches its description.

How do I install Data Export in Codex?

Run `npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill data-export -a codex`. Or copy the skill folder (plugins/ccam-devtools/skills/data-export in hoangsonww/Claude-Code-Agent-Monitor) into .agents/skills/data-export in your project. Codex loads it when a task matches its description.

Can I use Data Export 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 hoangsonww/Claude-Code-Agent-Monitor --skill data-export -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/data-export, .gemini/skills/data-export, .github/skills/data-export and .opencode/skills/data-export in your project.

What does Data Export need to run?

SKILL.md names no scripts, command-line tools or credentials: Data Export is instructions for the agent only.

Does Data Export 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 Data Export 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. Review the folder before installing.

What licence does Data Export use?

Data Export is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Data Export use?

About 537 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Data Export?

Skills that share tags, products or a category with Data Export: Dashen X Battle Plan (JayceHuang/xiaomu_x_creator, 251 stars), Gbro Series Vocab (pyang5166/gbro-series-vocab, 159 stars), Markdown Converter (intellectronica/agent-skills, 295 stars) and Google Drive (cursor/plugins, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Data Export?

hoangsonww (a GitHub user) maintains it in hoangsonww/Claude-Code-Agent-Monitor, which has 1,049 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on October 6, 2026.

Source: hoangsonww/Claude-Code-Agent-Monitor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.