# Consumable AI Handbook: guide for agents

Version 1.5.3 (2026-11-30). This is an agent-optimized AI handbook for Consumable: every tool here runs from the CLI, from a deep link, or from JavaScript, and gives back the real output file.

Status: beta. This is a working release, so files, templates and rules may change as it is built out. Fetch the current versions rather than relying on a cached copy.

- **Hosted copy (public):** https://handbook.consumable.com. Start at https://handbook.consumable.com/llms.txt. Every rule, template and tool file is plain text or JSON you can fetch without JavaScript.
- **Local copy (to render files yourself):** download `consumable-brand-book.zip`, unzip it, and run `node cb.mjs --help` inside the folder. You can also serve it with `python3 -m http.server 8000` and open http://localhost:8000.
- **Manifest:** `tools.json` lists every tool, param, allowed value, default, export format and example.
- **Locked models:** `deck-templates.json` (slides) and `social-templates.json` (social cards).
- **Brand rules (machine-readable):** `brand/brand-rules.json`. The human versions are `brand/brand-rules.md`, `brand/design-system.md` and `logos/LOGO_USAGE.md`.
- **Org skills for Claude and ChatGPT:** https://handbook.consumable.com/#/skills has the Claude org skill (`downloads/consumable-ai-handbook-claude-skill.zip`, Agent Skills format) and the ChatGPT package (`downloads/consumable-ai-handbook-chatgpt.zip`: the same skill for ChatGPT workspace Skills, plus a Custom GPT fallback), with install steps for admins.
- **Icons:** https://handbook.consumable.com/#/icons has every icon already in use (website UI, handbook interface, official Signal marks and favicons, and official partner app icons), with SVG and PNG downloads. Machine-readable index: `icon-library/manifest.json`. Download all: `downloads/consumable-icons.zip`. Official files only, copied unchanged. Do not invent icons that are not in the library.
- **Skills:** `skills/consumable-brand-book/SKILL.md` (this guide as a skill), `skills/16-9-slide-grid-rules/SKILL.md` and `skills/vertical-rhythm-spacing/SKILL.md`.

## 0. Remote use: point your agent at the URL

How it works: the handbook holds the rules, tokens, logos and locked templates. You share https://handbook.consumable.com with your assistant (Claude, ChatGPT, Codex or Claude Code). It reads /llms.txt, the rules and the templates, fills the template slots with your copy, and checks the brand rules. You open its link and export a PNG, PDF or HTML.

Steps for an agent with web fetch (no JavaScript needed):
1. Fetch https://handbook.consumable.com/brand/brand-rules.json and https://handbook.consumable.com/deck-templates.json (or https://handbook.consumable.com/social-templates.json).
2. Build a deck JSON like https://handbook.consumable.com/samples/sample-deck.json, using only each template's slots and staying inside maxChars and maxLines. Apply every rule in section 2 yourself, because you can't run the validator without a browser.
3. Hand it back:
   - **Review link:** `https://handbook.consumable.com/#/deck-builder?deck64={DECK64}` opens the deck in the Deck builder. The person sees any rule problems and exports from there.
   - **Download link:** `https://handbook.consumable.com/?tool=deck-builder&deck64={DECK64}&export=pdf` downloads the file in the person's browser. `deck={URL-ENCODED-JSON}` also works.
   - **Social card link:** `https://handbook.consumable.com/?tool=social-card&size=1080x1350&template=stat&value=3h%2055m&label=...&source=Source%3A%20Nielsen&export=png`
   - **Blog cover link:** `https://handbook.consumable.com/?tool=image-asset&variation=D&title=Why%20addressability%20in%20audio%20matters&pattern=ripple&colorway=marble-tonal&export=webp`
   - **Page share image link:** `https://handbook.consumable.com/?tool=image-asset&variation=page&frame=og&title=Find%20new%20customers%20with%20audio%20you%20can%20measure&lines=Find%20new%20customers%20%7C%20with%20audio%20you%20can%20measure&pattern=ripple&colorway=signal-blue-tonal&export=jpg`
   - **Pattern link:** `https://handbook.consumable.com/?tool=pattern&pattern=waveform&colorway=chartreuse-tonal&export=png`
   - **Or** return the JSON and tell the person to paste it into https://handbook.consumable.com/#/deck-builder.
