paperjsx
Skill này làm gì
Skill này giúp agent AI tạo tài liệu văn phòng mới, như bộ slide, báo cáo và bảng tính, từ mô tả JSON. Skill dành cho người cần tạo một file mới từ nội dung của họ.
Khi nào nên dùng
- ✓Khi bạn cần tạo một bộ slide PowerPoint từ các slide bạn mô tả.
- ✓Khi bạn muốn tạo một tài liệu Word hoặc báo cáo PDF từ nội dung có cấu trúc.
- ✓Khi bạn cần một bảng tính Excel có biểu đồ được tạo từ dữ liệu bạn cung cấp.
Liên kết skill
https://github.com/composio-community/awesome-codex-skills/blob/master/paperjsx/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể tạo một bộ slide PowerPoint tên Q4 Review với ba slide từ các ghi chú tôi sắp dán vào không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent viết một bố cục JSON mô tả tài liệu, chạy một script nhỏ để chuyển nó thành file, rồi kiểm tra file đã được tạo. Công cụ chỉ tạo file mới và không chỉnh sửa file đã có.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Nó có thể chỉnh sửa file hiện có không?
Không. Skill chỉ dùng để tạo file mới.
Nó có thể tạo những định dạng nào?
Nó có thể tạo file PowerPoint, Word, Excel và PDF.
Agent có cần cài gói không?
Có. Nó cài gói cho định dạng bạn cần trước khi tạo file.
Chi tiết
Mô tả gốc của tác giả
Generate PPTX presentations, DOCX documents, XLSX spreadsheets, and PDF reports from structured JSON input using PaperJSX.
Độ phổ biến
- Sao GitHub
- 17k
- Vị trí xếp hạng
- #10757
- Giấy phép
- —
- Cập nhật
- 25/7/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-deep-links
17kGiúp agent của bạn tạo liên kết có thể nhấp để mở trực tiếp một chuỗi, file, thư mục hoặc cài đặt trong ứng dụng như Codex hoặc Cursor.
brand-guidelines
17kGiúp agent của bạn định dạng sản phẩm với màu sắc và phông chữ theo phong cách OpenAI, để khớp với giao diện của Codex.
codebase-migrate
17kGiúp agent của bạn lập kế hoạch và chạy các đợt di chuyển mã lớn qua hàng trăm file, như nâng cấp framework hoặc đổi tên API.
connect-apps
17kCho phép agent của bạn thực hiện hành động thật trong các ứng dụng như Gmail, Slack và GitHub, chẳng hạn gửi email hoặc tạo issue.
Skill tương tự
feishu-doc
394kGiúp agent của bạn đọc, tạo và sửa tài liệu đám mây Feishu, gồm văn bản, hình ảnh và bảng, bằng công cụ tài liệu.
feishu-drive
394kCho phép agent của bạn duyệt, sắp xếp và bình luận các file trong một thư mục đám mây Feishu đã được chia sẻ với bot.
feishu-perm
394kGiúp agent của bạn kiểm tra và thay đổi ai có quyền truy cập một file Feishu, chọn quyền nhỏ nhất đáp ứng yêu cầu của bạn.