Pular para o conteúdo
Skillpedia
PDF, Word e slides260 mil · #497

pptx-author

O que ela faz

Cria um arquivo do PowerPoint a partir de código, indicado para apresentações baseadas em modelos, como pitch decks, memorandos de investimento e notas de resultados. É indicado para analistas e equipes financeiras que precisam que as apresentações batam com os números.

Quando usar

  • ✓Quando você precisa de um arquivo .pptx entregue a partir de um modelo ou de uma planilha.
  • ✓Quando está fazendo um pitch deck, um memorando para comitê de investimento ou uma nota de resultados cujos números precisam bater.
  • ✓Quando quer uma apresentação construída como arquivo, e não dentro de uma sessão ao vivo do PowerPoint.

Link da skill

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/finance/pptx-author/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/NousResearch/hermes-agent/blob/main/optional-skills/finance/pptx-author/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

“Transforme os números desta planilha de modelo em um pitch deck de dez slides salvo como arquivo do PowerPoint.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente escreve um script Python com a biblioteca python-pptx para criar os slides e salva a apresentação em uma pasta de saída. Ele devolve o caminho do arquivo para você abrir.

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

Texto original do autor, em inglês, direto do GitHub.

pptx-author

Produce a .pptx file on disk using python-pptx. Use when you need to deliver a deck as a file artifact, not drive a live PowerPoint session.

Adapted from Anthropic's pptx-author and pitch-deck skills in anthropics/financial-services. The MCP / Office-JS branches of the originals are dropped — this assumes headless Python.

For the broader, already-shipped PowerPoint authoring skill (slides, speaker notes, embeds, media), see the built-in microsoft-office skill. This skill is a lighter-weight pattern tuned for model-backed decks (pitch decks, IC memos, earnings notes) where every number must trace to a source workbook.

Output contract

  • Write to ./out/<name>.pptx. Create ./out/ if it does not exist.
  • Return the relative path in your final message.

Setup

Use python when it already imports pptx (the Hermes Docker image ships it). Otherwise, when hermes is on PATH, let Hermes build its shared, pinned documents environment under the Hermes home (safe to run from several agents at once); in a Docker sandbox without Hermes the block builds a venv in the sandbox home with the same pinned versions. It is the same block as the microsoft-office/pdf skills. Never pip install into the interpreter that runs Hermes:

python -c "import pptx" 2>/dev/null && PY=python || if command -v hermes >/dev/null 2>&1; then
  PY="$(hermes pm environment documents --extra documents --extra documents-pdf)"
else
  PY="$HOME/.cache/hermes-docs-venv/bin/python"
  "$PY" -c "import docx, openpyxl, pptx, reportlab, pypdf, pdfplumber, pypdfium2" 2>/dev/null || (
    # Safe to run from several agents at once: each caller builds a private venv,
    # a symlink publishes the first finished one atomically, the others delete theirs;
    # a published build is replaced and deleted only while it still fails to import.
    mkdir -p "$HOME/.cache" && cd "$HOME/.cache" && stage="$(mktemp -d hermes-docs-venv.XXXXXX)" || exit 1
    old="$(readlink hermes-docs-venv)"  # the published build, if any (another agent may have just published it)
    python3 -m venv "$stage" &&
      "$stage/bin/python" -m pip install -q --disable-pip-version-check python-docx==1.2.0 openpyxl==3.1.5 python-pptx==1.0.2 reportlab==5.1.0 pypdf==6.21.2 pdfplumber==0.11.10 pypdfium2==5.14.0 &&
      "$stage/bin/python" -c "import docx, openpyxl, pptx, reportlab, pypdf, pdfplumber, pypdfium2" &&
      if [ -z "$old" ]; then python3 -c 'import os, sys; os.symlink(*sys.argv[1:])' "$stage" hermes-docs-venv
      elif [ "$(readlink hermes-docs-venv)" = "$old" ] && ! "$old/bin/python" -c "import docx, openpyxl, pptx, reportlab, pypdf, pdfplumber, pypdfium2" 2>/dev/null; then
        ln -s "$stage" "$stage.lnk" && python3 -c 'import os, sys; os.replace(*sys.argv[1:])' "$stage.lnk" hermes-docs-venv &&
          case "$old" in hermes-docs-venv.??????) rm -rf "$old" ;; esac
      fi 2>/dev/null
    [ "$(readlink hermes-docs-venv)" = "$stage" ] || rm -rf "$stage" "$stage.lnk"
  )
fi
export PY

Run the deck-building Python with "$PY".

Core conventions

One idea per slide

Title states the takeaway; body supports it. A slide titled "Q3 Revenue" is weak; "Revenue growth accelerated to 14% Y/Y in Q3" is strong.

Every number traces to the model

If a figure on a slide came from ./out/model.xlsx, footnote the sheet and cell.

Revenue: $1,250M  (Source: model.xlsx, Inputs!C3)

Never transcribe numbers from memory or from a summary — open the workbook, read the named range, and bind the deck value to it programmatically when you can.

Use the firm template when one is mounted

If ./templates/firm-template.pptx exists, load it so the deck inherits branded colors, fonts, and master layouts.

from pptx import Presentation
from pathlib import Path

template = Path("./templates/firm-template.pptx")
prs = Presentation(str(template)) if template.exists() else Presentation()

Charts: PNG-from-model beats native pptx charts

When fidelity matters (the model's chart styling must match the deck exactly), render the chart to PNG from the source workbook and embed the image. Native pptx.chart charts are fragile and often don't match firm conventions.

from pptx.util import Inches
slide.shapes.add_picture("./out/charts/football_field.png",
                         Inches(1), Inches(2),
                         width=Inches(8))

No external sends

This skil

Perguntas frequentes

Existe uma skill separada para o PowerPoint?

Sim. A skill aponta para a skill microsoft-office para slides gerais, notas do orador e mídia.

Precisa do PowerPoint instalado?

Não. Ele grava o arquivo .pptx diretamente com Python.

Onde a saída é salva?

Em uma pasta out dentro do diretório de trabalho.

Detalhes

Descrição original do autor

Build PowerPoint decks headless with python-pptx.

repo: NousResearch/hermes-agent

Popularidade

Estrelas no GitHub
260 mil
Posição no ranking
#497
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas