Claude Code Playbook

Claude Code is the hub where agents, prompts, and session commands live. Use this guide to wire the toolkit into every Claude workflow.

Prepare Claude Code

  1. Open the repository in Claude Code and create (or verify) .claude/agents, .claude/prompts, .claude/commands, and .claude/sessions.
  2. Copy everything from AI-toolkit/agents/, AI-toolkit/prompts/, and AI-toolkit/session-commands/ into the matching .claude/ folders. Keep the originals version-controlled so you can pull updates.
  3. Drop the Claude briefing template next to your codebase root and run /init so Claude boots with project context.
  4. Create an empty .claude/sessions/.current-session file and add .claude/sessions to .gitignore to protect local notes.
  5. Reload Claude Code, check the sidebar, and ensure agents + prompts show in the file browser for quick @ referencing.
Keep the toolkit on a shared drive or as a Git submodule so every teammate pulls identical agent instructions.

File placement & sync strategy

Kick off a new project in Claude

  1. Run /project:session-start project-name and paste the request, stakeholders, and deadlines.
  2. Trigger @create_brief.md to capture north-star context, then archive the output in the session log.
  3. Use @plan_feature.md with the first epic and follow the embedded TODOs it creates.
  4. Delegate specialist work: run /tool run agents/orchestration/tech-lead-orchestrator.md to assemble the execution graph, then loop in framework agents.
  5. Establish a cadence—after each coding burst paste git status into /project:session-update, then request @code_review.md before merging.

Continue a legacy or inherited project

  1. Import or recreate the latest session log (ask the prior owner for .claude/sessions/<date>.md). Use session-restorer.md to rebuild context.
  2. Scan the repo with project-analyst.md and code-archaeologist.md to surface unknown dependencies and risk areas.
  3. Run @plan_feature.md in “maintenance mode” (follow the bug/refactor instructions inside the prompt) to map the next safest changes.
  4. Document assumptions inside /project:session-update and keep a punch list of unanswered questions for the original team.
  5. Before your first deploy, run reliability-commander.md and testing-expert.md so you understand coverage gaps and rollback steps.

Recommended Claude agents by scenario

DisciplinePrimary agentsWhat they deliver
Backend & APIstech-lead-orchestrator.md, django-api-developer.md, fastapi-expert.md, rails-api-developer.mdExecution graphs, ORM modelling help, API contracts, async patterns.
Frontend & UXreact-component-architect.md, frontend-designer.md, tailwind-css-expert.md, vue-component-architect.mdComponent trees, styling strategies, accessibility checks, design-to-code guidance.
Ops & Qualitydevops-cicd-expert.md, reliability-commander.md, testing-expert.md, performance-optimizer.mdPipeline improvements, readiness checklists, test matrices, performance remediation plans.
Documentation & Productcontent-writer.md, documentation-specialist.md, prd-writer.md, session-closer.mdStakeholder updates, architecture notes, product requirement drafts, end-of-day summaries.

Pin your top five agents in the Claude sidebar and use /tool run ... --force when you want deterministic output without conversational drift.

Co-ordinate multi-agent runs

  1. Author the playbook: Start with tech-lead-orchestrator.md to generate the execution graph. Ask for explicit agent-to-agent handoffs (e.g., “frontend-designer passes mock notes to react-component-architect”).
  2. Assemble the crew: Use team-configurator.md to confirm who leads each phase, escalation paths, and communication cadence.
  3. Chain specialists: Paste the orchestrator output back into Claude and call each specialist in order. Include the previous agent’s summary so context compounds.
  4. Agent-controlled agents: If an agent must brief another (e.g. project-analyst.mddjango-api-developer.md), ask it to run session-closer.md (or a custom “handoff” template) so the next agent receives a clear brief.
  5. Quality guardrails: After the specialist loop, trigger reliability-commander.md, testing-expert.md, and brutal-critic.md to enforce process discipline before shipping.
Keep a running “agent stack” inside the session log—note which agent ran, what it produced, and who must act next. This makes restarting the chain trivial.

Sample scenario: shipping a payments webhook

  1. Kickoff & planning: Run /project:session-start payments-webhook, paste the ticket, then trigger @create_brief.md followed by @plan_feature.md. Paste both outputs into the session log.
  2. Multi-agent orchestration: Invoke tech-lead-orchestrator.md to map the chain (backend specialist → reviewer → QA). Let the orchestrator call djagno-api-developer.md automatically by including the plan in the chat.
  3. Implementation: Execute the guided steps, running django-api-developer.md for serializers/views and testing-expert.md for pytest coverage. Paste command output from your terminal into /project:session-update.
  4. Review & docs: Use @code_review.md with git diff, then let brutal-critic.md critique the patch. Finish with @write_docs.md to generate release notes and update your session summary log.
  5. Close session: Run /project:session-end and attach the final agent outputs so other tools (Gemini, Codex, Cursor) are ready for the next iteration.
Each time an agent finishes, append a short “Result” block to the session log so you can replay the scenario or hand it off mid-stream.

Advanced creation & research catalogue

Foundational level

Intermediate level

Advanced level

Claude does not generate images or video directly; when visual assets are needed, have Claude draft structured prompts for Gemini (image) or external tooling, then weave the returned assets into your docs.

Prompt patterns that stick

PromptWhen to run itClaude-specific guidance
@plan_feature.mdBefore touching codePaste user story, acceptance criteria, stack constraints, and annotate files you expect to edit.
@code_review.mdAfter implementingAttach git diff, mention manual tests, and ask Claude to tag risk levels.
@write_docs.mdRelease preparationFeed plan + review outputs and specify audience (README, changelog, on-call handoff).
@create_brief.mdInitial alignmentReuse the output as the opening section of session-summary.md.

Terminal power moves inside Claude

Design, documentation, and collaboration best practices

Integrations & supporting toolchain

Golden rules for Claude