Export Timeline PDF
Documentsexport-timeline-pdfExport Timeline PDF is an Agent Skill for documents published in the rcarmo/piclaw repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Export a chat timeline to a PDF using the internal localhost export endpoint and wkhtmltopdf (currently unsupported in this environment).
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/rcarmo/piclaw/blob/HEAD/skel/.pi/skills/export-timeline-pdf/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/export-timeline-pdf, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Export timeline PDF
⚠️ This skill is currently unsupported here.
Fallback behaviour
If the user asks for a timeline export right now:
- Say that PDF export is currently unavailable in this environment.
- Offer a fallback instead:
- gather the requested range with the
messagestool - write a Markdown or HTML export to the workspace
- attach that file if the user wants a downloadable artifact
- gather the requested range with the
- Do not pretend the PDF path worked if the skill is unsupported.
When this skill is supported
Use the script below only when the local skill runtime and wkhtmltopdf are known to work.
Examples
Export the last 50 messages:
bun /workspace/.pi/skills/export-timeline-pdf/export-timeline-pdf.ts --chat web:default --last 50
Export a date range:
bun /workspace/.pi/skills/export-timeline-pdf/export-timeline-pdf.ts --chat web:default \
--from "2026-03-01T00:00:00Z" --to "2026-03-05T23:59:59Z"
Export a row-id range:
bun /workspace/.pi/skills/export-timeline-pdf/export-timeline-pdf.ts --chat web:default \
--from-row 1234 --to-row 1300
Dark theme:
bun /workspace/.pi/skills/export-timeline-pdf/export-timeline-pdf.ts --chat web:default --last 20 --theme dark
Options
| Flag | Description | Default |
|---|---|---|
--chat | Chat JID to export | web:default |
--from | Start timestamp (ISO 8601) | (all) |
--to | End timestamp (ISO 8601) | (all) |
--from-row | Start message row ID | (all) |
--to-row | End message row ID | (all) |
--last | Export only the last N messages | (all) |
--theme | light or dark | light |
--out | Output PDF path | /workspace/exports/timeline-<chat>.pdf |
--port | Piclaw web port | auto-detect / 8080 |
--auth-key | Internal export auth key | env/config lookup |
--html-only | Save HTML sidecar without rendering PDF | off |
Auth lookup order
--auth-keyPICLAW_EXPORT_AUTH_KEYPICLAW_INTERNAL_SECRETPICLAW_WEB_INTERNAL_SECRETweb.internalSecretfrom/workspace/.piclaw/config.json
Prerequisites
wkhtmltopdfmust be installed and onPATH- the piclaw web server must be running locally
Notes
- The script is read-only: it does not modify SQLite or auth/session state.
- The HTML export endpoint is
GET /internal/export/timeline. - The script writes an HTML sidecar next to the PDF for inspection.