export
Skill63 starsChanged 9 months agoMITView on GitHub
Export knowledge base content to PDF, Markdown, or HTML files saved under _data/exports/. Use when a user wants to save or share KB content as downloadable files. Supports exporting a single document file, a single feed entry, a single note, or the entire knowledge base.
- Installs packages
12 other projects use a version of this.
Adopted by
Most recently taken up by
- fjwood69/moritheir own version, first seen Oct 3, 2026
- bloxy-studios/shorts-studiotheir own version, first seen Oct 1, 2026
- with-pebbly/aseprite-ai-artisttheir own version, first seen Oct 1, 2026
- yha9806/academic-writing-toolkittheir own version, first seen Sep 21, 2026
- ai-analyst-lab/ai-analysttheir own version, first seen Sep 10, 2026
- FiredMosquito831/my-writing-companiontheir own version, first seen Sep 9, 2026
Used with
Projects with it also use stats and review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- ai-analyst-lab/ai-analyst★ 304same name
- with-pebbly/aseprite-ai-artist★ 78same name
- yha9806/academic-writing-toolkit★ 42same name
- fjwood69/mori★ 30same name
- spotify/ads-agentic-tools★ 18same name
- aiatelie/ai-atelie★ 11same name
- Anglesite/anglesite-skills★ 4same name
- geronimo-iia/llm-wiki-skills★ 2same name
- FiredMosquito831/my-writing-companion★ 1same name
- GroundCtrlHQ/reactivationos★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- displaySkill
- feedSkill
- ingestSkill
- init-deps-installSkill
- tapestrySkill
- subscriptionsSkill
- synthesisSkill
- visual-cardSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when:
- Distinctive: line 47
Run the export script:
- Very specific: line 71
All exported files are saved under _data/exports/:
- Very specific: line 86
If Playwright is not installed, the script falls back to saving a self-printing HTML file (with window.onload = window.print()) and will …
- Distinctive: line 97
Math (KaTeX): All exported HTML files include KaTeX CDN scripts for math rendering.
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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, orall(default:all) - scope:
file,note,feed, orkb(default:kb) - target: a path or partial path to the target artifact (required for
file,note,feedscopes)
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
- Parse the argument to determine format, scope, and target.
- Change to the project root directory.
- 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- The script prints a JSON summary of all exported file paths to stdout.
- Report the output paths back to the user.
Output Location
All exported files are saved under _data/exports/:
_data/exports/
markdown/ ← .md files
html/ ← standalone .html files (self-contained, with embedded images)
pdf/ ← .pdf files (requires playwright)File names mirror the source path structure. For example:
_data/books/ai/chapter/doc.md → _data/exports/html/ai/chapter/doc.html
PDF Export Notes
PDF export uses Playwright (headless Chromium) to render the HTML to PDF.
If Playwright is not installed, the script falls back to saving a self-printing HTML file
(with window.onload = window.print()) and will notify the user to open it in a browser
and use Print → Save as PDF.
To install Playwright:
pip install playwright && playwright install chromiumRich Text Handling
- Math (KaTeX): All exported HTML files include KaTeX CDN scripts for math rendering.
- Images: Images are base64-encoded and embedded inline in HTML/PDF exports for full portability.
- Code blocks: Syntax-highlighted HTML is preserved from the knowledge base renderer.
- Tables: Standard HTML tables are preserved.
Resources
export/_scripts/export.py: Main export script.display/_scripts/publish_viewer.py: Providesrender_markdown_document()used for HTML rendering._src/config.py:TapestryConfigfor resolving project and data paths.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

