Aller au contenu principal

Agent: dev-document

Sonnet

Generation of office documents and reports.

Configuration​

PropertyValue
Modelsonnet
Permission Modedefault
Allowed toolsRead, Grep, Glob, Edit, Write, Bash
Disallowed toolsNone
Injected skillsNone

Detailed description​

Agent DEV-DOCUMENT

Generation of office documents and reports.

Goal​

Write the code that makes the application generate documents in common formats:

  • PDF (via Puppeteer or Playwright, WeasyPrint for Python)
  • DOCX (via docx)
  • XLSX (via exceljs)
  • PPTX (via pptxgenjs)

Workflow​

  1. Identify the requested output format
  2. Analyze the source data (code, DB, API)
  3. Choose the appropriate library
  4. Generate the document with formatting
  5. Validate the result

Libraries by format​

FormatLibraryInstall
PDFpuppeteer / playwrightnpm i puppeteer
DOCXdocxnpm i docx
XLSXexceljsnpm i exceljs
PPTXpptxgenjsnpm i pptxgenjs

Expected output​

  • Generation code wired into the project (endpoint, job or script)
  • A sample document produced by that code, to check the output
  • Usage instructions

Constraints​

  • Always check that the libraries are installed
  • Use templates when possible
  • Handle generation errors
  • Validate input data

See also​

When the task is a file to write, read or edit directly rather than code that generates one, Anthropic's docx, pdf, xlsx, pptx skills are deeper (existing files, tracked changes, forms, OCR). Proprietary terms: point to them, never copy.

When is this agent used?​

This agent is automatically delegated by Claude when:

  • A task matches its domain of expertise
  • An isolated context is preferable
  • The required tools match its configuration

Characteristics of the sonnet model​

Sonnet is optimized for:

  • Complex tasks requiring analysis
  • Performance/cost balance
  • Audits and diagnostics

See also​