Document Design Foundation

Document Design Foundation is a skill for Claude Code, Codex from eddiebelaval/squire. It costs 19 tokens per session (4,740 once invoked), scanned A, original, MIT.

A shared design system and workflow for generating documents such as PDFs, reports, presentations, spreadsheets, and Word files. It defines consistent styling and explains how those documents should be produced.

In plain words
What is it for?
Use it when creating styled reports, PDFs, presentations, spreadsheets, or other documents from scratch.
Why use it?
It helps document-generation tools create consistent, usable output instead of each document having unrelated formatting and processes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions Claude Code.

Good fit Use it when creating styled reports, PDFs, presentations, spreadsheets, or other documents from scratch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eddiebelaval/squire/document-design-foundation
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 eddiebelaval/squire --skill document-design-foundation
Clone the repo
git clone --depth 1 https://github.com/eddiebelaval/squire

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 Document Design Foundation

README.md
[![agentmods](https://agentmods.dev/badge/skills/eddiebelaval/squire/document-design-foundation/github.svg)](https://agentmods.dev/skills/eddiebelaval/squire/document-design-foundation)
Your own site
<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.

agentmods 80×15 button for Document Design Foundation

Your own site · 80×15
<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>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,740 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00019 $0.04740
Opus 5.5 $0.00008 $0.01896
Sonnet 5.5 $0.00004 $0.00948
Haiku 4.5 $0.00002 $0.00474

Measured 2mo ago against content hash db572335e456, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skills/document-design-foundation/SKILL.md · 571 lines

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

  1. Analyze the input and context
  2. Validate prerequisites are met
  3. Execute the core operation
  4. Verify the output meets expectations
  5. 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)

Read the full file on GitHub · 571 lines

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. 2mo ago First seen · 571 lines · 19 tokens per session scan A db572335e456

Subscribe to this mod's changes

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.

Related

Document Design Foundation compared with skills from other repositories

Document Design Foundation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Document Design Foundationeddiebelaval/squireSkill212mo agoMITA19Claude Code, Codex
design-systemmartineserios/thebranaSkill3todayMITA44Claude Code
extract-designManavarya09/design-extractSkill4.8kyesterdayMITA140Claude Code
designlang-tokensManavarya09/design-extractSkill4.8kyesterdayMITA30Claude Code
mck-ppt-designlikaku/Mck-ppt-design-skillSkill3343d agoApache-2.0A207Claude Code, Codex
brandmdyuvrajangadsingh/brandmdSkill71yesterdayMITA41Claude Code
google-fontssliday/google-fonts-skillSkill194d agoMITA117Claude Code