4. To produce the file yourself:
   - **With a headless browser:** open the deep link with `&headless=1` and read `window.CB.lastResult.base64`.
   - **With a shell:** download https://handbook.consumable.com/consumable-brand-book.zip and run `node cb.mjs` (section 3).

There's no server render API, so a fetch-only agent returns links or JSON, never the PNG itself.

Setup by assistant:
- **Whole company (Claude Team or Enterprise, ChatGPT Business or Enterprise):** an admin installs the org skill from https://handbook.consumable.com/#/skills, so everyone gets the handbook without setup.
- **Claude or ChatGPT:**
  - Paste the URL into the chat with web search or fetch on.
  - If browsing is off: in Claude, make a Project; in ChatGPT, make a Custom GPT or Project. Paste the text below the line in `CLAUDE_PROJECT_INSTRUCTIONS.md` into its instructions, then upload the files from `consumable-knowledge.zip`.
- **Claude Code or Codex:**
  - Point it at the URL to read the rules.
  - To render locally: unzip `consumable-brand-book.zip`, run `npm i playwright-core`, then `node cb.mjs --help`.

Example prompts:
- "Use the Consumable AI Handbook at https://handbook.consumable.com (start with /llms.txt) to make a 6-slide deck on Visual Audio. Give me the Deck builder link to export it"
- "Use the Consumable AI Handbook at https://handbook.consumable.com (start with /llms.txt) to make a 1080x1350 social card for this stat: 3h 55m a day with audio, Source: Nielsen"

## 1. What Consumable is (use this when writing copy)

Consumable is an audio ad platform. Sound-on 15 or 30 second audio ads play inside the mobile apps people already use (Words With Friends, MyFitnessPal and others), often with a full-screen tappable visual called Visual Audio. Ads are targeted with podcast-listening data, and results are measured through to visits, purchases and ROAS. Brands buy self-serve in **EASI Ads**, programmatically, or managed.

Live-site copy you can reuse: "Find new customers with audio you can measure", "Reach your listeners wherever they are", "Audio that runs like the rest of your media", "In the apps people already have open", "Start your first audio campaign today", "Set your own budget. Connect your tracking. See what listeners do next."

## 2. Hard brand rules (the validators enforce these)

1. **Schibsted Grotesk only**, at weights 400, 500 and 800. No monospace fonts and no second typeface. The font file is bundled in `fonts/` and embedded in every export.
2. **No trailing periods** on headlines, headers, titles, labels, names or buttons. Body copy can use periods.
3. **No eyebrows.** No small labels, kickers or all-caps tags above a headline. Templates have no slot for them, and unknown slots are rejected.
4. **No dashed boxes and no hard black dividers.** Use 1px `#ddded6` hairlines and soft-ring cards. Flat colour only; the only exception is the Chartreuse highlight marker.
5. **Official logos only.** Use the files in `logos/`, which show the Signal mark: one dot sending out two sound waves. Never redraw, retype, outline, stretch or recolour parts of a logo. **No F1 logo**, ever.
6. **Spell it EASI Ads.**
7. **No unsourced stats.** Every number needs a short source line on the same slide or card, such as "Source: Nielsen". Approved example: **3h 55m** a day with audio, "Source: Nielsen".
8. **Positive-only messaging.** Never knock competitors or other channels. Don't name iHeart, Cumulus or Audacy. Soften commute, upper-funnel and CPA claims. No Shopify App Store claim; write "Integrate with Shopify".
9. **Signal Blue is #2665d6.** The other colours are Ink #1e2330, Marble #f3f3f1, Chartreuse #d2e823, Forest #254f1a and White.
10. **Approved logo pairings only:**
    - White or Chartreuse on Signal Blue
    - Forest on Chartreuse
    - Chartreuse on Forest
    - Ink on Marble
    - Signal Blue on White or Marble

    Ink grounds carry no logo. Each tool picks the right logo colour for the ground.
11. **Sentence case** everywhere. Use the highlight marker on at most one phrase per slide or card: `==like this==`.

If validation rejects your input, fix the copy. Don't try to work around the grid. When content doesn't fit, cut copy or split the slide. Nothing is ever auto-shrunk.

## 3. Three ways to run a tool

