draft-doc

draft-doc is a skill for Claude Code, Codex from fmind/dot. It costs 26 tokens per session (1,534 once invoked), scanned A, original, MIT.

A document tool for creating and updating Google Docs files in Google Drive. It can use Markdown, a plain-text document format, and add Mermaid or SVG diagrams when preparing deliverables.

In plain words
What is it for?
Use it to draft reports, update existing Google Docs, and produce documents with outlines, diagrams, comments, or revision-friendly updates.
Why use it?
It provides a defined way to choose document formats and update files without manually handling Google Drive and Docs request details. It also applies available writing and visual-style guidance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to draft reports, update existing Google Docs, and produce documents with outlines, diagrams, comments, or revision-friendly updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fmind/dot/draft-doc
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.

Any agent
npx skills add fmind/dot --skill draft-doc
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for draft-doc

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/draft-doc/github.svg)](https://agentmods.dev/skills/fmind/dot/draft-doc)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/draft-doc"><img src="https://agentmods.dev/badge/skills/fmind/dot/draft-doc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for draft-doc

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/draft-doc"><img src="https://agentmods.dev/badge/skills/fmind/dot/draft-doc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,534 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00026 $0.01534
Opus 5.5 $0.00010 $0.00614
Sonnet 5.5 $0.00005 $0.00307
Haiku 4.5 $0.00003 $0.00153

Measured today against content hash 36448af846de, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

draft-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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/compile_markdown_doc.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/draft-doc/SKILL.md · 66 lines

How it starts

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

Draft Doc

Create and update Google Docs deliverables in Google Drive with gws, following stakeholder-writing (outlines, style, checklist). gws owns authentication, Drive queries, and request mechanics.

Format Choice

  1. Native Drive Markdown (.md, mimeType: text/markdown) for living docs: use it for agent-maintained, frequently updated, or working documents. It opens in the Docs editor (https://docs.google.com/document/d/<FILE_ID>/edit) without conversion and updates in place with drive.files.update --upload, without batchUpdate index math.
  2. Converted Google Doc (.gdoc, mimeType: application/vnd.google-apps.document) for polished deliverables: use it for client or stakeholder documents that need styling, and for multi-tab documents. Editing a .md file in Docs turns smart chips into text or links and removes font colors, highlights, and text alignment (Docs Help 18289341). Build it through gws Docs recipes.

Branding

Style SVG cards and Mermaid diagrams with ~/.agents/DESIGN.md (Fmind Theme) and the Mermaid frontmatter in fmind-visuals renderers, or with the customer's brand guide when the deliverable is theirs. Ask for a missing guide; never invent customer colors or mix brands. Keep an opaque white canvas so figures stay legible in dark mode.

Native .md Dialect Rules

references/dialect.md records what Docs renders, verified live on 2026-10-28; scripts/compile_markdown_doc.py enforces these rules:

  1. No YAML frontmatter or Setext underlines: --- or === directly under a paragraph line makes it a heading. Put metadata lines below # Title and leave a blank line before a horizontal rule.
  2. No GitHub alerts, raw HTML, or HTML comments: they render as literal text. Use a bold blockquote (> **Important — Decision needed by YYYY-MM-DD:** ...), ## Annex headings, and \ for hard line breaks.
  3. Compile figures to PNG references: Docs shows fenced mermaid blocks as code. Author fenced mermaid blocks or local ![Caption](figure.svg) links to 600 px wide SVGs in .src.md; the compiler renders each one to a PNG at most 600 px wide, because Docs displays PNG pixels at 0.75 pt each and ignores DPI metadata. It then writes ![Caption][fig-N] in the body, appends [fig-N]: <data:image/png;base64,...> definitions, and exports editable sources to --assets-dir. Mermaid runs through a pinned mise exec Mermaid CLI, so no global install is needed.
  4. Verified natively: ATX headings, ordered lists, checklists, GFM tables, footnotes, $...$ and $$...$$ equations, and Base64 PNG reference images.

Read the full file on GitHub · 66 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · -4 lines · -10 tokens per session 36448af846de
  2. yesterday First seen · 70 lines · 36 tokens per session scan A 5cc6c880dbaa

Subscribe to this mod's changes

draft-doc is a skill published in the GitHub repository fmind/dot (12 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 1,534 once invoked, about $0.0001 per session on Opus 5.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-10-28.

Related

Other skills, from other repositories

google-workspace-cli

Use gws across Workspace APIs with schema-first calls, profile isolation, bounded reads, and verified Drive, Docs, Sheets, Gmail, Calendar, or Chat writes.

fmind/dotfiles · 38 tokens

dotfiles-bootstrap

Bootstrap a workstation with the dotfiles framework. Takes a GitHub user / owner+repo / explicit clone URL and runs dot config init (which shells out to chezmoi) with the right safety prompts. Honors the active agent profile (ask / plan / apply / audit) so it defaults to dry-run in safer modes and full apply in apply.

sebastienrousseau/dotfiles · 89 tokens

vibe

Delegate a coding task to a cheap AI model (Mistral Vibe by default, but any provider Vibe knows about — DeepSeek, Gemini Flash, etc.) and supervise the result via git diff. Claude orchestrates, the cheap model codes. Claude consumes 500-1500 tokens per delegation regardless of how many file reads the delegate does…

sebastienrousseau/dotfiles · 137 tokens

go-stack

Build Go projects, libraries, CLIs, TUIs, web apps, or ADK agents with the standard package layout and pinned tooling.

fmind/dotfiles · 31 tokens

python-stack

Build typed Python projects with uv, Ruff, ty, pytest, Litestar, and Typer. Use for packages, CLIs, web apps, tests, typing, or API verification.

fmind/dotfiles · 41 tokens

hugo

Canonical Hugo static-site stack with the Hextra docs theme — Hugo Modules, mise tasks, dprint, lefthook, and GitHub Pages deploy. Use for documentation sites, project docs, and static websites.

fmind/dotfiles · 46 tokens