Teaching Claude Code & Artifacts Your Exact Brand Tokens
Stop Claude from defaulting to generic rounded purple SaaS cards. Pack typography, Swiss grid borders, contrast ratios, and PHP/CSS template contracts into CLAUDE.md and MCP-ready rules.
Instant full-chapter reader + downloadable PDF emailed directly · Zero spam · Privacy Policy
✓ Playbook Unlocked
The PB-02 playbook is yours.
Full chapters and checklists are open below, and your styled PDF copy is ready for instant download.
Structuring a Machine-Readable Token Manifest in Your Theme Repo
Key Focus
Expose one canonical variable table covering color roles, type scale clamps, spacing, and z-index layers.
Keep a compact tokens reference listing global CSS custom properties and component class prefixes (`parts/header.php` `.c8hdr-root`, `home.php` `.blog-grid-frame`, `.c8gd-*`) so Claude extends existing selectors rather than inventing duplicate stylesheets.
✓Always place negative visual constraints in the first 30 lines of CLAUDE.md so every prompt inherits them.
Chapter 03
Writing Component Contracts for Mega Menus, Grids & Drawers
Key Focus
Define DOM hierarchy, image aspect ratios (`aspect-ratio: 16/10`), and mobile drawer parity rules.
Specify that any new header item added to `parts/header.php` must include a matching Customizer control in `inc/customizer/panel-header.php`, matching mobile card markup inside `#c8-md-drawer`, and fallback parity inside `parts/header-blog.php`.
An Answer-First Architecture, Part by Part
1
2
3
4
5
1
Buyer Question in H1Direct search or prompt intent matched clearly in the top heading.
2
20–40 Word Entity LeadSelf-contained definition sentence models can lift verbatim.
Semantic Tables & SpecsHTML <table>, <dl> & <ol> data blocks instead of vague marketing prose.
5
Named Author, Date & @graphVerified provenance + connected Organization & Service JSON-LD.
Chapter 04
Preventing WordPress CSS Collisions Across Plugins & Builders
Key Focus
How root namespace wrapping keeps theme styles clean alongside third-party widgets and stacks plugins.
Namespace interactive widgets under dedicated parent roots (e.g. `.c8gd-page`, `.c8hdr-root`, `.blog-grid-section`) and isolate third-party shortcodes so global typography and button resets never break embedded calculators or audit reports.
Chapter 05
Reviewing & Editing Live WordPress Pages Safely With Claude Code
Key Focus
Small scoped diffs, `php -l` syntax checks, and keeping inline critical CSS synced with release packages.
Instruct Claude to target single functions or template parts per diff, escape every output with `esc_html()`, `esc_attr()`, and `esc_url()`, and always run local PHP syntax linting before assembling theme release ZIPs.
Automated Browser Audit Loop After Every Component Change
Key Focus
Pair Claude edits with real Chromium viewport captures at 1440px, 1280px, and 390px before pushing.
Require visual inspection of rendered screenshots on local staging/HTML previews—checking image cropping, zero horizontal overflow, legible contrast, and keyboard escape/focus behavior—before marking any UI change complete.
STEP 01
Prompt Audit
Run your top 20 buyer prompts across ChatGPT, Perplexity, Claude & Google AI.
STEP 02
Log Citations
Record whether your domain is named, which URLs are cited, and who ranks instead.
STEP 03
Compare Delta
Track month-over-month citation share and newly indexed comparison or service pages.
STEP 04
Verify UTM Traffic
Check analytics for referrals tagged utm_source=chatgpt.com and perplexity.ai.
STEP 05
30-Point AEO Scan
Run modified templates through the Cr8v Stacks Free AEO Checker after deploys.
STEP 06
Ship Next Fix
Prioritize 0-point blockers first: crawler blocks, SSR gaps, and missing schema edges.