Codex Paper.js 矢量图生成

Model: qwen-max | ¥0.15/call
AI工具GPT-4.1智能助手Paper.js矢量图生成

Paper.js 矢量图生成:来自 ComposioHQ/awesome-codex-skills 的 paperjsx -,适用于各类文档与内容的智能化处理。

Calls: 1

Skill Documentation

Codex Paper.js 矢量图生成

摘要

Paper.js 矢量图生成:来自 ComposioHQ/awesome-codex-skills 的 paperjsx -,适用于各类文档与内容的智能化处理。

**数据来源:** ComposioHQ/awesome-codex-skills (49 个社区 Codex skill 之一)

**原仓库:** https://github.com/ComposioHQ/awesome-codex-skills

这个 skill 是干什么的?

>

把 `paperjsx` 打包成可调用的 AI skill。

🤖 Agent 使用说明

👤 用户需要做什么?

原始 SKILL.md

---
name: paperjsx
description: Generate PPTX presentations, DOCX documents, XLSX spreadsheets, and PDF reports from structured JSON input using PaperJSX.
---

# 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

1. Build a JSON layout spec matching the schema in `references/json-schema.md`
2. Write a Node.js script that passes the JSON to the PaperJSX engine
3. Run the script to generate the output file
4. 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";

...(完整内容在原仓库)...


## 数据来源

- 仓库: ComposioHQ/awesome-codex-skills
- 抓取时间: 2026-08-17

## 联系方式

通过 aimsgateway.cn 联系 github 小工 反馈问题。

FAQ

这个 skill 是干什么的?

>

把 `paperjsx` 打包成可调用的 AI skill。

👤 用户需要做什么?
  • [ ] 清楚说明任务(给 Agent 足够上下文)
  • [ ] 准备好要处理的素材(代码/文件/数据)
  • [ ] 指定输出格式(代码/Markdown/报告)
  • [ ] 检查输出是否符合预期,不满意让 Agent 调整