export

export is a skill for Claude Code, Codex from NatsuFox/Tapestry. It costs 58 tokens per session (1,033 once invoked), scanned A, original, MIT.

A tool for saving knowledge-base content as PDF, Markdown, or HTML files. A knowledge base is a collection of documents, notes, and feed entries kept for later reference.

In plain words
What is it for?
Use it to export one document, note, or feed entry, or the entire knowledge base, in one or more supported formats.
Why use it?
It removes the need to copy content manually when you need an offline file or want to share material outside the knowledge-base viewer.

Skill for Claude CodeCodex

Part of the Tapestry plugin — 9 skills shipped together

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/natsufox/tapestry/export
Any agent
npx skills add NatsuFox/Tapestry --skill export
Clone the repo
git clone --depth 1 https://github.com/NatsuFox/Tapestry

Made for: Claude Code, Codex.

Or install Tapestry, the plugin that ships this one along with the rest of its 9 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 export

README.md
[![agentmods](https://agentmods.dev/badge/skills/natsufox/tapestry/export.svg)](https://agentmods.dev/skills/natsufox/tapestry/export)
Your own site
<a href="https://agentmods.dev/skills/natsufox/tapestry/export"><img src="https://agentmods.dev/badge/skills/natsufox/tapestry/export.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,033 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.00058 $0.01033
Opus 5 $0.00029 $0.00517
Sonnet 5 $0.00012 $0.00207
Haiku 4.5 $0.00006 $0.00103

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

Security

Grade A, and why

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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (_scripts/export.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/tapestry/export/SKILL.md · 107 lines

How it starts

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

Tapestry Export

Export knowledge base content to portable file formats: $ARGUMENTS

When to use this skill

Use this skill when:

  • A user wants to export, save, download, or share knowledge base content
  • The user asks for a PDF, Markdown, or HTML version of a document or the whole KB
  • The user wants offline-readable files from the knowledge base
  • The user wants to share a chapter or article outside the viewer

Arguments

The argument string may contain any combination of:

  • format: pdf, markdown, html, or all (default: all)
  • scope: file, note, feed, or kb (default: kb)
  • target: a path or partial path to the target artifact (required for file, note, feed scopes)

Examples:

  • "pdf kb" — export the entire knowledge base as PDF
  • "html file _data/books/ai/chapter.md" — export one document as HTML
  • "all note _data/notes/2025/03/my-note.md" — export one note in all three formats
  • "markdown feed _data/feeds/2025/03/abc123.json" — export one feed entry as Markdown

Scope Resolution

Scope Source files Notes
file Single .md file under _data/books/ Path provided by user
note Single .md file under _data/notes/ Path provided by user
feed Single .json file under _data/feeds/ Exports the body field as Markdown
kb All .md files under _data/books/ recursively Entire knowledge base

Workflow

  1. Parse the argument to determine format, scope, and target.
  2. Change to the project root directory.
  3. Run the export script:
# Export entire KB as PDF
python export/_scripts/export.py --format pdf --scope kb

# Export entire KB in all formats
python export/_scripts/export.py --format all --scope kb

# Export a single document as HTML
python export/_scripts/export.py --format html --scope file --target _data/books/topic/chapter/doc.md

# Export a single note as Markdown
python export/_scripts/export.py --format markdown --scope note --target _data/notes/2025/03/note.md

# Export a single feed entry in all formats
python export/_scripts/export.py --format all --scope feed --target _data/feeds/2025/03/abc123.json

Read the full file on GitHub · 107 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. 4d ago First seen · 107 lines · 58 tokens per session scan A eaa51a7c3cfd

Subscribe to this mod's changes

export is a skill published in the GitHub repository NatsuFox/Tapestry (64 stars, last pushed 4mo ago), licensed MIT. It adds 58 tokens to every session and 1,033 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.