Skip to content
Shell
2.2 KB
Raw Blame

Claude Code Quick Reference

Your enhanced workflow based on Boris Cherny's patterns.

Slash Commands

Command Purpose Frequency
/commit-push-pr Stage, commit, push, create PR Daily - dozens of times
/sync-main Rebase current branch on main Before PRs, after stale
/test-verify Run tests with coverage Before commits
/verify Full 6-layer verification Before PRs
/verify quick TypeScript + lint only Quick checks
/verify visual Browser verification via Playwright UI changes
/factory Marketing asset generation Campaign work

Session Management

Action Command
Start session claude
Background to cloud claude "task" &
Pull from cloud claude --teleport
Resume last session claude --resume
Check cloud sessions https://claude.ai/code

Parallel Session Pattern

Tab 1: Main feature work
Tab 2: Tests/verification
Tab 3: Background task (sent to cloud)
Tab 4: Ad-hoc debugging
Tab 5: Research/exploration

Verification Layers

Layer 1: Static Analysis (tsc, eslint)
Layer 2: Unit Tests (jest/vitest)
Layer 3: Integration Tests
Layer 4: E2E Tests (playwright)
Layer 5: Visual Verification (browser)
Layer 6: Build Check

Hooks Active

Hook Trigger Purpose
format-code.sh Write/Edit Auto-format with prettier/biome
verify-after-write.sh Write Verify file saved correctly
pev-verification.sh Bash Plan-Execute-Verify pattern
reflection-gate.sh Write/Edit Self-critique on changes

Git Workflow

/sync-main          # Get latest from main
  work work work
/test-verify        # Verify changes
/commit-push-pr     # Ship it

When Stuck

  1. /verify to check current state
  2. Check console: browser_console_messages
  3. Check network: browser_network_requests
  4. Screenshot: browser_take_screenshot

Mental Model

You are a manager of Claude developers:

  • Farm out tasks to parallel sessions
  • Poll for results
  • Context switch freely
  • Let cloud sessions cook

Based on Boris Cherny's Claude Code workflow