doc

A guide for drafting, editing, reviewing, and converting rich-text documents such as DOCX files. It considers both the writing and the document’s formatting.

In plain words
What is it for?
Use it to rewrite or review documents, preserve structure, manage formatting-sensitive edits, and convert between DOCX, Markdown, HTML, and plain text.
Why use it?
It makes the tradeoff between changing words and preserving the original layout clear, especially during format conversion.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/openknots/okcode/doc
Any agent
npx skills add OpenKnots/okcode --skill doc
Clone the repo
git clone --depth 1 https://github.com/OpenKnots/okcode

Made for: Claude Code, Codex.

Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 427 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00010 $0.00427
Opus 5 $0.00005 $0.00214
Sonnet 5 $0.00002 $0.00085
Haiku 4.5 $0.00001 $0.00043

Measured 3d ago against content hash d77e4361b3e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

doc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/shared/src/skills-catalog/recommended/doc/SKILL.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Doc Skill

When to use this skill

  • Use when the task involves drafting, editing, reviewing, or converting rich-text documents such as DOCX files.
  • Use when preserving writing quality and document structure matters more than raw plain-text extraction.
  • Use when the user needs help balancing content edits against formatting preservation.
  • Use when a document must be converted between editable and presentation-friendly formats.

What this skill does

  • Helps edit and review document content while being explicit about formatting-preservation limits.
  • Separates writing changes from layout and formatting changes so the user can judge tradeoffs clearly.
  • Prefers reversible workflows when converting between DOCX, Markdown, HTML, and plain text.
  • Keeps tone, structure, and author intent central during review and rewrite tasks.

Implementation

  • Determine whether the user cares most about wording, formatting, comments, tracked changes, or export format.
  • If the task is content-focused, use the most editable intermediate format available and summarize how fidelity may change.
  • If the task is formatting-sensitive, warn early about limitations in round-tripping through simpler text formats.
  • Preserve headings, lists, tables, and section boundaries where possible.
  • When reviewing, summarize substantive content changes separately from formatting or layout issues.
  • If a conversion path may drop tracked changes, comments, footnotes, or advanced formatting, state that explicitly.
  • Keep rewrites concise and aligned to the intended audience unless the user requests a different tone.

Best practices

  • Do not silently flatten rich structure when the original formatting appears important.
  • Prefer reversible edits and keep the original document available.
  • Call out unsupported document features rather than approximating them as if they were preserved.
  • Separate editorial guidance from file-format guidance.
  • When rewriting text, keep the user's target audience and tone explicit.

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 50 lines · 10 tokens per session scan A d77e4361b3e0

Subscribe to this mod's changes

doc is a skill published in the GitHub repository OpenKnots/okcode (24 stars, last pushed 3mo ago), licensed MIT. It adds 10 tokens to every session and 427 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

docx-architecture-audit

Audit the office-open-xml-viewer DOCX layout architecture for a single immutable layout-to-paint pipeline. Use after major DOCX layout, pagination, measurement, paint, parser-model, worker, or compatibility changes, and before declaring Issue.

yukiyokotani/office-open-xml-viewer · 55 tokens

office-artifacts

Use when creating, opening, reading, or editing Office artifacts such as LibreOffice-native ODT/ODS/ODP files and compatibility DOCX/XLSX/PPTX files with the officeartifact tool.

agent0ai/agent-zero · 47 tokens

html-template-authoring

Author or repair a Portwood HTML template that renders correctly through Blob.toPdf (Flying Saucer). Use when writing a new template, converting a design to a template, or fixing one whose PDF output doesn't match the source — collapsed layout, missing images, wrong fonts, broken charts.

Portwood-Global-Solutions/Portwood · 62 tokens

writer-documents

Use when creating, opening, or editing LibreOffice Writer ODT documents, or DOCX documents only when Microsoft Word compatibility is explicitly required.

agent0ai/agent-zero · 32 tokens

hermesoffice-decks

Produce presentations in HermesOffice Slides — the plandeck/generatedeck pipeline, native element editing, and the templates/decks style specs (modern, elegant, professional, keynote-speaker, minimal, tech-dark, investor-pitch, workshop). Load for any request that creates or restyles a deck.

criptogus/HermesOffice · 68 tokens

hermesoffice-documents

Produce and edit Word documents in HermesOffice Docs — block editing, tracked changes, reports, and the templates/docs library (meeting notes, business plan, PRD, decision memo, and more). Load for any request that creates or restructures a document.

criptogus/HermesOffice · 57 tokens