paperjsx
What it does
This skill helps an AI agent create new office documents, such as slide decks, reports and spreadsheets, from a JSON description. It is for people who need a fresh file generated from their content.
When to use it
- ✓When you need a PowerPoint deck created from a set of slides you describe.
- ✓When you want a Word document or a PDF report generated from structured content.
- ✓When you need an Excel spreadsheet with a chart created from data you provide.
Skill link
https://github.com/composio-community/awesome-codex-skills/blob/master/paperjsx/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you create a PowerPoint deck titled Q4 Review with three slides from the notes I'm about to paste?”
5 new skills a week. 1 minute to read.
How it works
The agent writes a JSON layout that describes the document, runs a small script that turns it into the file and then checks that the file was created. The tool creates new files and does not edit existing ones.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
PaperJSX Document Generation
Generate professional documents from JSON layout specs. PaperJSX is generation-only — it creates new files, it does not edit existing ones.
Triggers
Use this skill when the user asks to:
- Create a presentation or generate slides
- Make a PPTX or PowerPoint file
- Create a Word document or DOCX
- Generate an Excel spreadsheet with charts
- Create a JSON to PPTX, JSON to DOCX, or JSON to XLSX file
- Generate a PDF invoice, report, or chart document
Install
Install the format-appropriate package:
# Presentations
npm install @paperjsx/json-to-pptx
# Word documents
npm install @paperjsx/json-to-docx
# Spreadsheets
npm install @paperjsx/json-to-xlsx
# PDF documents
npm install @paperjsx/json-to-pdf
How it works
- Build a JSON layout spec matching the schema in
references/json-schema.md - Write a Node.js script that passes the JSON to the PaperJSX engine
- Run the script to generate the output file
- Validate the output file exists and is non-zero bytes
Do not write imperative PaperJSX API code. The execution model is always: JSON spec in, document file out.
Example: PPTX generation
import { PaperEngine } from "@paperjsx/json-to-pptx";
import fs from "node:fs";
const spec = {
type: "Document",
meta: { title: "Q4 Review" },
slides: [
{
type: "Slide",
children: [
{ type: "Text", content: "Q4 2025 Business Review", style: { fontSize: 36, bold: true } }
]
}
]
};
const buffer = await PaperEngine.render(spec);
fs.writeFileSync("presentation.pptx", buffer);
console.log("Generated presentation.pptx");
Example: DOCX generation
import { renderToDocx } from "@paperjsx/json-to-docx";
import fs from "node:fs";
const result = await renderToDocx({
type: "DocxDocument",
pageSize: "a4",
orientation: "portrait",
pages: [
{
elements: [
{ type: "heading", level: 1, text: "Quarterly Report" },
{ type: "paragraph", text: "Section content here." }
]
}
]
});
fs.writeFileSync("report.docx", result.buffer);
console.log("Generated report.docx");
Example: XLSX generation
import { SpreadsheetEngine } from "@paperjsx/json-to-xlsx";
import fs from "node:fs";
const spec = {
meta: { title: "Revenue Data", creator: "PaperJSX" },
sheets: [{
name: "Revenue",
rows: [
{ cells: [{ value: "Quarter" }, { value: "Revenue" }] },
{ cells: [{ value: "Q1 2026" }, { value: 420000 }] },
{ cells: [{ value: "Q2 2026" }, { value: 510000 }] }
]
}]
};
const buffer = await SpreadsheetEngine.render(spec);
fs.writeFileSync("revenue.xlsx", buffer);
console.log("Generated revenue.xlsx");
Validation
After generating any file, always verify:
import fs from "node:fs";
const stats = fs.statSync("output.pptx");
if (stats.size === 0) {
throw new Error("Generated file is empty");
}
console.log(`Output file: ${stats.size} bytes`);
If the engine throws an error, surface the full error message to the user.
Schema reference
See references/json-schema.md for the complete JSON layout spec schema for all supported formats.
FAQ
Can it edit an existing file?
No. The skill is for generating new files only.
What formats can it make?
It can make PowerPoint, Word, Excel and PDF files.
Does the agent need to install packages?
Yes. It installs the package for the format you need before it generates the file.
Details
Original description by the author
Generate PPTX presentations, DOCX documents, XLSX spreadsheets, and PDF reports from structured JSON input using PaperJSX.
Popularity
- GitHub stars
- 17k
- Ranking position
- #10757
- License
- —
- Updated
- 7/25/2026
Comments
- …
More skills from this repository
agent-deep-links
17kHelps your agent make clickable links that open a thread, file, folder or setting directly in an app like Codex or Cursor.
brand-guidelines
17kHelps your agent style an artifact with OpenAI-style brand colors and fonts so it matches the Codex look and feel.
codebase-migrate
17kHelps your agent plan and run large code migrations across hundreds of files, such as framework upgrades or API renames.
connect-apps
17kLets your agent take real actions in apps like Gmail, Slack and GitHub, such as sending an email or creating an issue.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.