Keyboard shortcuts

Press ← or β†’ to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Command Index

Quick reference for all playbook commands.

For detailed integration guide showing how commands work together, see /docs/integration-guide.md


πŸš€ Read First: The Preamble

β†’ /pb-preamble - Foundational mindset for all collaboration. Read this before any other command. It establishes the assumptions all playbook commands build on.


Development Workflow

CommandWhen to Use
/pb-startStarting work on a feature branch
/pb-todo-implementStructured implementation of individual todos with checkpoint-based review
/pb-cycleEach iteration (develop β†’ review β†’ commit)
/pb-commitCrafting atomic, meaningful commits
/pb-resumeResuming after a break
/pb-pausePausing work, preserving context for later
/pb-shipReady to ship: full reviews β†’ PR β†’ merge β†’ release
/pb-prCreating a pull request (standalone)
/pb-testingTesting philosophy (unit, integration, E2E strategies)
/pb-jordan-testingTesting & reliability review (gap detection, edge case coverage, failure mode analysis)
/pb-handoffStructured work handoff between contexts (agents, sessions, teammates)
/pb-handcraftAI output quality gate – 6-lens pass for making AI-assisted work indistinguishable from hand-written
/pb-standupDaily async status updates for distributed teams
/pb-knowledge-transferPreparing KT session for new developer or team handoff
/pb-what-nextContext-aware command recommendations based on git state
/pb-debugSystematic debugging methodology (reproduce, isolate, hypothesize, test, fix)
/pb-learnCapture reusable patterns from sessions (errors, debugging, workarounds)
/pb-design-languageCreate and evolve project-specific design specification (tokens, vocabulary, constraints)

Patterns & Architecture

CommandWhen to Use
/pb-patternsOverview & quick reference for all patterns
/pb-patterns-coreCore architectural & structural patterns (SOA, Event-Driven, Repository, DTO, Strangler Fig)
/pb-patterns-resilienceResilience patterns (Retry, Circuit Breaker, Rate Limiting, Cache-Aside, Bulkhead)
/pb-patterns-asyncAsync/concurrent patterns (callbacks, promises, async/await, reactive, workers, job queues)
/pb-patterns-dbDatabase patterns (pooling, optimization, replication, sharding)
/pb-patterns-distributedDistributed patterns (saga, CQRS, eventual consistency, 2PC)
/pb-patterns-securitySecurity patterns for microservices (OAuth, JWT, mTLS, RBAC, ABAC, encryption, audit trails)
/pb-patterns-cloudCloud deployment patterns (AWS EC2/RDS, ECS, Lambda; GCP Cloud Run, GKE; Azure App Service, Functions)
/pb-patterns-frontendFrontend architecture patterns (mobile-first, theme-aware, component patterns, state management)
/pb-patterns-apiAPI design patterns (REST, GraphQL, gRPC, versioning, error handling, pagination)
/pb-patterns-deploymentDeployment strategies (blue-green, canary, rolling, feature flags, rollback)

Planning

CommandWhen to Use
/pb-planPlanning a new feature/release
/pb-adrDocumenting architectural decisions
/pb-maya-productProduct & user strategy review (features as expenses, scope discipline)
/pb-kai-reachDistribution & reach review (findability, clarity of ask, format fit, shareability)
/pb-deprecationPlanning deprecations, breaking changes, migration paths
/pb-observabilityPlanning monitoring, observability, and alerting strategy
/pb-performancePerformance optimization and profiling strategy

Release & Operations

CommandWhen to Use
/pb-releaseRelease orchestrator: readiness gate, version/tag, trigger deployment
/pb-deploymentExecute deployment: discovery, pre-flight, execute, verify, rollback
/pb-alex-infraInfrastructure & resilience review (systems thinking, failure modes, recovery)
/pb-incidentP0/P1 production incidents
/pb-maintenanceProduction maintenance patterns - database, backups, health monitoring
/pb-sre-practicesToil reduction, error budgets, on-call health, blameless culture
/pb-drDisaster recovery planning, RTO/RPO, backup strategies, game days
/pb-server-hygienePeriodic server health and hygiene review (drift, bloat, cleanup)
/pb-database-opsDatabase migrations, backups, performance, connection pooling

