Skip to content
/

claude-code-playbook (RiyaParikh0112)

claude-code-playbook-riya · RiyaParikh0112/claude-code-playbook · ★ 26 · last commit 2025-09-23

Primitive shape
No installable primitives
00

Summary

claude-code-playbook (RiyaParikh0112) — Summary

claude-code-playbook by RiyaParikh0112 is a single-author guidebook structured as a directory of markdown documentation covering Claude Code patterns, best practices, and templates for developers. The repo contains ~20 markdown files organized across docs/ (getting-started, fundamentals, workflows, advanced, troubleshooting) plus a setup.md and no runnable primitives (zero commands, skills, agents, hooks, or MCP servers). It is a pure "Archetype 4 — Markdown scaffold" framework: the value is entirely in the template content and written guidance, not automation. The paradigm shift it teaches is from "hands-on coder" to "development director" orchestrating AI agents. Key docs include CLAUDE.md templates, slash command patterns, hooks configuration examples, multi-agent workflow descriptions, and model selection strategy (Sonnet 4 for daily work, Opus 4 for complex architecture). The stated install path is manual copy-paste of templates from the templates/ and docs/ directories into a user's project.

Differs from seeds: Closest to agent-os (Archetype 4), but entirely documentation-only — agent-os at least ships 5 runnable commands that write the markdown files; RiyaParikh0112 ships only the documentation itself. No hooks, no skills, no CLI. Unlike superpowers or bmad-method, there is no behavioral enforcement mechanism; adherence depends entirely on the developer reading and applying the written guidance.

01

Overview

claude-code-playbook (RiyaParikh0112) — Overview

Origin

A community playbook authored by RiyaParikh0112, framed as a "battle-tested in production environments" guide. 26 GitHub stars. No license file detected.

Core philosophy

"Transform from coder to development director: Master Claude Code to build in days what used to take months" "Claude Code isn't just AI autocomplete — it's a fundamental shift from hands-on coder to development director."

Five key principles stated:

  1. Context is King — CLAUDE.md as Claude's persistent memory
  2. Plan Before CodeShift-Tab twice for architectural discussion
  3. Constraint-Driven Development — describe problems + constraints, not just desired output
  4. Quality Gates Are Mandatory — treat AI output as junior developer output
  5. Strategic Model Selection — Sonnet 4 for daily work, Opus 4 for architecture

Critical warnings (verbatim)

  • "Never use --dangerously-skip-permissions except in isolated sandboxes"
  • "Always review AI-generated code before integration"
  • "Use git worktrees for parallel development, not shortcuts"

Audience

Developers at any level wanting to understand Claude Code patterns; specifically mentions teams and enterprise patterns in the advanced section.

Scope note

The README lists a templates/ directory with "Ready-to-use prompts, configurations, and workflows" but at time of analysis the templates/ directory structure was not populated with files accessible via GitHub API — the content is implied by the README structure.

02

Architecture

claude-code-playbook (RiyaParikh0112) — Architecture

Distribution type

Pure documentation repository — methodology-doc. No install commands, no packages, no binaries.

Install

Manual: read docs, copy templates to your project.

Directory structure

.
├── README.md
├── setup.md
└── docs/
    ├── getting-started/
    │   ├── installation-setup.md
    │   ├── first-session.md
    │   ├── project-initialization.md
    │   └── mindset-shift.md
    ├── fundamentals/
    │   ├── claude-md-mastery.md
    │   ├── context-management.md
    │   ├── prompt-engineering.md
    │   ├── model-selection-strategy.md
    │   └── security-best-practices.md
    ├── workflows/
    │   ├── tdd-with-claude.md
    │   ├── code-review-process.md
    │   ├── debugging-strategies.md
    │   ├── refactoring-patterns.md
    │   └── multi-agent-workflows.md
    ├── advanced/
    │   ├── hooks-and-automation.md
    │   ├── custom-configurations.md
    │   ├── ci-cd-integration.md
    │   └── scaling-strategies.md
    └── troubleshooting/
        ├── common-issues.md
        ├── performance-optimization.md
        └── debugging-guide.md

Runtime requirements

None. Pure markdown documentation.

Target AI tools

Claude Code (primary), but the documentation is tool-agnostic in content.

03

Components

claude-code-playbook (RiyaParikh0112) — Components

Commands

0 — no slash commands, no bash scripts.

Skills

0 — no skill files.

Agents / Subagents

0 — no agent definitions. The docs/workflows/multi-agent-workflows.md discusses multi-agent patterns conceptually but ships no agent files.

Hooks

