SuperAPI AI Directory

poffice-office-craft

Office & productivity

View repository

Updated 11-02 05:54

About this skill

Poffice Office Craft (Agent Skill)

Document creation on a Poffice host where ArtCraft CLIs and office-api are installed.

When to use

  • Create or edit Word / Excel / PowerPoint / PDF
  • Publish into Drive and return an Office open_url
  • Rich formatting → Craft CLI/MCP; simple templates → Office API + agent key

Auth (required for Drive publish)

Prefer a long-lived agent API key:

  1. Admin creates a key in Workspace → Settings → Agent API tokens
    (https://workspace.poffice.online/dashboard/settings)
  2. Or use bootstrap env POFFICE_AGENT_TOKEN on the host
export OFFICE_API_URL=https://office.poffice.online   # or http://office-api:8090
export POFFICE_AGENT_TOKEN=…                          # never commit

curl -sS -H "X-Api-Key: $POFFICE_AGENT_TOKEN" "$OFFICE_API_URL/api/auth/agent"

Also accepted: Authorization: Bearer … / Agent ….

Binaries (server)

App CLI MCP
Word wordcraft-cli wordcraft-cli mcp
Excel gridcraft-cli gridcraft-cli mcp
PowerPoint deckcraft-cli deckcraft-cli mcp
PDF pdfcraft-cli pdfcraft-cli mcp --root DIR

Install path: /opt/craft-cli/bin/ (also on PATH via /usr/local/bin).
MCP I/O root: craft-workspace/ (in/, out/).

Cursor / MCP

Project config: .cursor/mcp.json (servers wordcraft, gridcraft, deckcraft, pdfcraft). Reload MCP after install.

claude mcp add wordcraft -- wordcraft-cli mcp \
  --automation-read-root /path/to/craft-workspace \
  --automation-write-root /path/to/craft-workspace/out

Repeat for gridcraft-cli, deckcraft-cli, and pdfcraft-cli mcp --root ….

CLI quick patterns

wordcraft-cli convert craft-workspace/in/notes.txt craft-workspace/out/notes.docx
gridcraft-cli convert craft-workspace/in/data.csv craft-workspace/out/data.xlsx
gridcraft-cli eval '=SUM(1,2,3)'
deckcraft-cli --help
pdfcraft-cli --help

Publish to Drive + open_url

# Preferred helper (uses POFFICE_AGENT_TOKEN)
python3 scripts/poffice_office.py create-pptx \
  /Decks/Q1.pptx "Q1 Review" \
  '[{"title":"Agenda","bullets":["Wins","Risks"]}]'

python3 scripts/poffice_office.py publish \
  craft-workspace/out/notes.docx /Reports

POST /api/documents with X-Api-Key and kind: pptx | docx | xlsx | pdf.

Browser edit: open returned open_url while signed into workspace
(https://office.poffice.online/?app=…&repo=…&path=…).

Recommended workflow

  1. Create/edit with Craft MCP or CLI → craft-workspace/out/
  2. poffice_office.py publish (or POST /api/documents)
  3. Give the human the open_url
  4. Saves sync to Drive and Docs (Paperless) automatically

Related

  • Broader admin skill: poffice-admin (npx skills add thierryteisseire/poffice-workspace@poffice-admin)
  • UI guide: Workspace → Agent skills (/dashboard/agents)
  • Token UI: Workspace → Settings (/dashboard/settings)