### CLI (recommended for agents)
```
node cb.mjs list
node cb.mjs describe deck-builder
node cb.mjs templates            # deck templates, slots, limits, grid
node cb.mjs templates --social   # social sizes and templates
node cb.mjs rules                # brand rules as JSON
node cb.mjs validate-deck deck.json
node cb.mjs deck-builder --deck deck.json --export pdf --out deck.pdf
node cb.mjs social-card --size 1080x1350 --template stat --value "3h 55m" --label "The average time Americans spend with audio every day" --source "Source: Nielsen" --out stat.png
node cb.mjs styleguide --export zip --out consumable-styleguide.zip
node cb.mjs image-asset --variation D --title "Why addressability in audio matters" --pattern ripple --colorway marble-tonal --export webp --out cover.webp
node cb.mjs image-asset --variation cobrand --partnerLogo partner-white.png --field gradient --gradient blue-ink --out cobrand.png
node cb.mjs pattern --pattern waveform --set brand-kit --colorway kit-forest-chartreuse --width 2400 --height 1350 --out waveform.png
node cb.mjs validate image-asset --variation D --title "..."   # check any tool's params without exporting
node cb.mjs batch jobs.json      # [{"tool","params","export","out"}] in one browser
```
- **Requirements:** Node 18+ and Playwright. Run `npm i playwright-core` if Chrome is installed, or `npm i playwright && npx playwright install chromium`. The CLI serves the folder on 127.0.0.1 by itself and needs no network.
- **Exit codes:**
  - 0: ok
  - 1: error
  - 2: usage
  - 3: rejected by validation. A JSON list of `{path, code, message, fix}` is printed on stdout.
- **Params:** `--grid`, `--no-grid` and `--scale 3` (1 to 4, default 2). JSON params take a file path, inline JSON or `-` for stdin. `@file` reads a text param from a file. Image slots in a deck, and image params (`--partnerLogo`, `--background`), can be local file paths or https links; they get inlined.

### Deep links (https://handbook.consumable.com or a local server)
```
/?tool=<slug>&<param>=<value>&export=<format>[&headless=1]
/t/<slug>/?<param>=<value>          (redirects to the above)
/#/<slug>?<param>=<value>           (opens the tool prefilled)
```
- **Without `export`:** the link opens the tool prefilled, so a person can review it.
- **With `export`:** the file downloads.
- **With `headless=1`:** the result is stored in `window.CB.lastResult` (`{ok, filename, mime, base64, warnings}` or `{ok:false, errors}`) and `<html data-cb-done="1">` is set. This form is for browser automation.
- **Deck builder input:** pass `deck={URL-ENCODED-JSON}`, `deck64={DECK64}` or `deckUrl={same-site path}`.

Examples:
```
/?tool=social-card&size=1080x1080&template=headline&headline=Reach%20your%20listeners%20%3D%3Dwherever%20they%20are%3D%3D&cta=consumable.com&export=png
/?tool=deck-builder&deckUrl=samples/sample-deck.json&export=pdf
/?tool=styleguide&export=zip
/#/social-card?template=stat&size=1080x1350&value=3h%2055m&label=Average%20time%20with%20audio%20every%20day&source=Source%3A%20Nielsen
```

### JavaScript (window.CB)
```js
await CB.ready;
CB.list();                         // tools and exports
CB.describe('social-card');        // full manifest entry
CB.templates(); CB.socialTemplates(); CB.rules();
CB.validateDeck(deck);             // {ok, errors, warnings, slides}
CB.validateSocial(params);         // {ok, errors, warnings}
CB.validateTemplates();            // grid checker
const r = await CB.run('deck-builder', {deck}, {format: 'pdf', as: 'base64', scale: 2});
// r = {ok, filename, mime, base64, bytes, warnings, slides}; as: 'base64' | 'blob' | 'dataUrl'
CB.deepLink('social-card', {template: 'stat', value: '3h 55m'}, 'png');
```
If input is rejected, `CB.run` throws an Error with `.code = 'rejected'` and `.errors = [{path, code, message, fix}]`.

## 4. Tools

### styleguide: style guide export
Exports the design system as **zip** (everything: tokens, rules, grids, logos and the font), **json** (tokens, rules and grids), **md** (rules, design system and logo usage) or **css** (`@font-face`, tokens and components; `--no-components` leaves the components out).

### deck-builder: Consumable 16:9 decks
- **Input:** `{name, runningTitle, slides:[{template, slots, ground?, footer?}]}`. The `{format:"consumable-deck", v:1, deck:{...}}` wrapper is optional.
- **Exports:**
  - **png:** one slide when you pass `--slide N`, otherwise a zip of PNGs
  - **pdf:** lossless, one page per slide
  - **html:** standalone, with the font embedded
  - **zip:** PNGs, PDF, HTML and the deck JSON
  - **json:** the validated deck
