- Published on
CH2. docs-style: Rules for Documents Other People Read
- Authors

- Name
- seren-wib
Contents
0. Introduction
Part 2 of the skills series. What a skill is, and why these rules moved out of the instruction file, is in CH0. Skills Overview.
The rules for documents (plan pages, report format, the language of public docs, Google Docs image tips) were scattered across several global memory files. They only matter when writing a document, so I gathered them into one skill that loads only then.
In restaurant terms, it is recipe cards for each kind of dish pinned on the kitchen wall, where you take down only the card for the dish you are cooking. The stack of cards is the docs-style skill, the kinds of dish are the kinds of document, and one card is one ## section of SKILL.md.
docs-style is the skill opened right before writing a document. It holds six groups of rules: plan pages and checklists, option comparisons, the language of public repo docs, file formats, building school reports, and Google Docs gotchas. Over two weeks and seven commits it moved the source of school reports from Google Docs to local files. The size history is in the table in section 7.
1. What the skill covers
The six groups docs-style covers and the two places it hands off to other skills
Normally the agent sees only the one-line description in the frontmatter, and opens the body when it is about to write a plan doc, a checklist, an option table, a README or CONTRIBUTING, or a report for submission.
The skill was created in a commit on 2026-11-13. Before that, the same rules lived in separate global memory files (report-doc-format, the public-doc language rule, Google Docs image tips and so on). The commit message gives one reason: these rules only matter for one kind of task, so they should load only when that task comes up. Why the report format rules existed in the first place is recorded in the old memory file as "got corrected on every item of an assignment document."
Where it overlaps with other skills, it hands off with a one-line pointer.
- Stage documents (SPMP, SRS, SDD, STP, SIP, SMP) and decision records go to the
project-docsskill. Why decision records live inside the SDD is in Project Docs 0. - README layout goes to the
readme-styleskill (CH3). - Blog posts go to the
blog-postskill (CH1).
2. Plan pages and checklists
One TODO list ticked off in place instead of lists split by person
A plan page is one TODO list, and finished items are ticked with the Markdown task list - [x]. There are three rules.
- No person's name anywhere, mine included. Lines like "owner: ○○○" or "for ○○ to do" are out.
- One list. No "done / who does what" split; finished items are checked where they are. Groups are by phase or place only ("prep", "at school (per PC)", "check"). When the device matters, prefix it ("desktop:").
- Role tables a team defines in its own repo docs are outside this rule. If unsure, ask.
The team documents rule added the same day sits here too. Before changing a document a teammate owns, report whose it is, where it is and what would change, then wait for an answer. This line came from tidying a team assignment's combined document, where teammates' sections had to be shortened to fit the page limit (old memory record).
3. Option comparisons
For an option comparison table or list there are two rules.
- Every drawback that matters gets its own bullet, with the concrete consequence. Several costs are never shrunk into one soft phrase.
- Before finishing, check that every cost of an option mentioned in chat is also in the document.
The second rule follows from comparisons happening in conversation first. If a cost said in chat drops out on the way into the document, anyone reading only the document later never learns about it. The specific incident behind this rule is not recorded. The format for keeping rejected options and their reasons in decision records is in the entry shape in Project Docs 0.
4. Language and file formats
Language rules:
- Public documents a visitor reads first (README, CONTRIBUTING, SECURITY, CHANGELOG, PR templates) are in English, and the repo docs say so.
- Planning documents (
docs/specs/), their Google Docs copies, CLAUDE.md, and commit and PR language follow the repo's own rule.
The file format rules came in on 2026-11-27.
- A document is a docx and a sheet is an xlsx, built locally. I open them in Google Docs and Sheets through Drive.
- Deliverables are not made as new native Google Docs or Sheets. Existing ones stay as they are.
- Exceptions: Markdown in a repo, the repo → Google Docs sync in
project-docs(Project Docs 1), and documents teammates edit together. - On the Mac, the iCloud Drive
UNIV/folder shows in Drive under "Computers → mac → UNIV". It was the only folder Google Drive for desktop had added on that Mac (checked 2026-11-27), and the Drive API reports those copies ascanEdit: false. The Windows side has not been checked.
5. Building school reports
A build pipeline from an HTML source and a build script to docx and PDF, with Google Docs dropped as the source
A report starts as one HTML body, the build script turns it into a docx, and that is converted to a PDF. To fix something, you don't edit the docx; you fix the source and build again.
- The source stays local: one HTML body and one build script (
hwN-body.html+hwN-docx-build.js). The script builds the docx with the npm packagesdocxandnode-html-parser. Figures are referenced by file path. - For the PDF, a copy with fonts swapped is converted through
soffice(바탕 → AppleMyungjo, Consolas → Menlo, 맑은 고딕 → Apple SD Gothic Neo). Why the fonts are swapped is not written in the skill (not recorded). - If the course folder has its own
CLAUDE.md, it wins over this section.
Why Google Docs stopped being the source
The first rule (2026-11-13) was to build reports in Google Docs and export them to PDF. On 2026-11-25 the default moved to a local source, and the skill keeps three reasons measured on a cloud computing assignment.
- A Doc with screenshots returns over 400k characters per
read_doc. The local HTML source is about 30k characters. - Every fix repeats read, write and re-check.
- Conversion drops the TOC heading ids, and the API can't restore them.
The same conclusion showed up earlier in that course folder's memory. On 2026-10-04 there is a record of trying to edit HW3 in Google Docs and going back to docx, and from then on cloud computing reports were local docx as an exception in the course CLAUDE.md. The 11-25 commit promoted that exception to the default and deleted the exception sentence. Text-only reports are built locally too. Only documents teammates edit together stay in Google Docs.
Page rules
- Page 1 cover: the CBNU (Chungbuk National University) logo, title, course, submission date and authors. Authors are GitHub handles or roles, never real names. The logo line came in on 2026-11-17, when 13 document instructions from that day were checked against the skill and it was one of the 5 found missing.
- Page 2 table of contents: indented headings, no page numbers.
- A big block (a diagram section, a schema or table spec, each algorithm) starts with a page break. To keep a heading from sitting alone at the bottom of a page, headings get keep-with-next.
- Heading levels follow weight. A major component like a Class Diagram or the DB schema is never at the same level as a small subtopic. Sub-sections are numbered like 2-2-1.
- Figures are embedded images in the docx. No links or paths where a figure should be. SVG diagrams are rendered to PNG locally before embedding.
- Section names use the assignment's own wording ("사용자 인터페이스 명세 및 설계", user interface specification and design, not just "wireframe").
- A report built from stage documents has its own source. Docs that the
project-docssync overwrites are never edited. - After building, every page of the PDF is rendered and looked at before reporting.
6. Google Docs gotchas
Converting an SVG from a public repo to PNG through weserv and inserting it with insertInlineImage
The image proxy images.weserv.nl and the format the Google Docs API insertInlineImage accepts are the heart of this section. Even after report sources moved local, these gotchas still show up in Docs shared with teammates and in synced Docs.
insertInlineImagetakes only PNG, JPEG or GIF from a public URL. An SVG in a public GitHub repo goes in ashttps://images.weserv.nl/?url=raw.githubusercontent.com/<owner>/<repo>/<sha>/<path>.svg&output=png&w=1600. The path uses a commit SHA instead ofmain, because weserv caches by URL and amainpath can return an old picture. Fetch it with curl and look at it before inserting. drawio SVGs with Korean text render fine.- Mermaid source is not sent to mermaid.ink without asking. That counts as uploading data, so it is rendered locally.
- To resize an inline image, delete it and insert again with a new
objectSize. About 420-440 pt wide × 300 pt high fits two landscape diagrams on one page. read_file_contentshows bold text inside tables as\*\*text\*\*. Those are not literal asterisks.- A
read_docresult over 1 MB is saved to a file. Extract it with node and find the body after the first HEADING_1 (the TOC lines repeat the headings). The final check is exporting to PDF and rendering every page.
7. Size history of the skill
As of 2026-11-28. Source: git log -- claude/skills/docs-style in the dotfiles repo and git show <commit>:claude/skills/docs-style/SKILL.md | wc -c for each commit.
| Date | Change | Size (bytes) | Lines |
|---|---|---|---|
| 2026-11-13 | Created, moved from global memory | 3,412 | 37 |
| 2026-11-13 | Team documents section added | 3,555 | 40 |
| 2026-11-13 | Line letting the course CLAUDE.md win | 3,686 | 41 |
| 2026-11-16 | Section handing decision records to project-docs | 3,932 | 44 |
| 2026-11-17 | CBNU logo on the cover, separate stage-doc reports | 4,077 | 45 |
| 2026-11-25 | Report source Google Docs → local docx | 4,877 | 48 |
| 2026-11-27 | Documents docx, sheets xlsx, where Drive shows them | 5,497 | 52 |
Seven commits over two weeks, 3,412 → 5,497 bytes (+2,085, about 1.6×). The biggest single change was +800 bytes on 11-25.
8. Reflection
The skill itself has changed by these rules: the reasons for switching the source (400k vs 30k characters, lost heading ids) are kept as measured values, and if those values change again, the rule gets reopened.