Skip to content
Back to skills

Document Writing

ASecurity

Long-form workplace docs as GFM `.md` (default). Not for slide decks or spreadsheets — those are Univer IR / CSV. Edit with write/edit/apply_patch; do not invent parallel JSON docs unless path is already `.udoc.json`.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsgogit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 23, 2026

npx -y skills add danmo-ai/danmo-work --skill document-writing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Document Writing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Document Writing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/danmo-ai-document-writing/badge)](https://www.skillsdirectory.com/skills/danmo-ai-document-writing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: document-writing
source: builtin
description: "Long-form workplace docs as GFM `.md` (default). Not for slide decks or spreadsheets — those are Univer IR / CSV. Edit with write/edit/apply_patch; do not invent parallel JSON docs unless path is already `.udoc.json`."
license: MIT
compatibility: Requires write, edit, apply_patch, read_file
metadata:
  author: danmo-work
  version: "2.0"
  category: work
  adapted_from: "https://github.com/alirezarezvani/claude-skills/tree/main/markdown-html/skills/md-document"
  upstream_license: MIT
---

# Document Writing

> Adapted from alirezarezvani/claude-skills `md-document` (© Alireza Rezvani / contributors, MIT).
> Rewritten for Danmo Work; not a verbatim copy.

## Format matrix (read first)

| Artifact | Extension | Skill |
|----------|-----------|--------|
| Report / RFC / explainer / notes | **`.md`** (GFM) | **this skill** |
| Optional shareable reader | `.html` (read-only export; `.md` stays SoT) | this skill |
| Rich Univer document (from Stage / `.docx` convert) | `.udoc.json` | edit existing path only — see `references/format-matrix.md` |
| Slide deck | `.uslides.json` | `playable-slides` — **never** `*-slides.md` |
| Table | `.csv` or `.usheet.json` | `sheet-writing` |

**Default for new prose is always `.md`.** Do not create `.udoc.json` / `.uslides.json` / `.usheet.json` from this skill unless the user path already is that IR file (office-edit) or they explicitly demand Univer doc IR.

## Hard rules

1. Edit with **`read_file` + `edit` / `apply_patch` / `write`** only.
2. Do **not** `web_search` Univer to invent a document JSON format for a Markdown task.
3. Do **not** deliver a slide deck as Markdown “for Stage”.

## Workflow (new `.md`)

1. Purpose + audience.
2. Outline H1 + H2.
3. Draft GFM Markdown.
4. Self-edit; no TBD.
5. Optional one-file HTML export (inlined CSS; HTML is not SoT).
6. Deliver paths (Files → Doc Stage opens `.md`).

## [office-edit] turns

When `[office-edit]` and `kind: doc`:

1. `read_file` `path`.
2. If path ends with `.md` / `.markdown`: patch Markdown text.
3. If path ends with `.udoc.json`: patch Univer `IDocumentData` inside the Danmo envelope (`danmo.format = "univer-doc"`). Prefer changing `snapshot.body.dataStream` + paragraph indices carefully, or full `write` of a coherent snapshot. Do **not** convert the file to `.md` unless asked.
4. If path is `.docx` / `engine: ms-office`: do not write OOXML; ask to convert to `.udoc.json` first (or stop with blocker).
5. SUMMARY: sections / headings (or IR fields) changed.

## Structure defaults

| Doc type | Skeleton |
|----------|----------|
| Report | Summary → Context → Findings → Recommendations → Appendix |
| RFC / Spec | Status → Motivation → Design → Alternatives → Risks → Rollout |
| Explainer | Problem → Mental model → Walkthrough → Pitfalls → References |

## When not to use

- Slides → `playable-slides`
- Tables → `sheet-writing`
- Code / config → Implementer
- Email polish → Comms tone still OK here, but keep as message text unless asked for a file

## Anti-patterns

- Walls of unsectioned text
- Marp / `type: slides` Markdown
- Claiming done without writing the file
- Web-learning IR schemas instead of tools + references / KB

## Stop condition

Deliver Markdown (and HTML if requested) with a one-line audience + purpose note. Stop.

Files in this skill

  • SKILL.md3.3 KB
  • references/format-matrix.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.