Agent Context. Organized.
Your master reference for the three-layer context stack that powers every Claude Code conversation. Every file, every role, every rule — all in one place.
Architecture
Three-Layer Stack
Layer 1 — Global
~/.claude/CLAUDE.md — Who you are, how you work, universal rules. Loaded in every conversation, every directory.
↓
Layer 2 — Project
~/project/CLAUDE.md — How to build in this repo. Tech stack, structure, deployment. Loaded when you're in the project directory.
↓
Layer 3 — Design
~/project/DESIGN.md — Visual language for design work. Colors, typography, components, spacing. Agent reads before any visual output.
Open Claude Code
→
Global CLAUDE.md loads
→
Project CLAUDE.md loads
→
"Design something" → reads DESIGN.md
→
Agent knows everything
Global Files
Always Loaded
CLAUDE.md
~/.claude/CLAUDE.md
Your identity. Loaded in every conversation regardless of directory.
# Global Claude Code Rules — Jeff (BZY Design) ## Who I Am Solo designer running BZY Design. Claude Code is my primary design tool — I create HTML-based deliverables (one-pagers, websites, landing pages, apps, decks, logos) directly in the terminal. Not deeply technical with CLI — give me things that just work. JetBrains Mono is my signature font. Aesthetic: ultra-minimal, restrained, professional. ## Communication - Concise, no fluff - Always use full absolute filepaths — never shortened or relative - Always give complete, copy-pasteable commands — include cd /path/to/dir && command every time - High-level explanation of what changed at each step ## Code Philosophy - Simplicity above all — every change should impact as little code as possible - Think through the problem first, read relevant files - Check in with me before major changes - Never speculate about code you haven't read ## Design Philosophy - Apple-level quality. Every frame should survive a design review at Apple. - One hero moment per frame. Don't compete for attention. - Restraint over spectacle. No glows, gradients, or effects that feel "techy." - Vertical + horizontal balance. Nothing top-heavy or shoved into a corner. - Breathing room. Generous margins (120-160px on 1920px canvases). - Graduate type sizes — don't jump from 40px to 120px. - No orphan words. Adjust max-width, rewrite, or use <br>. - Every pixel considered. No dead zones, no accidental gaps. - Always create new design versions — never overwrite. ## Design Review — MANDATORY Before presenting ANY design version, run a minimum 3-pass internal design review as an Apple lead designer. Pass 0 — Screenshot (headless Chrome, ground truth) Pass 1 — Structure & Layout (containers, fill, distribution) Pass 2 — Spacing & Alignment (gaps, typography, contrast) Pass 3 — Visual Fidelity (colors, radius, weights, clipping) Only present after you would sign off on it yourself. ## Style Copy Loop Pull exact specs from Figma using get_design_context first. Build → Compare → List differences → Fix → Repeat (up to 5 rounds). ## Reference Image Verification Implement → Screenshot → Compare side-by-side → Fix before showing. "Like this" means exactly like that. ## Deployment & Infrastructure - Wildcard domain: *.bzy.design - Static sites: GitHub (jsbzy) → Vercel - DNS is pre-configured, just set the subdomain ## Design Files Convention When a project has a DESIGN.md, read it before any visual work. DESIGN.md = visual language. CLAUDE.md = build instructions. ## Available Skills - svg-precision — deterministic SVG generation - svg-icon-generator — auto-activating for SVG work - remotion-best-practices — Remotion video rules
settings.json
~/.claude/settings.json
Tool connections — MCP servers, plugins, permissions.
MCP Servers: obsidian — Personal notes at ~/notes driftgrid — Custom server via ~/drift/mcp/server.ts pencil — Encrypted .pen file editor Plugins: figma — Figma MCP (read/write canvas) frontend-design — Frontend design generation Settings: effortLevel: high Pencil MCP: auto-allowed
MEMORY.md
~/.claude/projects/-Users-jeffbzy/memory/MEMORY.md
Project index. One-line pointers to context files.
# Project Memory ## Projects — Context Locations - RecovryAI: ~/dev/clients/recovryai/CLAUDE.md + DESIGN.md - DriftGrid: ~/driftgrid/CLAUDE.md - Health In Harmony: repo jsbzy/health-in-harmony Domains: hih-toc-cards.bzy.design (v4 primary) ## WanderPins (mobile — no CLAUDE.md yet) - Android onboarding broken - Confirm platform before OTA - Stash before OTA push - Never push with .env.local - Always mention target platform - Manifesto reference in Obsidian ## System - Global rules: ~/.claude/CLAUDE.md - Maintenance log: ~/.claude/maintenance-log.md - New project checklist: plan noble-beaming-adleman.md
Slash Commands
Workflows
/new-project
~/.claude/commands/new-project.md
Guided setup for new client or personal projects.
Step 1 — Where does this project live? Client (~/dev/clients/) or Personal (~/dev/projects/) Step 2 — What is this project? One-paragraph description Step 3 — DriftGrid? Default: yes. Scaffolds manifest, concept-1/v1, canvas type. Standalone dir still created for non-design assets. Step 4 — Tech stack Static HTML / Next.js / Remotion / React Native / Other Step 5 — Design details Mood, brand color, fonts, light/dark, references, canvas type (if DriftGrid) Step 6 — Deployment Vercel (*.bzy.design) / Expo/EAS / TBD / Other Step 7 — Review and create Creates: CLAUDE.md + DESIGN.md + DriftGrid scaffold Updates: MEMORY.md index
/resume-project
~/.claude/commands/resume-project.md
Get back up to speed on any existing project.
Step 1 — Which project? Lists all indexed projects, or name/path one Step 2 — Context health check Scans for CLAUDE.md, DESIGN.md, DriftGrid state, git history, project structure. Shows status card: CLAUDE.md: ✓ / ✗ DESIGN.md: ✓ / ✗ DriftGrid: ✓ (concepts, versions, last activity) / ✗ Skills: list or "none" Last activity: from git log Step 3 — Fill gaps Missing CLAUDE.md? → Drafts from codebase scan Missing DESIGN.md? → Extracts from existing CSS/HTML Not in DriftGrid? → Offers to scaffold All set? → Brief summary of current state Step 4 — What do you want to work on? If DriftGrid: suggests latest version, client feedback review, or new iteration
Active Projects
Index
RecovryAI
~/dev/clients/recovryai/
CLAUDE.md
DESIGN.md
DriftGrid
~/driftgrid/
CLAUDE.md
DESIGN.md
Health In Harmony
jsbzy/health-in-harmony
CLAUDE.md
DESIGN.md
WanderPins
~/dev/projects/wanderpins/
CLAUDE.md
DESIGN.md
DESIGN.md — The 9-Section Format
Example: RecovryAI
RecovryAI DESIGN.md
~/dev/clients/recovryai/DESIGN.md
Full brand system — the model for all project DESIGN.md files.
## 1. Visual Theme & Atmosphere FDA Breakthrough Device. Clinical precision meets compassionate care. Light-first. Restraint over spectacle. Cognitive Gentleness — post- surgery patients on pain meds need minimal decisions, large touch targets, one question at a time. ## 2. Color Palette & Roles Teal (primary accent) #3EB5A6 highlights, accents, the dot Teal (dark variant) #33B6B0 icon/mark fills Background #F5F7FA page backgrounds Surface (cards) #FFFFFF with rgba(0,0,0,0.08) border Text: #1a1a1a / #444 / #777 / #999 Semantic: Amber #D97706 / Green #059669 / Red #DC2626 Rule: Teal is the ONLY accent. No other colors. ## 3. Typography Rules Draft: IBM Plex Mono (headings) + IBM Plex Sans (UI) Status: Open for exploration on new projects Rules: Graduate sizes, no orphans, teal highlights on key words ## 4. Component Stylings Wordmark: lowercase recovry.ai, teal dot before "ai" Logo system: 13 variants in brand/logos/ The Sparkle: 4-point diamond in #33B6B0 (brand signature) Cards: white bg + rgba(0,0,0,0.08) border ## 5. Layout Principles Space = clinical confidence. 120-160px margins. One hero moment per frame. Light mode default. ## 6. Depth & Elevation Subtle borders, no heavy drop shadows. Grid texture at 96px intervals. FadeUp animations with staggered delays. ## 7. Do's and Don'ts DO: Teal for highlights only. Light mode. Real SVG logos. DON'T: Teal as background fill. Other accents. "Recovery" with e. Dark mode as primary. Overclaim FDA status. ## 8. Responsive Behavior Patient-facing: mobile-first, large touch targets, single-column Marketing: responsive, stack on mobile ## 9. Agent Prompt Guide Brand: RecovryAI (one word, capital R, capital AI) Voice: Clinical precision. "Physician-prescribed." Assets: ~/dev/clients/recovryai/brand/
DESIGN.md Template
Use this when creating a new project's DESIGN.md
The 9-section skeleton. Fill what you know, leave the rest.
# {Project Name} — Design System ## 1. Visual Theme & Atmosphere {Mood, density, philosophy — what should this feel like?} ## 2. Color Palette & Roles {Semantic roles, hex values, light/dark mode rules} | Role | Hex | Usage | |------|-----|-------| ## 3. Typography Rules {Font families, size hierarchy, weight rules} ## 4. Component Stylings {Buttons, cards, inputs, navigation — with states} ## 5. Layout Principles {Spacing scale, grid systems, whitespace philosophy} ## 6. Depth & Elevation {Shadow systems, surface hierarchy, layering} ## 7. Do's and Don'ts {Design guardrails — always do / never do} ## 8. Responsive Behavior {Breakpoints, touch targets, collapse strategies} ## 9. Agent Prompt Guide {Quick reference: brand name, key colors, voice, asset paths}
Memory System
Cross-ProjectMemory holds only what doesn't belong to any single project: external references, temporary rules for projects without their own CLAUDE.md, and the project index. Everything else lives in project files.
| File | Purpose | Status |
|---|---|---|
| MEMORY.md | Project index — pointers to CLAUDE.md/DESIGN.md locations | Active |
| feedback_android_onboarding.md | WanderPins — tooltip library broken on Android | Temp |
| feedback_confirm_platform.md | WanderPins — always ask iOS or Android before OTA | Temp |
| feedback_stash_before_ota.md | WanderPins — eas update bundles working tree | Temp |
| feedback_env_local_ota.md | WanderPins — .env.local breaks production OTA | Temp |
| feedback_mention_platform.md | WanderPins — state iOS or Android when building | Temp |
| reference_wanderpins_manifesto.md | WanderPins — Obsidian manifesto + Kepano tweets | Temp |
Temp files migrate to WanderPins CLAUDE.md once that project gets set up. Previously 23 files — cleaned to 7 on April 1, 2026.
Quick Reference
Cheat Sheet| I want to... | Do this |
|---|---|
| Start a new project | Type /new-project in Claude Code |
| Resume a cold project | Type /resume-project in Claude Code |
| Update a brand/design system | Edit the project's DESIGN.md directly |
| Add a universal preference | Edit ~/.claude/CLAUDE.md |
| Add project-specific rules | Edit the project's CLAUDE.md |
| Remember something cross-project | Memory files — only for external refs or temp rules |
| Check system health | Read ~/.claude/maintenance-log.md |
| Add a new skill | Global: ~/.claude/skills/{name}/SKILL.mdProject: ~/project/.claude/skills/{name}/SKILL.md |
| Agent doesn't know something | That info is in the wrong place — move it to CLAUDE.md or DESIGN.md |
| System feels messy | Memory > 10 files? Migrate to project files. MEMORY.md > 30 lines? Consolidate. |
The Rules
5 PrinciplesRule 1
Brand and design info goes in DESIGN.md, not memory. If you're writing colors, fonts, or components — it's a DESIGN.md.
Rule 2
Build instructions go in CLAUDE.md, not memory. If you're writing "how to run/deploy/build" — it's a CLAUDE.md.
Rule 3
Memory is for cross-project observations that don't belong to any single project: external references, temporary rules, user profile.
Rule 4
One source of truth per fact. If something exists in DESIGN.md, it shouldn't also exist in memory or a different CLAUDE.md.
Rule 5
MEMORY.md is an index, not a document. One line per project pointing to where context lives.
Skills & Tools
Available| Skill | Location | Scope |
|---|---|---|
| svg-precision | ~/.claude/skills/svg-precision/ | Global |
| svg-icon-generator | ~/.claude/skills/svg-icon-generator/ | Global |
| remotion-best-practices | ~/.claude/skills/remotion-best-practices/ | Global |
| drift | ~/driftgrid/.claude/skills/drift/ | DriftGrid |
| MCP Server | Purpose |
|---|---|
| Figma | Read/write Figma canvas, design context, screenshots, variables |
| DriftGrid | Custom server for design iteration platform |
| Obsidian | Personal notes at ~/notes |
| Pencil | Encrypted .pen file editor |