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.
npx skills add eddiebelaval/squire --skill document-design-foundationgit clone --depth 1 https://github.com/eddiebelaval/squireWrote 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.
[](https://agentmods.dev/skills/eddiebelaval/squire/document-design-foundation)<a href="https://agentmods.dev/skills/eddiebelaval/squire/document-design-foundation"><img src="https://agentmods.dev/badge/skills/eddiebelaval/squire/document-design-foundation/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.
<a href="https://agentmods.dev/skills/eddiebelaval/squire/document-design-foundation"><img src="https://agentmods.dev/badge/skills/eddiebelaval/squire/document-design-foundation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00019 | $0.04740 |
| Opus 5.5 | $0.00008 | $0.01896 |
| Sonnet 5.5 | $0.00004 | $0.00948 |
| Haiku 4.5 | $0.00002 | $0.00474 |
Grade A, and why
Document Design Foundation 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 571 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Document Design Foundation
Core Workflows
Workflow 1: Primary Action
- Analyze the input and context
- Validate prerequisites are met
- Execute the core operation
- Verify the output meets expectations
- Report results
This is the shared design system for all document generation in Claude Code. Every document skill (PDF, Report, Word, Presentation, Spreadsheet) references this foundation for consistent, professional output.
The Golden Rule
When the user asks you to create a document, YOU create it. Do not write a program that creates it.
- Generate a beautifully styled HTML file directly using the Write tool
- Save it to the project directory or
~/Development/artifacts/if no project context - Open it in the browser if the user wants to preview
- Convert to PDF via puppeteer only if the user specifically needs a .pdf file
- Convert to .docx only if the user specifically needs a Word file
Operational Workflow
User says "create a report" or "make a PDF" or "generate a document"
|
v
1. Determine document type and content
2. Choose the right template (see Document Types below)
3. Write a single, self-contained HTML file using the design system below
4. Save to appropriate location
5. If user needs .pdf: convert via puppeteer script
6. If user needs .docx: generate via docx library
7. Tell the user where the file is
Design System
Color Palette
Primary: #1a1a2e (deep navy - headings, primary text)
Secondary: #16213e (dark blue - subheadings)
Accent: #0f3460 (medium blue - links, highlights)
Accent Light: #e8f0fe (pale blue - backgrounds, cards)
Success: #0d7c3d (green - positive metrics)
Warning: #b45309 (amber - caution)
Danger: #b91c1c (red - negative metrics, alerts)
Neutral 50: #fafafa (near white - page background)
Neutral 100: #f5f5f5 (light gray - card backgrounds)
Neutral 200: #e5e5e5 (border gray)
Neutral 400: #a3a3a3 (muted text)
Neutral 600: #525252 (body text)
Neutral 800: #262626 (strong text)
Neutral 900: #171717 (headings)
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.
- 2mo ago First seen · 571 lines · 19 tokens per session scan A db572335e456
Document Design Foundation is a skill published in the GitHub repository eddiebelaval/squire (21 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 4,740 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-09-03.
Document Design Foundation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Document Design Foundationeddiebelaval/squire | Skill | 21 | 2mo ago | MIT | A | 19 | Claude Code, Codex |
| design-systemmartineserios/thebrana | Skill | 3 | today | MIT | A | 44 | Claude Code |
| extract-designManavarya09/design-extract | Skill | 4.8k | yesterday | MIT | A | 140 | Claude Code |
| designlang-tokensManavarya09/design-extract | Skill | 4.8k | yesterday | MIT | A | 30 | Claude Code |
| mck-ppt-designlikaku/Mck-ppt-design-skill | Skill | 334 | 3d ago | Apache-2.0 | A | 207 | Claude Code, Codex |
| brandmdyuvrajangadsingh/brandmd | Skill | 71 | yesterday | MIT | A | 41 | Claude Code |
| google-fontssliday/google-fonts-skill | Skill | 19 | 4d ago | MIT | A | 117 | Claude Code |