paper-doc
Skill1 starsChanged 14 days agoMITView on GitHub
Generate documentation, specs, reports, architecture explainers, RFCs, briefs, and summaries as polished paper-and-ink HTML documents. Use for paper-doc requests or when the user wants the IcePanel prep aesthetic, an editorial document webpage, or interactive C4 documentation. Includes the theme, components, and dependency-free C4 explorer.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- backlog-refineSkill
- burndownSkill
- code-reviewSkill
- dev-cycleSkill
- issue-diagnoseSkill
- issue-implementSkill
- issue-planSkill
- issue-raiseSkill
- issue-refineSkill
- project-statusSkill
- qaSkill
- setupSkill
- weekly-reviewSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Choose a shape: Read document recipes. Lead with the conclusion or decision, then provide the detail that supports it.
- Distinctive: line 24
Start from the real assets: Read design system. Resolve this skill's directory from the loaded skill location, then run:
- Distinctive: line 40
Keep the theme and useful components.
- Distinctive: line 41
Use HTML escaping for interpolated text.
- Very specific: line 45
Add diagrams only when useful: Read C4 contract before changing model.js.
- Distinctive: line 70
Prefer prose, ruled tables, and columns to a wall of cards.
- Distinctive: line 72
Use motion to orient: subtle reveals and diagram transitions.
- Distinctive: line 76
No em or en dashes in authored copy.
≈ “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
Paper Doc
Turn source material into a readable, evidence-backed technical document using
the bundled paper-and-ink design. The default deliverable is a portable folder
with index.html that opens directly through a file:// URL. The appearance
comes from the assets, not from reinterpreting a style description each time.
Workflow
- Establish the document. Infer audience, purpose, document type, and output
location from the request. Read the consuming project's
AGENTS.mdand its relevant source material. Resolve project facts there; ask for missing facts that affect the document rather than inventing them. A pasted brief can be sufficient source material. Preserve explicit format requests; when editing an existing Markdown/Word/Google document, do not silently replace it with HTML. - Choose a shape. Read document recipes. Lead with the conclusion or decision, then provide the detail that supports it. Use only sections and interactions that help this particular reader.
Start from the real assets. Read design system. Resolve this skill's directory from the loaded skill location, then run:
python <skill-dir>/scripts/scaffold.py <output-dir> --title "Document title" --kind spec python <skill-dir>/scripts/scaffold.py <output-dir> --title "Architecture guide" --kind documentation --c4--kindacceptsdocumentation,spec, orsummary. The scaffold refuses a nonempty destination. Use the project interpreter (python3on systems withoutpython) or copy the template assets with your file tools if Python is unavailable. The script prints the exact file URL.assets/template/index.htmlis also a complete, directly openable design specimen.- Author the document. Replace the specimen prose, metadata, sources, checklist items, and example architecture with the user's actual content. The generated heading outline is a starting point, not completed writing. Keep the theme and useful components. Remove filler and unused controls. Use HTML escaping for interpolated text; render untrusted source snippets as text, not executable markup. Keep main content in semantic HTML so it remains readable without JavaScript. Use a short masthead title with an italic phrase where natural; long technical titles can use a smaller heading.
- Add diagrams only when useful. Read C4 contract before
changing
model.js. Reusec4.jsandc4-ui.js, which implement the actual explorer from the reference design. They use native SVG and browser APIs, not Mermaid, D3, Pixi, or an IcePanel SDK. Use one shared model with several views, directional relationships, and optional runtime flows. Mark proposed or illustrative designs explicitly. Verify current architectures against source files. C4 is optional for a summary, release note, or decision memo. - Verify in the browser. Open the output's
file://URL directly, without launching a server. Check desktop and a narrow mobile viewport, keyboard navigation, source links, print styling, and console errors. For a diagram, test inspect, drill down/up, tags, supporting systems, vocabulary, fit/zoom, flow steps, arrow text, and DSL export. Check reduced motion and confirm essential prose remains visible with JavaScript disabled. If browser tools cannot open file URLs, report that limitation rather than claiming visual QA. - Deliver. Return the path and file URL, briefly identify the included sections and diagrams, and describe any unresolved source gaps. Keep the entire output folder together because scripts/styles use relative paths.
Design contract
- Warm textured paper, off-white sheets, dark ink, fine rules, restrained red.
- Newsreader for editorial headings and ledes; Inter for reading and controls; JetBrains Mono for metadata, labels, code, and identifiers. All have fallbacks.
- Preserve the masthead, double-rule separators, numbered section eyebrows, generous spacing, small-radius cards, and subtle shadow from the specimen.
- Prefer prose, ruled tables, and columns to a wall of cards. Do not turn the document into a generic dashboard, neon landing page, or pill-heavy UI.
- Use motion to orient: subtle reveals and diagram transitions. Respect reduced motion in both CSS and JavaScript. No automatic decorative animations.
- Give every diagram a title, scope, key, date/status, and readable relationships. Colours reinforce shapes and labels rather than replacing their meaning.
- No em or en dashes in authored copy. Use commas, colons, parentheses, or hyphens.
Runtime and portability
The package has no npm dependencies or build step. Classic scripts load in this
order: document.js, model.js, c4.js, c4-ui.js (all deferred). The last
three and c4.css are optional. Avoid ES module imports and fetch() for local
document data because file-origin restrictions vary between browsers.
Google Fonts are the only default external requests. Offline rendering uses
local fallback fonts; exact offline typography needs locally bundled licensed
font files and @font-face. The runtime never fetches the original prep page.
Checklist storage is document-scoped and best-effort. Text and controls keep
working when storage, clipboard, or fullscreen APIs are unavailable.
Bundled resources
| Resource | Purpose |
assets/template/index.html | Working visual specimen and semantic component examples |
assets/template/theme.css | Exact core palette, typography, paper texture, layout, components, responsive and print styles |
assets/template/document.js | Reading progress, section tracking, reveals, notes toggle, checklist persistence, lightbox |
assets/template/c4.css | Graph-paper canvas, SVG notation, inspector and flow styling |
assets/template/c4.js | Model-driven SVG engine: hierarchy, roll-ups, pan/zoom, flows, DSL |
assets/template/c4-ui.js | Reusable explorer toolbar, inspector, tags, breadcrumbs, export dialog |
assets/template/model.js | Fictional, explicitly labelled C1/C2/C3 example to replace |
scripts/scaffold.py | Portable, dependency-free starter generation |
references/design-system.md | Tokens, composition rules, component markup, extraction provenance |
references/document-recipes.md | Documentation, spec, summary, and ADR structures |
references/c4.md | Model schema, layout, JS API, limitations, and QA checklist |
evals/evals.json | Representative authoring prompts for later skill evaluation |
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.