0 — no settings.json, no hook scripts. docs/advanced/hooks-and-automation.md provides example hook configuration snippets (shown as code blocks in documentation) but these are illustrative, not deployed.

MCP servers

Templates (implied, not confirmed populated)

README mentions:

  • CLAUDE.md Templates
  • Slash Commands (custom workflow automation)
  • Hooks (quality gate automation)
  • Prompts (proven prompt patterns)

Documentation modules (20 markdown files)

File Topic
docs/getting-started/installation-setup.md Install + setup
docs/getting-started/first-session.md First session guide
docs/getting-started/project-initialization.md New project setup
docs/getting-started/mindset-shift.md Coder → director paradigm
docs/fundamentals/claude-md-mastery.md CLAUDE.md deep-dive
docs/fundamentals/context-management.md Context window management
docs/fundamentals/prompt-engineering.md Prompting techniques
docs/fundamentals/model-selection-strategy.md Sonnet vs Opus tradeoffs
docs/fundamentals/security-best-practices.md Security guidelines
docs/workflows/tdd-with-claude.md TDD workflow
docs/workflows/code-review-process.md QA process
docs/workflows/debugging-strategies.md Systematic debugging
docs/workflows/refactoring-patterns.md Safe refactoring
docs/workflows/multi-agent-workflows.md Parallel development
docs/advanced/hooks-and-automation.md Hook configuration examples
docs/advanced/custom-configurations.md Custom Claude settings
docs/advanced/ci-cd-integration.md CI/CD pipelines
docs/advanced/scaling-strategies.md Team + enterprise patterns
docs/troubleshooting/common-issues.md Common fixes
docs/troubleshooting/performance-optimization.md Speed improvements
05

Prompts

claude-code-playbook (RiyaParikh0112) — Prompts

Prompt 1: CLAUDE.md template (from docs/fundamentals/claude-md-mastery.md)

Source: docs/fundamentals/claude-md-mastery.md

Technique: Structured template with mandatory sections + explicit always/never rules

# Project Context

## Architecture Overview
[Brief description of system architecture, key components, and design philosophy]

## Tech Stack
- Frontend: React 18, TypeScript, Tailwind CSS
- Backend: Node.js, Express, PostgreSQL
- Testing: Jest, React Testing Library, Supertest
- Infrastructure: Docker, AWS, GitHub Actions

## Workflow Rules

### ALWAYS:
- Run tests after making any code changes
- Use TypeScript strict mode for all new files
- Add JSDoc comments for public functions
- Validate inputs at API boundaries
- Use environment variables for configuration

### NEVER:
- Hardcode configuration values
- Skip error handling in async functions
- Use `any` type in TypeScript without justification
- Commit without running tests
- Use deprecated APIs

Key design: ALWAYS/NEVER format creates unambiguous behavioral constraints without requiring enforcement hooks.


Prompt 2: Hook configuration example (from docs/advanced/hooks-and-automation.md)

Source: docs/advanced/hooks-and-automation.md

Technique: Declarative quality gate configuration with matcher-based routing

{
  "hooks": {
    "preEdit": {
      "command": "prettier --check {file}",
      "description": "Format check before editing",
      "stopOnError": false
    },
    "postEdit": {
      "command": "npx tsc --noEmit",
      "description": "Type check after changes",
      "stopOnError": true
    },
    "postToolUse": {
      "command": "npm run lint",
      "matcher": "Edit",
      "description": "Lint check after edits"
    }
  }
}

Note: The hook event names (preEdit, postEdit) differ from the current Claude Code API (PreToolUse, PostToolUse), suggesting this documentation may predate the current Claude Code hook schema. The illustrative intent is clear; literal correctness is uncertain.

09

Uniqueness

claude-code-playbook (RiyaParikh0112) — Uniqueness

Differs from seeds

Closest to agent-os (Archetype 4), but even more minimal: agent-os ships 5 runnable commands that write the markdown; this playbook ships only the documentation itself with zero runnable primitives. The hook examples in docs/advanced/hooks-and-automation.md use event names (preEdit, postEdit) that don't match the current Claude Code API, suggesting some content was written before or without testing against the live tool. Unlike bmad-method (34 skills, 6 subagent personas) or superpowers (14 skills, behavioral enforcement), this is purely advisory. It is most similar to a comprehensive README-as-methodology document.

Positioning

Community-authored "getting started" guide for Claude Code. Strong on the CLAUDE.md/context-management/model-selection conceptual side. Weak on automation. Targets developers who want to understand the paradigm before applying any tooling.

