Knowledge Share

Supercharging
Claude Code
for Design & Docs

Alfredo Gutierrez

Why I left Figma for Claude Code

1

๐Ÿง  Never misses a detail

Feed it context — meetings, feedback, decisions — and it remembers everything

2

โšก Detailed prototypes, faster

Pixel-perfect UI with realistic scenarios in minutes, not hours

3

๐Ÿ“„ Design + documentation simultaneously

Prototypes and feature specs generated in the same workflow

What we'll learn today

1

๐Ÿง  HOW TO HELP Claude Code
Never miss a detail

2

โšก HOW TO HELP Claude Code
Craft detailed prototypes, faster

3

๐Ÿ“„ HOW TO HELP Claude Code
Design + documentation simultaneously

๐Ÿง  How to help
Claude Code
Never miss a detail

1

/transcribe-meeting command

Transcribes meetings to capture as much context as possible about the project

2

Custom CLAUDE.md

Customizes the project's CLAUDE.md so Claude has the right rules from the start

3

The compaction problem

Prevents Claude Code from losing important details during compaction

4

Start every session with context

Ensures every new session picks up exactly where the last one ended

/transcribe-meeting

A custom command that transcribes a meeting video, summarizes it with AI, and saves the meeting transcription as a markdown file.

๐Ÿ’ป

Zoom Meeting
Requirements, kickoff, etc.

๐Ÿ—ฃ๏ธ

Whisper
Transcription

โœจ

Gemini
Summary

๐Ÿ“

Markdown File
Meeting summary

CLAUDE.md

Purpose of CLAUDE.md

A CLAUDE.md is a slim, imperative instruction file that lives in the root of your project. It tells Claude the rules, stack, and constraints for this specific project โ€” Claude reads it before every task.

VS Code file tree showing CLAUDE.md in project root

Example of CLAUDE.md

# SeedTrust Portal Prototype

 

UI/UX prototype for SeedTrust escrow portal. No backend.

## Domain Context

This is NOT a generic banking app. It's a surrogacy escrow compliance engine.

See PRODUCT.md for terminology, user roles, flows, and design patterns.

## Rules

- Read PRODUCT.md before any product work. Use its terminology exactly.

- Read DESIGN_RULES.md before any UI change. Do not write UI code without it.

- Update FEATURES.md after adding, changing, or removing any feature.

- Update PRODUCT.md when adding roles, flows, or terminology.

- No backend, no auth, no database, no complex state.

## Tech & Deploy

Stack: Vite + React + Tailwind CSS v4 + shadcn/ui

Deploy: npm run build && npx wrangler pages deploy dist

URL: https://seedtrust.pages.dev

PRODUCT.md

Purpose of PRODUCT.md

A PRODUCT.md is a markdown file that lives in the root of your project. It's Claude's source of truth about what you're building โ€” roles, flows, terminology, decisions. Claude reads it before every task.

VS Code file tree showing PRODUCT.md in project root

Example of PRODUCT.md

# SeedTrust Portal

 

What: Escrow management portal for surrogacy journeys

Client: SeedTrust

For: Intended parents, gestational carriers, egg donors, agencies, and internal staff

## Design Vision

Goal: Unified PWA serving two distinct user groups:

1. External Clients โ€” IPs, GCs, Agencies (transparency-focused)

2. Internal Staff โ€” Contracts, Payments, Management (productivity-focused)

 

Core UX Philosophy:

- Event-Driven UI: Interface reacts to surrogacy milestones

- Gamified Productivity: Staff dashboards focus on Velocity and Streaks

- Radical Transparency: Clients need visual timeline of money and journey

- Mobile-First for GCs: Easy receipt upload on mobile

## User Roles

IP (Intended Parent) โ€” View-only financials, journey timeline

GC (Gestational Carrier) โ€” Submit requests, upload receipts (mobile-first)

Egg Donor โ€” Fast receipt upload, payment status (mobile-first)

Agency โ€” Multi-case view, bulk operations, alerts

 

Internal: Contracts, Payments, Legal, Credit Card, Accounting, Super Admins

## Terminology

DR โ†’ Disbursement Request

IP โ†’ Intended Parent

GC โ†’ Gestational Carrier

