Markdown Documents
Documentsmarkdown-documentsMarkdown Documents is an Agent Skill for documents published in the agent0ai/agent-zero repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when creating or editing Markdown documents, notes, reports, briefs, drafts, or other editable writing where Markdown should be the primary artifact format.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/agent0ai/agent-zero/blob/HEAD/plugins/_office/skills/markdown-documents/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/markdown-documents, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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 OOXML compatibility.
The Editor surface is user-owned UI. Create or update the saved Markdown file, but never open the Editor automatically. Set open_in_canvas: true only when the user explicitly asks to open the canvas/Editor; otherwise already-open Editor sessions refresh automatically. Keep the final response to the saved/updated result and path; do not write faux UI action labels such as "Open document" or "Download file", and do not add a note saying the canvas was not opened automatically unless the user explicitly asks about UI behavior.
Workflow
- 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.
- Create Markdown with
text_editorusingaction: "write"and an explicit.mdpath. - For edits to an existing Markdown file, read first when content matters, then use
patchfor targeted changes orwritefor deliberate full replacement. - Report the saved file path briefly. Do not say it was opened unless the user explicitly opened it.
Minimal create:
{
"tool_name": "text_editor",
"tool_args": {
"action": "write",
"path": "/a0/usr/workdir/Project Brief.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 document-editor workflow.
- Use clear headings and Markdown tables when they improve editability.
- The Markdown Editor surface is available through the response file card.