Observable failure modes

  1. Hook event names may be outdatedpreEdit/postEdit format in docs differs from actual Claude Code API (PreToolUse/PostToolUse).
  2. No enforcement mechanism — all guidance is advisory; no hooks, skills, or agents enforce the described patterns.
  3. Template directory may be empty — the README promises templates but the directory structure shows only top-level docs.
  4. Single-author, low-star project — 26 stars, last commit 2025-09-23 (inactive); maintenance unclear.
04

Workflow

claude-code-playbook (RiyaParikh0112) — Workflow

The playbook describes but does not enforce the following workflow:

Phase Tool/Step Artifact
Plan Shift-Tab twice → Plan Mode Architectural discussion
Specify Write CLAUDE.md Project memory file
Implement Claude Code session Code
Review Manual code review Reviewed code
Test TDD (described, not enforced) Test suite
Automate Hook configuration (templates) .claude/settings.json

Approval gates

None automated. All gates are human-driven per the "Quality Gates Are Mandatory" principle.

TDD guidance (from docs/workflows/tdd-with-claude.md)

TDD is recommended but not enforced. The doc describes:

  • Write failing tests first
  • Let Claude implement to make them pass
  • Refactor with confidence

Hooks guidance (from docs/advanced/hooks-and-automation.md)

Provides example JSON hook configurations:

{
  "hooks": {
    "postEdit": { "command": "npx tsc --noEmit", "stopOnError": true },
    "postToolUse": { "command": "npm run lint", "matcher": "Edit" }
  }
}

Note: uses a .claude/hooks.json format (not settings.json format), which may be illustrative rather than the current Claude Code API.

Multi-agent workflow guidance (conceptual)

Describes patterns for parallel development with git worktrees, agent specialization, and context isolation — but ships no agent files.

06

Memory Context

claude-code-playbook (RiyaParikh0112) — Memory & Context

State storage

  • CLAUDE.md — described as "Claude's persistent memory"; the playbook's most important artifact.
  • No other state files, no databases, no structured memory.

Memory hierarchy described (from docs)

~/.claude/CLAUDE.md       → Global (all projects)
/project/CLAUDE.md        → Project (committed)
/project/.claude/         → Personal (not committed)

Context management guidance

From docs/fundamentals/context-management.md (paraphrased):

  • Context window thresholds for action:
    • 0–50%: work freely
    • 50–70%: be selective
    • 70–90%: /compact now
    • 90%+: /clear required
  • Use /compact to summarize conversation history

Session management

No project-specific session management. Standard Claude Code ~/.claude/projects/ storage.

Handoff

No cross-session handoff mechanism. CLAUDE.md serves as the sole persistent context.

07

Orchestration

claude-code-playbook (RiyaParikh0112) — Orchestration

Multi-agent

Described in documentation (docs/workflows/multi-agent-workflows.md) but not implemented. No agent files shipped.

Orchestration pattern

none (documentation describes patterns; no automation is deployed).

Isolation mechanism

none at framework level. Documentation recommends git worktrees.

Multi-model

Model selection guidance is provided (docs/fundamentals/model-selection-strategy.md):

  • Claude Sonnet 4 for daily coding, single-file edits, debugging
  • Claude Opus 4 for complex architecture, multi-step projects, sustained reasoning

But this is advisory only — no routing configuration is deployed.

Execution mode

one-shot — developer manually runs Claude Code with guidance from the docs.

Subagent definition format

none — no agent files.

Consensus

None.

08

Ui Cli Surface

claude-code-playbook (RiyaParikh0112) — UI & CLI Surface

Dedicated CLI binary

None.

Local web dashboard

None.

IDE integration

None deployed. Documentation describes Claude Code CLI usage patterns.

Observability

None.

Distribution surface

GitHub repository only. Manual copy-paste from documentation into projects.

Related frameworks

same archetype · same primary tool · same memory type

Context-Engineering Handbook ★ 9.0k

Provides a first-principles, research-grounded vocabulary and learning path for context engineering — the discipline of designing…

walkinglabs/learn-harness-engineering ★ 6.6k

Teach harness engineering from first principles (12 lectures + 6 projects) and provide a scaffolding skill (harness-creator) that…

Awesome Harness Engineering (walkinglabs) ★ 2.7k

Curate the authoritative reference list of articles, benchmarks, and tools for harness engineering — the practice of shaping the…

cline-memory-bank (nickbaumann98) ★ 581

Custom instructions + 6-file hierarchical Markdown memory bank so Cline maintains full project context across sessions, with a…

FPF (First Principles Framework) ★ 372

Provides a formal pattern language for making reasoning explicit, traceable, and publishable in mixed human/AI engineering work —…

nexu-io/harness-engineering-guide ★ 134

Provide a practical, code-first reference guide to harness engineering — from first principles to production patterns —…