Journey โ†’ Full surrogacy process (contract โ†’ birth)

Milestone โ†’ Contractual event triggering eligibility

Allowance โ†’ Budget category in contract

Case โ†’ One journey (IP + GC + Agency)

## Key Flows

GC Receipt Upload: Tap upload โ†’ Camera/file โ†’ Category โ†’ Amount โ†’ Submit DR

DR Approval: Queue โ†’ Review receipt โ†’ Approve/Reject โ†’ Batch ACH

Milestones: Contract Signed โ†’ Medical Clearance โ†’ Pregnant โ†’ Heartbeat โ†’ Birth

FEATURES.md

Purpose of FEATURES.md

A FEATURES.md is a living log of everything that's been built โ€” what each feature does and why. Claude reads it to understand the current state of the product before adding or changing anything.

VS Code file tree showing FEATURES.md in project root

Example of FEATURES.md

# Features

 

Prototype โ€” describes what the product does and why. /create-docs generates developer-facing documentation from this file.

## Admin Portal

Case Detail Page โ€” Widget system (drag-and-drop), Payment Calendar, Create DR Dialog, GSA Upload Wizard, Case Overrides Panel

 

GSA Upload Wizard โ€” Full-page wizard for uploading & parsing GSA contracts. Split-panel: doc preview left, parsed fields right. Source highlighting on hover.

 

Disbursement Types Editor โ€” Program toggle (Surrogacy/Egg Donation), inline editing, bulk selection, category management, document import with diff view.

 

Template Library โ€” Master templates assigned to agencies. Hierarchy: Master โ†’ Agency โ†’ Case Overrides.

## Client Portal

GC Portal โ€” Mobile-first. Payment schedule, receipt upload, lost wages, contract questions chat.

Egg Donor Portal โ€” Fast receipt upload, appointment confirmation, donation cycle timeline.

Agency Portal โ€” Case list, per-case DR submission, 4-step wizard.

IP Portal โ€” View-only. Balance overview, journey timeline, milestone progress.

## Changelog (recent)

2026-02-09 โ€” Agency DR wizard (4-step: Case โ†’ Payee โ†’ Items โ†’ Review)

2026-02-09 โ€” GC/Egg Donor shared DR wizard with role detection

2026-02-09 โ€” Double-payment prevention on DR wizards

2026-02-05 โ€” GSA Upload Wizard, Case Overrides Panel

2026-02-05 โ€” Disbursement Types Editor + Template Library

2026-02-03 โ€” Widget system, Payment Calendar Widget, Create DR Dialog

Claude says it remembers.
It doesn't.

Before compaction
After compaction

What gets lost:

File paths discussed Design decisions made Debugging context Conversation nuance Task progress Open questions

/pre-compact

Purpose of /pre-compact

A custom command that saves a snapshot of your current session state before Claude compacts. Writes to context-checkpoint.md so nothing is lost when the context window resets.

Example context-checkpoint.md

Working On

Building donor intake wizard - step 3 (document uploads)

Key Decisions

- Multi-step wizard over single form: better UX for 40+ fields

- Conditional fields: medical history flags certain conditions

Current State

Status: in progress

Key files: Step3.jsx, FileUpload.jsx

Next Steps

- [ ] Add photo requirements validation

- [ ] Connect step navigation

Open Questions

- Max file size for document uploads?

/post-compact

Purpose of /post-compact

A custom command that restores your session state after Claude compacts. Reads context-checkpoint.md and picks up exactly where you left off โ€” no re-explaining needed.

What it restores

1. Reads context-checkpoint.md

Loads the snapshot saved before compaction

2. Restores session state

What you were building, decisions made, files touched, next steps

3. Asks what to focus on

"What should we focus on?" โ€” ready to continue immediately

The session problem

Every new Claude Code session starts completely blank

๐Ÿ‘จโ€๐Ÿ’ป

1st Working Session

โœ… Built dashboard layout
โœ… Decided on tab navigation
โœ… Fixed card spacing

โ†’

๐ŸŒ™

Close the session

Unwind, time with family,
go to sleep

โ†’

๐Ÿ‘จโ€๐Ÿ’ป

Next Day Working Session

