draft-doc
Skill13 starsChanged 4 days agoMITView on GitHub
Create and update Google Docs with gws: Markdown with Mermaid/SVG figures or .gdoc.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- fmind/dotfilesword for word, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 1
- fmind/dotfiles★ 13100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dot_agents/AGENTS.mdAGENTS.md
- skills/repository-docs/references/agents.mdAGENTS.md
- chezmoiSkill
- dot-developmentSkill
- dot-releaseSkill
- dot-skillsSkill
- dot-verifySkill
- acliSkill
- agent-evaluationSkill
- agent-frameworksSkill
- agent-harnessesSkill
- agent-projectSkill
- agent-protocolsSkill
- agySkill
- airflowSkill
- auth-statusSkill
- awsSkill
- bfSkill
- chrome-devtoolsSkill
- clipboardSkill
- cloud-runSkill
- code-securitySkill
- colabSkill
- databricksSkill
- diagrams-as-codeSkill
- dockerSkill
- documentation-siteSkill
- dot-cliSkill
- dprintSkill
- draft-mailSkill
- duckdbSkill
- fmind-visualsSkill
- full-reviewSkill
- gcloudSkill
- ghSkill
- git-deliverySkill
- github-actionsSkill
- github-issuesSkill
- github-pull-requestSkill
- github-repositorySkill
- google-developerSkill
- gwsSkill
- hfSkill
- infra-as-codeSkill
- kaggleSkill
- kubernetesSkill
- lesson-learnedSkill
- mcp-setupSkill
- miseSkill
- model-providersSkill
- playwrightSkill
- project-scaffoldingSkill
- python-mlopsSkill
- python-stackSkill
- python-webSkill
- repository-docsSkill
- scheduled-jobsSkill
- skillifySkill
- <name>Skill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Create and update Google Docs deliverables in Google Drive with gws, following stakeholder-writing (outlines, style,
- Very specific: line 37
Confirm account and destination: check gws auth status without printing credentials, and resolve the target Drive folder ID or existing …
- Very specific: line 52
Add --doc-name to an update only to rename the document.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- 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 withdrive.files.update --upload, withoutbatchUpdateindex math. - 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.mdfile 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:
- No YAML frontmatter or Setext underlines:
---or===directly under a paragraph line makes it a heading. Put metadata lines below# Titleand leave a blank line before a horizontal rule. - No GitHub alerts, raw HTML, or HTML comments: they render as literal text. Use a bold blockquote (
> **Important — Decision needed by YYYY-MM-DD:** ...),## Annexheadings, and\for hard line breaks. - Compile figures to PNG references: Docs shows fenced
mermaidblocks as code. Author fencedmermaidblocks or locallinks 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 pinnedmise execMermaid CLI, so no global install is needed. - Verified natively: ATX headings, ordered lists, checklists, GFM tables, footnotes,
$...$and$$...$$equations, and Base64 PNG reference images.
Workflow
- Confirm account and destination: check
gws auth statuswithout printing credentials, and resolve the target Drive folder ID or existing file ID with a boundedgws drive files listquery. Author
.src.mdand.svgfigures in a scratch folder (SCRATCH: the host's scratchpad, elseSCRATCH="$(mktemp -d)"), then compile, validate, and upload withscripts/compile_markdown_doc.py:# Create or upsert <Title>.md and assets/<doc-slug>/ in a Drive folder uv run --no-project python ~/.agents/skills/draft-doc/scripts/compile_markdown_doc.py \ "$SCRATCH/report.src.md" -o "$SCRATCH/report.md" \ --drive-folder "<FOLDER_ID>" --doc-name "<Title>.md" --json # Update an existing .md in place: keeps its name, URL, revisions, and assets/<slug of its Drive name>/ uv run --no-project python ~/.agents/skills/draft-doc/scripts/compile_markdown_doc.py \ "$SCRATCH/report.src.md" -o "$SCRATCH/report.md" \ --file-id "<FILE_ID>" --jsonAdd
--doc-nameto an update only to rename the document. To compile without uploading, omit the Drive flags and pass--assets-dir "$SCRATCH/assets/<doc-slug>";--check-onlyvalidates an already compiled.md(or one.svg) without rendering, so it rejects a.src.mdthat still holds figures.- Verify by reading back:
gws docs documents get --params '{"documentId":"<FILE_ID>","includeTabsContent":true}'works on native.mdfiles; confirm headings,inlineObjects, footnotes, and tables. Reportdrive.docs_urlanddrive.assets_folder_url.
Gotchas
- Keep
mimeType: text/markdownon upload:application/vnd.google-apps.documentconverts the file into a.gdoc, which drops equations to literal$...$text. - Never widen sharing without approval: uploads inherit the parent folder's permissions; ask before calling
drive.permissions.create. - Download
.mdinstead of exporting it:drive.files.exportrejects native.mdfiles ("Export only supports Docs Editors files"); fetch the source withdrive.files.getandalt=media.
Documentation
- Docs Help: View and edit Markdown files in Google Docs · Workspace Updates, 2026-10-05: Markdown files natively across Drive and Docs · dialect and figure reference
- Companion skills: stakeholder-writing (structure, prose, and reader check), diagrams-as-code (Mermaid and SVG authoring), gws (Workspace CLI and
.gdocbatchUpdate), draft-mail (Gmail drafts).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

