paperjsx
できること
このスキルは、AIエージェントがJSONの記述から、スライド資料、報告書、スプレッドシートなどの新しいオフィス文書を作るよう支援します。自分の内容から新しいファイルを生成したい人向けです。
使う場面
- ✓説明したスライドで構成されたPowerPointのスライド資料を作りたいとき。
- ✓構造化された内容から、Word文書やPDFの報告書を生成したいとき。
- ✓提供したデータを使い、グラフ付きのExcelスプレッドシートを作る必要があるとき。
スキルのリンク
https://github.com/composio-community/awesome-codex-skills/blob/master/paperjsx/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“これから貼り付けるメモから、「Q4 Review」というタイトルの3枚のスライドを含むPowerPointのスライド資料を作成してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、文書を説明するJSONのレイアウトを書き、それをファイルに変換する小さなスクリプトを実行し、ファイルが作成されたことを確認します。このツールは新しいファイルを作るもので、既存のファイルは編集しません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
よくある質問
既存のファイルを編集できますか?
いいえ。このスキルは新しいファイルを作るためだけのものです。
どの形式を作れますか?
PowerPoint、Word、Excel、PDFの各ファイルを作れます。
エージェントはパッケージをインストールする必要がありますか?
はい。ファイルを生成する前に、必要な形式のパッケージをインストールします。
詳細
作者による元の説明
Generate PPTX presentations, DOCX documents, XLSX spreadsheets, and PDF reports from structured JSON input using PaperJSX.
人気
- GitHubのスター
- 17k
- ランキング
- #10757
- ライセンス
- —
- 更新日
- 2026/7/25
コメント
- …
このリポジトリの他のスキル
agent-deep-links
17kエージェントが、CodexやCursorなどのアプリで、スレッド、ファイル、フォルダー、設定を直接開くクリック可能なリンクを作れるよう支援します。
brand-guidelines
17kエージェントが、Codexの見た目に合わせて、OpenAI風のブランドカラーとフォントでアーティファクトを整えられるよう支援します。
codebase-migrate
17kエージェントが、フレームワークのアップグレードやAPI名の変更など、数百のファイルにまたがる大きなコード移行を計画し、実行できるよう支援します。
connect-apps
17kエージェントが、Gmail、Slack、GitHubなどのアプリで、メールの送信やIssueの作成といった実際の操作を行えるよう支援します。
似ているスキル
feishu-doc
394kテキスト、画像、表を含むFeishuのクラウドドキュメントを、ドキュメントツールを使って読み、作成し、編集するようエージェントを支援します。
feishu-drive
394kボットと共有されたFeishuのクラウドフォルダ内のファイルを閲覧、整理、コメントできるようエージェントを支援します。
feishu-perm
394kFeishuのファイルにアクセスできる人を確認し、変更するようエージェントを支援します。依頼を満たす最小の権限を選びます。