- **Resolution:** 1920x1080 times the scale, so 3840x2160 by default.
- **Grid (locked):** 1920x1080 with 120px margins, a 1680x840 live area, 6 columns of 240px with 48px gutters, and a 24px baseline with 72px majors. That gives 35 rows. Every line-height and block height is a multiple of 24, and stack gaps are 24, 48 or 72. The footer (runningTitle on the left, slide number on the right) belongs to the deck, and a slide can only hide it. `--grid` draws the overlay.

| Template | Slots (required in bold) | Grounds |
|---|---|---|
| `title` | **headline** (64 chars, 3 lines, highlight), subtitle (140, 2 lines), meta (48) | signal, forest, marble |
| `section` | **headline** (60, 3 lines, highlight), lede (150, 3 lines) | ink, signal, forest |
| `stat` | **value** (8 chars), **label** (90, 3 lines), **source** ("Source: ..."), context (220, 9 lines) | marble, white, signal |
| `quote` | **quote** (180, 5 lines, highlight), **name**, role, source | white, marble, signal |
| `image-text` | **image** (URL, data URL, site path, or `preset:apps`), **headline** (70, 4 lines, highlight), body (260, 8 lines), source | marble, white |
| `closing` | **headline** (64, 3 lines, highlight), body (140, 2 lines), cta (40) | signal, forest, chartreuse |

`preset:apps` draws eight official app icons around the white Signal mark on a Signal Blue tile, on the blue-tint panel. Run `node cb.mjs templates` for the exact limits.

Example deck (`samples/sample-deck.json`):
```json
{"name": "Consumable sample deck", "slides": [
 {"template": "title", "slots": {"headline": "Find new customers with ==audio you can measure==", "subtitle": "The audio ad platform that makes it easy to reach listeners wherever they are", "meta": "consumable.com"}},
 {"template": "stat", "slots": {"value": "3h 55m", "label": "The average time Americans spend with audio every day", "source": "Source: Nielsen"}}
]}
```

### social-card: social cards
- **Sizes:**
  - `1080x1080`: square
  - `1080x1350`: portrait 4:5
  - `1080x1920`: story or reel. The top 216px and bottom 360px stay clear of the platform UI.
  - `1200x628`: landscape link card or LinkedIn
- **Templates:**
  - `headline`: headline, body, cta and source
  - `stat`: value, label and source (source required)
  - `quote`: quote, name, role and source
- **Grounds:** auto, signal, marble, white, ink, forest, chartreuse. Each template allows a subset.
- **Logo:** `--logo auto|lockup|mark|none` and `--logoColor auto|white|signal|ink|chartreuse|forest`. Approved pairings only.
- **Exports:** png (at size times the scale, default 2), html or json.

### image-asset: cover and share image
Built only from the Consumable blog cover system (Nov 11 2026, `blog-cover-system/coverlib` and the cover guidebook). The browser code (`cover/cover-system.js`) is a line-by-line port of that Python, and every table it uses (`cover/cover-system.json`) is exported from the Python. Nothing is designed here.
- **Variations:** `D` (centred title on a pattern or effect), `C` (official partner logo on a pattern or effect), `cobrand` (Consumable lockup, 40% hairline, official partner logo, or the partner name as text when no mark may be used; on a blurred photo, a Signal gradient, a pattern or an effect), `A` (graded scene with a partner logo or a title) and `page` (page share image: the lockup and the page H1). Variation B, the Consumable logo alone, is retired and not offered.
- **Frames:** `cover` composes at 3200x1600 and exports 1600x800; `og` composes and exports at 2400x1260 with the subject inside the centred 1260 square.
- **Field:** `pattern` (`--pattern`, `--colorway` from the cover colourways), `effect` (`radiate|envelope|swell|wash`, `--ground`), `gradient` (`blue-ink|ink-blue|blue-chartreuse`, cobrand only) or `photo` (`--background`, `--tint`, `--blur`; cobrand and A).
- **Layers:** field, a soft radial veil in the ground colour, then the subject. Nothing is knocked out of the pattern.
- **Type:** Schibsted Grotesk ExtraBold, -0.03em, 1 or 2 balanced lines; the trailing period is dropped. `--lines "Line one | line two"` sets the preferred break on share images.
- **Logos:** the partner's official file only (upload or link). One-colour marks are recoloured to the pairing colour; two-tone files and `--keepColor` keep their colours. No Formula 1 mark.
- **Exports:** png (the master), webp (cover 1600x800 at q80), jpg (q90) or json.

