data-export

data-export is a skill for Claude Code, Codex from rshankras/claude-code-apple-skills. It costs 59 tokens per session (2,637 once invoked), scanned A, original, MIT.

A generator for adding data export and import to an Apple-platform app. It supports JSON, CSV, and PDF files, file selection, sharing, and GDPR data portability, where GDPR is the European privacy rule that lets people obtain their personal data.

In plain words
What is it for?
Use it to add user-data downloads, CSV/JSON/PDF export, file import, backup or migration flows, GDPR data exports, and the system share sheet.
Why use it?
It reduces the work of implementing file formats, correctly escaping CSV values, producing PDF reports, and assembling a user's complete data export. It does this without third-party dependencies.

Skill for Claude CodeCodex

Part of the apple-skills plugin — 147 skills shipped together , and of apple-skills

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.

agentmods
npx agentmods add skills/rshankras/claude-code-apple-skills/data-export
Any agent
npx skills add rshankras/claude-code-apple-skills --skill data-export
Clone the repo
git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills

Made for: Claude Code, Codex.

Or install apple-skills, the plugin that ships this one along with the rest of its 147 skills.

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 data-export

README.md
[![agentmods](https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/data-export.svg)](https://agentmods.dev/skills/rshankras/claude-code-apple-skills/data-export)
Your own site
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/data-export"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/data-export.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,637 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00059 $0.02637
Opus 5 $0.00030 $0.01319
Sonnet 5 $0.00012 $0.00527
Haiku 4.5 $0.00006 $0.00264

Measured 5d ago against content hash efae1edcc193, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

data-export 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 5d ago.

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/generators/data-export/SKILL.md · 342 lines

How it starts

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

Data Export Generator

Generate production data export and import infrastructure -- JSON export via Codable, CSV generation with proper escaping, PDF report rendering with UIGraphicsPDFRenderer, GDPR-compliant full data export, file import with UTType-based picker, and share sheet integration. No third-party dependencies.

When This Skill Activates

Use this skill when the user:

  • Asks to "add data export" or "export user data"
  • Wants "CSV export" or "JSON export" or "PDF export"
  • Mentions "GDPR data portability" or "right to data portability"
  • Asks about "exporting all user data" for compliance
  • Wants to "import data" from files or competitor apps
  • Mentions "share sheet" for exporting data
  • Asks about "data backup" or "data download"

Pre-Generation Checks

1. Project Context Detection

  • Check deployment target (iOS 16+ / macOS 13+)
  • Check Swift version (requires Swift 5.9+)
  • Identify data model layer (SwiftData, Core Data, custom structs)
  • Identify source file locations

2. Existing Export Detection

Search for existing export code:

Glob: **/*Export*.swift, **/*Import*.swift, **/*CSV*.swift, **/*PDF*.swift
Grep: "UIGraphicsPDFRenderer" or "CSVExport" or "UIActivityViewController" or "ShareLink" or "fileExporter"

If existing export code found:

  • Ask if user wants to replace or add additional formats
  • Identify which formats are already supported

3. Data Model Detection

Search for data models that need exporting:

Grep: "@Model" or "NSManagedObject" or "struct.*Codable" or "class.*Codable"

Identify the models to build export conformances for.

Configuration Questions

Ask user via AskUserQuestion:

  1. Export formats needed?

    • JSON (structured, machine-readable, best for GDPR)
    • CSV (tabular data, spreadsheet-compatible)
    • PDF (formatted reports with headers, tables, branding)
    • Multiple (select which combination)
  2. What data needs exporting?

    • All user data -- GDPR compliance (every piece of stored user data)
    • Specific data types (user selects which models to export)
    • Reports/summaries (aggregated data, not raw records)

Read the full file on GitHub · 342 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 342 lines · 59 tokens per session scan A efae1edcc193

Subscribe to this mod's changes

data-export is a skill published in the GitHub repository rshankras/claude-code-apple-skills (700 stars, last pushed 1mo ago), licensed MIT. It adds 59 tokens to every session and 2,637 once invoked, about $0.0003 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.