Security & Hardening

CommandWhen to Use
/pb-securityApplication security review
/pb-hardeningServer, container, and network security hardening
/pb-secretsSecrets management (SOPS, Vault, rotation, incident response)

Repository Management

CommandWhen to Use
/pb-greenfieldStart a new project from an idea
/pb-repo-organizeClean up project root structure
/pb-repo-aboutGenerate GitHub About section + tags
/pb-repo-readmeWrite or rewrite project README
/pb-repo-blogCreate technical blog post
/pb-repo-docsiteTransform docs into professional static site
/pb-repo-enhanceFull repository polish (combines above)
/pb-repo-polishAudit AI discoverability (scorecard + action items)
/pb-zero-stackScaffold $0/month app (static + edge proxy + CI)

Reviews

CommandWhen to UseFrequency
/pb-reviewOrchestrate multi-perspective reviewMonthly or pre-release
/pb-review-codeDedicated code review for reviewers (peer review checklist)Every PR review
/pb-review-incomingRatify changes authored in another project’s session against this project’s conventionsWhen a sibling-authored batch arrives
/pb-linus-agentDirect, unfiltered technical feedback grounded in pragmatismSecurity-critical code, architecture decisions
/pb-elena-designDesign craft review: usability, visual hierarchy, design-system/brandFrontend/design PRs, new surfaces
/pb-travis-securityAdversarial security review: attacker mind, trust boundaries, PoC-drivenInput parsing, auth, trust boundaries
/pb-review-backendBackend review (Alex infrastructure + Jordan testing)Backend PRs
/pb-review-frontendFrontend review (Maya product + Sam documentation)Frontend PRs
/pb-review-infrastructureInfrastructure review (Alex resilience + Linus security)Infrastructure PRs
/pb-review-hygieneCode quality + operational readinessBefore new dev cycle, monthly
/pb-review-testsTest suite qualityMonthly
/pb-review-docsDocumentation accuracyQuarterly
/pb-review-productTechnical + product reviewMonthly
/pb-review-microserviceMicroservice architecture design reviewBefore microservice deployment
/pb-loggingLogging strategy & standards auditDuring code review, pre-release
/pb-a11yAccessibility deep-dive (semantic HTML, keyboard, ARIA, screen readers)During frontend development, every PR
/pb-review-playbookReview playbook commands for quality, consistency, and completenessEvery PR, monthly
/pb-context-reviewAudit CLAUDE.md files against conversation history (violated rules, missing patterns, stale content)Quarterly, before /pb-evolve
/pb-voiceDetect and remove AI tells from prose (two-stage: detect β†’ rewrite)After AI-assisted drafting, before publishing

Thinking Partner

Self-sufficient thinking partner methodology for expert-quality collaboration.

CommandWhen to Use
/pb-thinkComplete thinking toolkit with modes: ideate, synthesize, refine
/pb-huddleMulti-perspective decision session – structured multi-persona debate for strategic trade-offs
/pb-clara-curatorCurator and huddle orchestrator: coherence, complexity budget, lifecycle
/pb-think mode=ideateDivergent exploration - generate options and possibilities
/pb-think mode=synthesizeIntegration - combine multiple inputs into coherent insight
/pb-think mode=refineConvergent refinement - polish to expert-quality

Thinking Partner Stack:

/pb-think mode=ideate     β†’ Explore options (divergent)
/pb-think mode=synthesize β†’ Combine insights (integration)
/pb-preamble              β†’ Challenge assumptions (adversarial)
/pb-plan                  β†’ Structure approach (convergent)
/pb-adr                   β†’ Document decision (convergent)
/pb-think mode=refine     β†’ Refine output (refinement)

Reference Documents

CommandPurpose
/pb-guideFull SDLC guide with tiers, gates, checklists
/pb-guide-goGo-specific SDLC guide with concurrency patterns and tooling
/pb-guide-pythonPython-specific SDLC guide with async/await and testing
/pb-templatesTemplates for commits, phases, reviews
/pb-standardsCoding standards, quality principles
/pb-documentationWriting technical docs at 5 levels
/pb-sam-documentationDocumentation & clarity review (reader-centric, assumption surfacing, structural clarity)
/pb-design-rules18 classical design principles (Clarity, Simplicity, Resilience, Extensibility)
/pb-preamble-asyncAsync/distributed team collaboration patterns
/pb-preamble-powerPower dynamics and psychological safety
/pb-preamble-decisionsDecision-making and constructive dissent
/pb-new-playbookMeta-playbook for creating new playbook commands (classification, scaffold, validation)

Team & People

CommandWhen to Use
/pb-onboardingStructured team member onboarding
/pb-teamTeam dynamics, feedback, and retrospectives
/pb-knowledge-transferTeam knowledge sharing and KT sessions

System Utilities

Developer machine health and maintenance.

CommandWhen to Use
/pb-doctorSystem health check (disk, memory, CPU, processes)
/pb-storageTiered disk cleanup (caches, packages, Docker)
/pb-updateUpdate all package managers and tools
/pb-portsFind/kill processes on ports
/pb-setupBootstrap new dev machine
/pb-ghaInvestigate GitHub Actions failures (flakiness, breaking commits, root cause)
/pb-git-hygienePeriodic git repo audit (tracked files, stale branches, large objects, secrets)

Context & Templates

CommandWhen to Use
/pb-contextProject onboarding context template
/pb-claude-globalGenerate global ~/.claude/CLAUDE.md from playbooks
/pb-claude-projectGenerate project .claude/CLAUDE.md by analyzing codebase
/pb-claude-orchestrationModel selection, task delegation, and resource efficiency guide
/pb-context-reviewAudit and maintain all context layers - quarterly or after releases

Typical Workflows

Feature Development (with Checkpoint Review)

/pb-plan              β†’ Lock scope, define phases
/pb-start             β†’ Create branch, set rhythm
/pb-todo-implement    β†’ Implement todos with checkpoint-based approval
/pb-cycle             β†’ Self-review β†’ Peer review iteration
/pb-pause             β†’ End of day: preserve context
/pb-resume            β†’ Next day: recover context
/pb-ship              β†’ Full reviews β†’ PR β†’ merge β†’ release β†’ verify

Feature Development (Traditional)

/pb-plan     β†’ Lock scope, define phases
/pb-start    β†’ Create branch, set rhythm
/pb-cycle    β†’ Develop β†’ Review β†’ Commit (repeat)
/pb-pause    β†’ End of session: preserve context
/pb-resume   β†’ Resume: recover context
/pb-ship     β†’ Full reviews β†’ PR β†’ merge β†’ release β†’ verify

New Project Setup

/pb-greenfield     β†’ Idea β†’ working repo (any topology; routes to zero-stack if it fits)
/pb-zero-stack     β†’ Scaffold $0/month app (static + edge + CI)
/pb-repo-organize  β†’ Clean folder layout
/pb-repo-readme    β†’ Write documentation
/pb-repo-about     β†’ GitHub presentation

Repository Polish

/pb-repo-enhance   β†’ Full suite (organize + docs + presentation)

Documentation Site Setup

/pb-repo-docsite   β†’ Transform existing docs into professional static site
                   β†’ Includes CI/CD, GitHub Pages, Mermaid support

Periodic Maintenance

/pb-review-*       β†’ Various reviews as scheduled
/pb-git-hygiene    β†’ Monthly git repo audit (branches, large files, secrets)

System Maintenance

/pb-doctor         β†’ Diagnose system health
/pb-storage        β†’ Clean up disk space
/pb-update         β†’ Update tools and packages
/pb-ports          β†’ Resolve port conflicts

New Machine Setup

/pb-setup          β†’ Bootstrap dev environment
/pb-doctor         β†’ Verify system health

Browse All Commands

For all commands organized by category, see the command files in /commands/ directory or consult the integration guide for workflow-based command references.