### pattern: the official patterns
- **Patterns:** `broadcast`, `ripple`, `confetti` (events and seasonal only), `waveform`, `halftone`, `supergraphic`. These are the six patterns from the brand kit (Oct 29 2026) and the cover system (Nov 11 2026); the tiles are identical in both and are exported straight from the Python.
- **Colourways:** `--set cover` (default) uses the cover colourways, all tonal, with the cover quieting on (`--no-quiet` for full strength). `--set brand-kit` uses the brand kit colourways (`kit-...`), which include Forest grounds; Forest is not used on blog covers. `--colorway auto` takes the pattern's first official colourway.
- **Frame:** `--width` and `--height` (default 1600x800). The tile is centred and offset exactly as the cover generator does it.
- **Exports:** png (width x height x scale, default 1), svg (the same SVG the Python renders), tile (one repeat unit in the colourway, with its ground) or json. There is no density, rotation or seed control, so a pattern cannot be redrawn.

## 5. Validation error codes
- **Brand:** `no-trailing-period`, `easi-ads-spelling`, `banned-names`, `no-f1-logo`, `positive-only`, `shopify-app-store`, `no-all-caps`, `sourced-stats`, `source_format`
- **Grid and fit:** `text_overflow`, `stack_overflow`, `word_too_long`, `max_chars`
- **Input:** `required`, `image`, `colorway`, `field`, `size`, `background`, `too_long`, `enum`, `unknown_slot`, `unknown_template`, `unknown_key`, `ground`, `logo_pairing`, `highlight_once`, `highlight_not_allowed`, `highlight_ground`, `highlight_unbalanced`, `image_src`, `image_preset`
- **Warnings** (never block): `positive-tone-check`, `soften-claims`, `sentence-case`, `official-images`, `logo_on_ink`, `logo_small`, `clamped`, `official-logo`, `confetti`, `proposed`, `forest`, `one_subject`, `centre`

## 6. Files
```
index.html app.js app.css      human UI (hash routes #/styleguide #/icons #/deck-builder #/social-card #/image-asset #/pattern #/skills #/agents)
cb-core.js                     engine: layout, validation, canvas/HTML painters, PNG/PDF/zip, window.CB
cb.mjs                         CLI
tools.json                     tool manifest
deck-templates.json            locked 16:9 slide foundation and templates
social-templates.json          social sizes, type scale and templates
brand/                         tokens.json, tokens.css, components.css, brand-rules.json/.md, design-system.md
logos/                         official lockup and mark (black, Signal Blue, white; SVG + PNG), LOGO_USAGE.md, usage PDF
fonts/                         Schibsted Grotesk variable (SIL OFL 1.1)
assets/apps/                   official app icons used by preset:apps
samples/                       sample deck JSON and social jobs
skills/                        SKILL.md files
downloads/                     org skill zips for Claude and ChatGPT (see #/skills), and consumable-icons.zip
icon-library/                  icons in use (website, handbook, site marks, partner app icons), manifest.json, SOURCE.md (see #/icons)
t/<slug>/                      path-style deep links (each with its own share title and Open Graph tags)
cover/                         cover-system.js (port of the Nov 11 cover generator), cover-system.json (tiles, colourways and rules exported from it), tiles/, fonts/
og-image.jpg                   share image, rendered by the cover system's own page share template (2400x1260)
favicon.ico, icons/            the consumable.com favicons, copied unchanged
CLAUDE_PROJECT_INSTRUCTIONS.md instructions to paste into Claude / ChatGPT
consumable-knowledge.zip       knowledge files to upload to a Claude Project or Custom GPT
VERSION, CHANGELOG.md          version history (server keeps ~/site-vN-backup copies)
```

## 7. Limits and notes
- Rendering happens in the browser and there's no server API. Fetch-only agents return deep links or deck JSON; agents with a browser or shell can render the files.
- PDF pages are high-resolution images (lossless), not live text. Use the HTML export when you need selectable text.
- Image slots accept any image, but you're responsible for using official, licensed images. Use `preset:apps` for the app wall.
- The quote template is for real quotes only. The sample quotes Consumable's own site copy and is attributed to Consumable.
