Pular para o conteúdo
Skillpedia
PDF, Word e slides17 mil · #10757

paperjsx

O que ela faz

Esta skill ajuda um agente de IA a criar documentos de escritório novos, como apresentações, relatórios e planilhas, a partir de uma descrição em JSON. É para quem precisa gerar um arquivo novo a partir do seu conteúdo.

Quando usar

  • ✓Quando você precisa de uma apresentação do PowerPoint criada a partir de slides que você descreve.
  • ✓Quando você quer um documento do Word ou um relatório em PDF gerado a partir de conteúdo estruturado.
  • ✓Quando você precisa de uma planilha do Excel com um gráfico criado a partir de dados que você fornece.

Link da skill

https://github.com/composio-community/awesome-codex-skills/blob/master/paperjsx/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/composio-community/awesome-codex-skills/blob/master/paperjsx/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Você pode criar uma apresentação do PowerPoint chamada Revisão do Q4, com três slides, a partir das notas que vou colar agora?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente escreve um layout em JSON que descreve o documento, executa um pequeno script que o transforma em arquivo e confere se o arquivo foi criado. A ferramenta cria arquivos novos e não edita arquivos existentes.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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

  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";

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.

Perguntas frequentes

Ela pode editar um arquivo existente?

Não. A skill serve apenas para gerar arquivos novos.

Quais formatos ela cria?

Pode criar arquivos do PowerPoint, Word, Excel e PDF.

O agente precisa instalar pacotes?

Sim. Ele instala o pacote do formato que você precisa antes de gerar o arquivo.

Detalhes

Descrição original do autor

Generate PPTX presentations, DOCX documents, XLSX spreadsheets, and PDF reports from structured JSON input using PaperJSX.

repo: composio-community/awesome-codex-skills

Popularidade

Estrelas no GitHub
17 mil
Posição no ranking
#10757
Licença
—
Atualizada em
25/07/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas