Back to Agent Zero

Markdown Documents

plugins/_office/skills/markdown-documents/SKILL.md

1.131.7 KB
Original Source

Markdown Documents

Markdown is the default document format for normal writing, notes, reports, briefs, drafts, and collaborative text work unless the user explicitly asks for a binary office file. When they do ask for a LibreOffice office file, prefer ODF: ODT for Writer, ODS for Spreadsheet/Calc, and ODP for Presentation/Impress. Use DOCX, XLSX, or PPTX only for explicit Microsoft compatibility.

The canvas is user-owned UI. Create or update the saved Markdown artifact, but never open the canvas automatically. The document message will provide explicit Download and Open in canvas actions.

Workflow

  1. Decide whether a saved editable artifact is useful. Create one for substantial, reusable, or collaborative writing; do not create one for tiny one-shot edits or answers that can be completed cleanly in chat.
  2. Create Markdown with document_artifact:create using kind: "document" and format: "md".
  3. For edits to an existing Markdown artifact, read first when content matters, then use document_artifact:edit.
  4. Report the saved file path briefly. Do not say it was opened unless the user explicitly opened it.

Minimal create:

json
{
  "tool_name": "document_artifact:create",
  "tool_args": {
    "kind": "document",
    "title": "Project Brief",
    "format": "md",
    "content": "# Project Brief\n\nDraft text here."
  }
}

Practical rules:

  • Prefer Markdown over ODT/DOCX for writing unless a binary Writer/Word file is explicitly needed.
  • Keep agent-only cleanup simple: if the user asks to fix a typo, update the file and finish; do not force a canvas workflow.
  • Use clear headings and Markdown tables when they improve editability.
  • The custom Markdown editor is available when the user chooses Open in canvas.