๐Ÿซค CC: "What were we working on?"
๐Ÿ˜ฎ CC: "What decisions did we make?"
๐Ÿค” CC: "Which files did we touch?"

/save-session

What it does

Persists everything before closing a session โ€” so the next time you open Claude Code, you can pick up exactly where you left off.

What it saves

Session Log โ€” Topics, decisions, action items
Project or Standalone โ€” Appends to project log or creates dated file
Docs Update โ€” Auto-updates PRODUCT.md and FEATURES.md
Northstar โ€” Logs key career/business decisions

save-session.md

Phase 1 โ€” Discover & Ask

Scan Session Logs/ for existing project logs

Ask: "Does this session belong to a project?"

Phase 2A โ€” Append to Project Log

Prepend new entry to Docs/Session Logs/[project].md

Topics: main topics covered

Decisions: decisions made with rationale

Action Items: - [ ] tasks mentioned

Key Context: important details for future reference

Phase 2B โ€” Standalone File

Creates Docs/Session Logs/YYYY-MM-DD-[topic].md

Phase 3 โ€” Northstar

If key decisions were made, logs to Alfredo-Northstar.md

Phase 4 โ€” Docs Update

Reads git diff + session meetings

Updates FEATURES.md with what was built and why

Updates PRODUCT.md with new roles, flows, terminology

Phase 5 โ€” Cleanup

Deletes context-checkpoint.md and session-meetings.json

/load-context

What it does

Restores full project context at session start. You select which meetings to load โ€” Claude reads them and rebuilds everything it needs to continue.

What it loads

Session Logs โ€” Recent work, decisions, open action items
Meeting Notes โ€” User-selected transcribed meetings
CLAUDE.md + PRODUCT.md + FEATURES.md
Git History โ€” Recent commits

load-context.md

Step 1 โ€” Get project name

If argument provided, use it. Otherwise list Session Logs/ and ask user to pick.

Step 2 โ€” Discover meetings

Read PRODUCT.md โ†’ extract Client name

List Docs/Meetings/ โ†’ filter by client name

Sort by date, newest first

Step 3 โ€” Meeting selection

Ask user to pick meetings (multi-select)

Option: "All recent (top 3)"

Step 4 โ€” Spawn agent (parallel)

- Read session log for project

- Read CLAUDE.md, PRODUCT.md, FEATURES.md

- Run git log --oneline -10

- Read selected meeting notes

- Save meeting list to session-meetings.json

Output โ†’ loaded-context.md

Recent Work ยท Meetings ยท Commits ยท Product Context

Current State ยท Open Action Items ยท Key Decisions

Putting it all together

Project Knowledge

CLAUDE.md
Rules, stack, constraints

PRODUCT.md
Roles, flows, terminology

FEATURES.md
What's built and why

During a Session

Working...
โ†“
Context window fills up
โ†“
/pre-compact โ€” save snapshot
โ†“
/compact โ€” Claude compresses
โ†“
/post-compact โ€” restore & continue

Between Sessions

End of day
โ†“
/save-session โ€” persist to Obsidian
โ†“
Close Claude Code
โ†“
Next day: open Claude Code
โ†“
/load-context โ€” pick up where you left off

โšก HOW TO HELP
Claude Code
Craft detailed prototypes, faster

The frontend-design skill

Purpose of frontend-design

A frontend-design skill guides Claude to create distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. It commits Claude to a bold aesthetic direction and steers it to implement real working code with exceptional attention to visual detail.

frontend-design/SKILL.md

Design Thinking Process

Before coding, commit to a BOLD aesthetic direction:

Brutally minimal ยท Maximalist chaos ยท Retro-futuristic

Luxury/refined ยท Playful/toy-like ยท Editorial/magazine

Brutalist/raw ยท Art deco/geometric ยท Industrial/utilitarian

Typography

- Choose fonts that are beautiful, unique, and interesting

- Avoid generic fonts (Arial, Inter)

- Pair a distinctive display font with a refined body font

Color & Theme

- Commit to a cohesive aesthetic with CSS variables

- Dominant colors with sharp accents outperform timid palettes

Motion

- Staggered reveals, scroll-triggering, hover states that surprise

- CSS-only for HTML ยท Motion library for React

Anti-Patterns โ€” NEVER use:

- Overused fonts (Inter, Roboto, Arial, system fonts)

- Purple gradients on white backgrounds

- Predictable layouts and cookie-cutter components

Key Principle

Don't hold back โ€” show what can truly be created when committing fully to a distinctive vision.

DESIGN_RULES.md

Purpose of DESIGN_RULES.md

A DESIGN_RULES.md is your design system in Claude's language. It lives in the project root and tells Claude exactly how to build UI โ€” spacing, components, patterns, and an audit checklist. Claude reads it before writing any UI code.

VS Code file tree showing DESIGN_RULES.md in project root

Example of DESIGN_RULES.md

# Design System Rules

Guidelines for building consistent UI components using Shadcn UI.

## Spacing

- Never hardcode pixel values โ€” always use Tailwind utilities

- All spacing on Tailwind's 4px grid

- Prefer gap-* over space-* in flex/grid layouts

## Cards

Card ยท CardHeader ยท CardTitle ยท CardDescription ยท CardContent ยท CardAction

- Nested cards use reduced padding/gap per density hierarchy

- Collapsible: entire CardHeader must be the trigger

- NEVER add padding classes to Card, CardHeader, or CardContent

## Inline Editing

- Toggle between static element and InputGroup with save/cancel

- Use draft state โ€” only commit on save, discard on cancel

- Enter saves, Escape cancels

## Less Is More

- Ask: "does this add info the user doesn't already have?" If not, skip it.

- Fewer elements with clear purpose beats more that explain each other

## Self-Check Audit

- Nested cards use reduced padding/gap?

- Collapsible cards have no extra padding?

- CardHeader gap fix applied in card.jsx?

Tweaks & recommendations

1

Use Tailwind CSS

Claude writes better UI with utility classes than custom CSS — fewer hallucinations, consistent output

2

"Less Is More" rule

Every DESIGN_RULES.md includes this: "Before adding any UI element, ask: does this add info the user doesn't already have?"

3

Self-Check audit

Checklist at the bottom of every DESIGN_RULES — Claude runs it before delivering

๐Ÿ“„ HOW TO HELP
Claude Code
Design + document simultaneously

The traditional problem

Design
Build
Document
Never happens
vs
Design + Build + Document

One Session.

Design is documenting

You say:

"Build the donor intake wizard with multi-step form, document uploads, and conditional fields"

UI Built

Working multi-step wizard with all states

FEATURES.md Updated

Feature entry + design reasoning + user stories

PRODUCT.md Updated

New flow added to Key Flows section

/create-docs

Purpose of /create-docs

Reads your blueprint files and generates a full Starlight (Astro) documentation site. Product/UX docs, not technical READMEs — describes what to build and why, so any developer can pick it up.

Reads from

PRODUCT.md — overview, roles, flows, terminology
FEATURES.md — features, design reasoning, user stories
DESIGN_RULES.md — design context (optional)

How /create-docs works

## Step 1: Read Blueprints

Read FEATURES.md, PRODUCT.md, DESIGN_RULES.md from project root

## Step 2: Setup

Scaffold a Starlight (Astro) site in docs/ if it doesn't exist

## Step 3: Plan Structure

Analyzes blueprints to choose the best org for this project:

- Web portals → admin + client split

- Mobile apps → views + services

- Simple apps → domain areas

## Step 4: Capture Screenshots

Screenshots prototype screens, embeds as visual refs in docs

## Step 5: Generate Pages

Behavior descriptions, design decisions, user stories, business rules

No code. No tech stack. No file paths.

## Step 6: Deploy (optional)

Cloudflare Pages via GitHub Actions workflow

More tweaks

Separate CLAUDE.md per project

Each project/context gets its own rules — webapp rules differ from iOS rules

Keep CLAUDE.md slim

Bullets not prose. No duplication. No obvious info. Claude reads it every message.

Use imperative prompts

"Build X" not "Can you help me with X?" — direct commands get better results

Structure files as Claude's knowledge base

PRODUCT.md, FEATURES.md, DESIGN_RULES.md — Claude reads these before every task

Q&A

Questions?