SkillHeyClaude Code handbook
Agentic engineering handbook · searchable reference

Claude Code resources

Everything you need to move from ad-hoc prompting to structured agentic engineering: harness files, precedence rules, core primitives, searchable capabilities and field tips, workflow frameworks, cross-model bridges, and curated collections.

6 copyable templates8 prompt recipes38 capabilities48 sourced tips12 workflow systems40 commands & bundled skills
Synced with public sources27 Nov 2026claude-code-best-practiceOfficial Claude Code docs
Start here

Jump straight to what you need.

Read this like an engineering manual, not a flat link dump: pick the harness layer, then filter the exact primitive, tip, or workflow you need.

Harness & architecture

Shape the environment before tuning the prompt.

Why harness engineering matters
First session & layered loop
cd your-project
claude

# 1. Shift+Tab → Plan Mode (read & plan first)
# 2. Ask Claude to run tests & slice vertically
> Inspect the repo, run the test suite, and
  propose a vertical slice before editing.

# Composable architecture:
# /command → subagent (isolated) → skill → hook

Keep CLAUDE.md under 200 lines, enforce deterministic rules in .claude/settings.json and hooks, and use /sandbox or Auto Mode instead of skipping permissions.

CLAUDE.md & .claude/rules/Persistent project instructions, build/test commands, and path-scoped rules.Keep root CLAUDE.md under 200 lines; use paths: YAML frontmatter in .claude/rules/*.md to lazy-load.
.claude/settings.jsonHarness-enforced permissions, sandbox rules, model config, hooks, env vars, and attribution.Put deterministic rules here instead of ALL-CAPS prose in CLAUDE.md.
.claude/skills/<name>/SKILL.mdReusable folders with SKILL.md, references/, scripts/, and examples/ for progressive disclosure.Write description as a model trigger; add context: fork for isolated subagent runs.
.claude/agents/<name>.mdAutonomous specialist subagents with isolated context, tool limits, worktrees, and optional memory.Preload domain skills via skills: frontmatter and isolate noisy exploration.
.claude/commands/<name>.mdExplicit user-invoked /slash entry points for inner-loop workflows and orchestration.Zero context cost until invoked; ideal for Command → Agent → Skill flows.
.mcp.json & .claude/hooks/External tool servers and deterministic lifecycle hooks (PreToolUse, PostToolUse, Stop).Use PostToolUse for formatting and wildcard permissions instead of skip-permissions.
Precedence · highest to lowest

Settings & memory loading

  1. 1
    Managed settings (server / MDM / managed-settings.d/)Organization policy; cannot be overridden
  2. 2
    CLI startup flags (claude --model ...)Single-session overrides
  3. 3
    .claude/settings.local.jsonPersonal project settings (git-ignored)
  4. 4
    .claude/settings.jsonTeam-shared project harness (committed)
  5. 5
    ~/.claude/settings.jsonGlobal personal defaults (/config persists here)
Monorepo CLAUDE.md loading: Ancestor files load at startup; descendant subdirectory files and .claude/rules/*.md with paths: frontmatter load lazily only when touched; sibling packages never load.
Context control · every turn

Every-turn branching decision

Continue
Current turn succeeded and the next step directly builds on it.Keep momentum
/rewind (Esc Esc)
Claude went down a dead end or made a messy first pass.Drop failed attempts before re-prompting
/compact <hint>
Mid-task, context nearing ~40%, and fuzzy history is acceptable.Tell Claude what to keep and drop
/clear
Switching to a genuinely new task or high-stakes next step.Start clean with a crisp brief
Subagent / context: fork
Need 20 file reads or noisy search without polluting main context.Keep only the final report
Copy-paste starter kit

Production-ready configuration templates

Full settings.json reference
CLAUDE.md (keep under 200 lines)Make 'run the tests' work on the first try. Put shared repo commands here; move large domain rules into .claude/rules/*.md with paths: frontmatter.
# Project Overview
Next.js + TypeScript + PostgreSQL app.

## Essential Commands
- Install: npm ci
- Dev server: npm run dev
- Test: npm test
- Typecheck & lint: npm run typecheck && npm run lint

## Architecture Map
- src/app/        Route handlers and App Router pages
- src/lib/        Shared domain logic and DB queries
- scripts/        Maintenance and verification scripts

<important if="editing database queries or migrations">
- Parameterize all SQL inputs; never concatenate user input.
- Avoid N+1 queries; batch-fetch relations by ID.
</important>

## Boundaries
- Put deterministic formatting and permission rules in .claude/settings.json, not here.
- Put personal overrides in CLAUDE.local.md (git-ignored).
Copy-paste prompt recipes

High-leverage prompts you can run immediately.

Distilled from Anthropic team workflows—use these directly for spec interviews, vertical slicing, pre-PR grilling, handoffs, and CLAUDE.md cleanup.

Thariq

Interview me before writing a spec

Starting a non-trivial feature with open design questions

Read the relevant files first, then interview me using AskUserQuestion about architecture, edge cases, UI/UX, and trade-offs. Ask non-obvious questions only. When we finish, write a concise spec to SPEC.md so I can execute it in a fresh session.
Matt Pocock · Dex

Plan in vertical slices (tracer bullets)

Breaking a feature into reviewable, testable phases

Enter Plan Mode and break this feature into vertical slices (DB + service + UI per slice) instead of horizontal layers. For each slice, list the exact files to change and the automated + manual verification check that proves the slice works.
Boris Cherny

Grill me & prove the diff works

Before opening a pull request

Diff this branch against main. Grill me on the riskiest assumptions, edge cases, and regressions, and don't open a PR until we verify each one with concrete test or runtime evidence.
Boris Cherny

Scrap mediocre patch & rebuild cleanly

A quick fix grew messy after multiple retries

Knowing everything you know now about this codebase and bug, scrap the current patch and implement the clean, minimal, idiomatic solution from scratch.
Thariq

Summarize before rewinding

Context is polluted with dead ends and you are about to /rewind or /clear

Before I rewind this session, write a concise handoff note to your future self: list only the verified facts, exact file:line pointers, constraints we discovered, and the next concrete step. Omit all failed attempts.
Harness best practice

Audit & slim down CLAUDE.md

CLAUDE.md grew past 200 lines or Claude ignores rules

Audit our CLAUDE.md: keep root CLAUDE.md under 200 lines with essential build/test commands and architecture boundaries. Move deterministic rules (formatting, attribution, permissions) to .claude/settings.json, and split domain-specific rules into .claude/rules/*.md with paths: YAML frontmatter.
Thariq · Boris

Offload noisy research to a subagent

You need broad codebase search without filling main context

Use a read-only subagent to trace how authentication, session refresh, and error handling work across this repo. Keep all intermediate file reads inside the subagent and return only a crisp summary with exact file:line references.
Community best practice

Verify live in a background dev server

Confirming a UI or API change actually works end-to-end

Start the dev server as a background task, exercise the changed route and edge cases, inspect the server logs and browser console for errors, and report the exact observed behavior before finishing.
Core primitives

Pick the smallest boundary that solves the problem.

Full Agents vs Commands vs Skills matrix
PrimitiveLocationContextInvocationBest used for
Skill.claude/skills/<name>/SKILL.mdInline (or isolated via context: fork)Auto-invoked via description + /nameReusable procedures, templates, scripts, and agent preloading
Command.claude/commands/<name>.mdInline (main conversation)User-only via /commandExplicit entry points, inner-loop actions, and multi-step orchestration
Subagent.claude/agents/<name>.mdIsolated context windowAuto-invoked by Claude or Agent toolAutonomous multi-step research, parallel worktrees, or persistent memory
Hook.claude/hooks/ + settings.jsonDeterministic shell / handlerLifecycle events (Pre/PostToolUse, Stop)Auto-formatting, destructive-command guards, and turn-end verification
CLAUDE.md / RulesCLAUDE.md, .claude/rules/*.mdStartup (ancestors) or lazy (descendants / paths:)Automatic by directory or file globConcise repo conventions, build/test commands, and domain boundaries
MCP server.mcp.json / settings.jsonExternal tool processTool call by Claude or subagentStructured access to APIs, browsers, databases, or secondary models
Orchestration pattern

Command (user entry point) → Subagent (isolated autonomous work + preloaded skill) → Skill (inline or context: fork output generation) → Hook (deterministic check).

Worked example
YAML frontmatter & injection

Key Skill, Agent & Command fields

description / when_to_use
Trigger phrases used by Claude to auto-invoke; counts toward the 1,536-char skill listing cap.Skill & Agent
paths: [globs]
Lazy-load rules or auto-activate skills only when Claude touches matching file globs.Skill & .claude/rules/
context: fork + agent:
Run the skill inside an isolated subagent so intermediate tool calls never pollute main context.Skill
allowed-tools / disallowedTools
Pre-approve safe tools (e.g. Bash(npm test)) or remove tools from the model pool.Skill, Command, Agent
model / effort
Override model (haiku/sonnet/opus/inherit) and effort level (low, medium, high, xhigh, max).Skill, Command, Agent
memory: user | project | local
Give a specialist subagent persistent cross-session memory scoped to user, repo, or local.Agent
isolation: "worktree"
Run the subagent inside a temporary git worktree (auto-cleaned if no files changed).Agent
skills: [name]
Preload full skill instructions into the subagent at startup without cluttering main context.Agent
user-invocable / disable-model-invocation
Hide background-only skills from / menu, or require explicit manual /invocation.Skill
!`command` & $ARGUMENTS
Inject live shell output at invocation time and bind positional args ($0, $1, or named arguments:).Skill & Command
Built-in subagents (5)

Official built-in agent types

general-purpose
Default autonomous agent for complex multi-step research, edits, and execution.model: inherit · tools: All tools
Explore
Fast codebase search and file discovery without modifying files.model: haiku · tools: Read-only
Plan
Pre-planning research in Plan Mode to inspect architecture before editing.model: inherit · tools: Read-only
statusline-setup
Configures your custom Claude Code terminal status line in settings.json.model: sonnet · tools: Read, Edit
claude-code-guide
Answers questions about Claude Code features, hooks, Agent SDK, and Claude API.model: haiku · tools: Read, Web
Permission wildcard syntax: Use Bash(npm run *), Edit(/docs/**), Read(.env*), WebFetch(domain:github.com), and mcp__<server>__* in .claude/settings.json.
Feature & capability atlas

Every core concept and new capability in one filterable map.

Official documentation
Showing 38 of 38 capabilities
Subagentscore
.claude/agents/<name>.md

Isolated specialist agents with custom tools, model, memory, worktree isolation, and preloaded skills.

Core primitives
Skillscore
.claude/skills/<name>/SKILL.md

Progressive-disclosure folders (references/, scripts/) auto-triggered by description or /skill-name.

Core primitives
Commandscore
.claude/commands/<name>.md

User-invoked slash entry points with $ARGUMENTS and !`command` dynamic shell injection.

Core primitives
Hookscore
.claude/hooks/ · settings.json

Deterministic scripts on PreToolUse, PostToolUse, Stop, and Worktree events for formatting and guards.

Core primitives
Memory & Rulescore
CLAUDE.md · .claude/rules/

Ancestor startup + descendant lazy loading, path-scoped rules, and persistent Auto Memory.

Core primitives
MCP Serverscore
.mcp.json · settings.json

Model Context Protocol connections for external APIs, databases, browsers, and other models.

Core primitives
Plugins & Marketplacescore
distributable packages

Bundle skills, agents, commands, hooks, and UI mods for team or community distribution.

Core primitives
Settings & Sandboxingcore
.claude/settings.json · /sandbox

249+ settings, wildcard permissions, and OS-level file/network isolation that cuts permission prompts.

Core primitives
Checkpointing & Rewindcore
Esc Esc · /rewind

Automatic file-edit tracking so you can jump back before a failed attempt instead of patching in-place.

Context & runtime
Sessions & Branchingcore
--continue · --resume · /branch · /rename

Name, resume, or fork parallel sessions without losing track of multi-task work.

Context & runtime
Context Window Toolscore
/context · /compact · /clear

Inspect token budget, compact with a focus hint, or reset cleanly before context rot degrades results.

Context & runtime
Auto Modecore
Shift+Tab · --permission-mode auto

Classifier-gated execution that auto-approves safe actions and pauses on risky ones—safer than skip-permissions.

Context & runtime
Fast Modebeta
/fast · "fastMode": true

Switch to a faster model tier for quick iterations without leaving the session.

Context & runtime
Advisorbeta
/advisor · --advisor · advisorModel

Pair a fast primary coding model with a stronger advisor model for tricky architectural decisions.

Context & runtime
Code Modebeta
CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1

Experimental code-execution mode for compact multi-step tool orchestration.

Context & runtime
Status Linecore
.claude/settings.json

Custom persistent terminal bar showing live context %, branch, model, and cost awareness.

Context & runtime
No Flicker / Fullscreen TUIbeta
/tui fullscreen · CLAUDE_CODE_NO_FLICKER=1

Smooth terminal rendering mode for long streaming outputs and complex panes.

Context & runtime
Code Review & /shipcore
/code-review · /ship · /steward

Multi-agent PR bug/security analysis, automated PR creation, and live CI/review watch loops.

Review & shipping
Ultrareviewbeta
/code-review ultra · claude ultrareview

Deep, high-compute review mode with tracked review tasks for critical diffs.

Review & shipping
Git Worktreescore
claude -w · .worktreeinclude · isolation: worktree

Run parallel Claude sessions or subagents on isolated branches without dirtying your main checkout.

Review & shipping
GitHub Actions & GitLab CIcore
.github/workflows/ · @claude

Trigger Claude on PRs and issues—even auto-generating lint rules from recurring review comments.

Review & shipping
Bundled Official Skillscore
/simplify · /verify · /security-review · /skill-doctor

30 built-in skills covering live app verification, cleanup, security audits, config edits, and skill pruning.

Review & shipping
Agent Teamsbeta
built-in (env var) + tmux

Coordinate multiple specialist Claude instances working in parallel across shared tasks.

Automation & scale
Agent View & Backgroundbeta
claude agents · --bg · /bg

Inspect and manage background agents and long-running work from one view.

Automation & scale
Cross-Session Messagingcore
SendMessage · ListAgents · /list-agents

Pass messages and handoffs directly between active Claude sessions.

Automation & scale
Dynamic Workflowscore
/workflows · .claude/workflows/ · ultracode

Scripted multi-agent pipelines for repeatable fan-out, staged execution, and aggregation.

Automation & scale
Scheduled Tasks & Routinesbeta
/loop (local) · /schedule (cloud routines)

Run recurring monitoring locally with /loop or cloud-hosted routines even when your laptop is off.

Automation & scale
Goal & Tasks Systemcore
/goal <condition> · /tasks · ~/.claude/tasks/

Keep Claude working toward an explicit completion condition with tracked task state.

Automation & scale
Ralph Wiggum Loopcore
plugin · self-evolving loop

Autonomous iterative loop pattern that keeps cycling until tests and acceptance checks pass.

Automation & scale
Agent SDKcore
npm / pip package

Embed Claude Code's agent loop, tools, and hooks directly in your own services and pipelines.

Automation & scale
Claude in Chromecore
claude --chrome · extension

Let Claude drive a real browser tab, inspect console logs, and verify live UI changes.

Interfaces & bridges
Computer Usebeta
computer-use MCP · Desktop

Visual desktop interaction for end-to-end verification beyond CLI and browser DOMs.

Interfaces & bridges
Remote Control & Headlesscore
/remote-control · /rc · claude -p

Control local sessions remotely or run non-interactive headless tasks in scripts and CI.

Interfaces & bridges
Claude Code Web & Projectsbeta
claude.ai/code · Desktop app

Cloud-hosted sessions, project workspaces, and remote routines accessible from browser or mobile.

Interfaces & bridges
Artifacts & Designcore
/share · /design · /slides · /dataviz

Publish interactive pages, charts, slide decks, whiteboards, and UI mockups straight from a session.

Interfaces & bridges
Voice Dictation & Power-upscore
/voice · /powerup

Speak prompts directly into Claude Code and unlock guided interactive lessons.

Interfaces & bridges
Channels, Slack & Deep Linksbeta
--channels · @Claude · claude-cli://open

Trigger sessions from Slack, custom messaging channels, or repository deep links.

Interfaces & bridges
Devcontainerscore
.devcontainer/

Reproducible sandboxed container environments for safe autonomous execution.

Interfaces & bridges
Field-tested playbook

Sourced habits from the Claude Code team and practitioners.

Full 84-tip source log
Showing 48 of 48 sourced practices
Planning

Always start in Plan Mode

Switch to Plan Mode (Shift+Tab) to inspect architecture and agree on the approach before any file is edited.

Planning

Interview first, execute in a fresh session

Start with a minimal spec and ask Claude to interview you via AskUserQuestion, then execute the finished spec in a clean session.

Planningautonomous

Slice vertically (tracer bullets)

Break PRDs into vertical slices across DB + service + UI. AI defaults to horizontal layers, delaying end-to-end feedback until the end.

Planning

Phase-gate every plan with tests

Attach explicit unit, integration, or end-to-end verification checks to each phase so Claude proves progress before moving on.

Planning

Review plans with a second Claude or Codex

Spin up a fresh Claude as a staff engineer—or run a cross-model review—to critique your plan before writing code.

Planning

Prototype rapidly when specs are uncertain

When building is cheap, generate multiple working prototypes to discover the right design instead of over-polishing a speculative PRD.

Context

Stay under ~40% context for hard work

Quality degrades in the 'dumb zone' past ~40% context (and ~300–400k tokens on 1M models). Reset aggressively on complex reasoning.

Contextautonomous

Rewind beats correcting in-place

Double-Esc or /rewind back before a failed attempt and re-prompt with what you learned instead of polluting context with failed retries.

Context

Manual /compact <hint> beats auto-compact

Pass an explicit focus hint (/compact focus on auth refactor, drop test logs). Auto-compact fires when context rot is already peaking.

Contextautonomous

Offload noisy searches to subagents

Ask: 'Do I need the raw tool outputs or just the conclusion?' 20 file reads and 12 greps stay in the subagent; only the answer returns.

Sessions

Treat every turn as a branching point

After each turn, consciously choose Continue, /rewind, /compact, /clear, or Subagent based on how much context truly helps next.

Sessions

New task = new session

Reuse context for tight follow-ups (like docs for what you just built), but start a clean session for unrelated tasks.

Sessions

Use 'summarize from here' before rewinding

Have Claude write a crisp handoff note from its future self before rewinding, keeping discoveries without the dead-end noise.

Sessions

/rename parallel sessions for easy /resume

When running multiple Claude instances across tasks or worktrees, label each with /rename so you can jump back cleanly.

CLAUDE.md & Rules

Target under 200 lines in CLAUDE.md

Long instruction files get ignored. Keep root CLAUDE.md tight (~60–200 lines) and split domain details into .claude/rules/.

CLAUDE.md & Rules

Lazy-load rules with paths: frontmatter

Files in .claude/rules/*.md auto-load by default—add paths: globs in YAML frontmatter so rules load only when matching files are touched.

CLAUDE.md & Rules

Wrap conditional rules in <important if="...">

Explicit conditional XML tags help prevent Claude from overlooking domain-specific rules as instructions grow.

CLAUDE.md & Rules

Use ancestor + descendant CLAUDE.md in monorepos

Ancestors load at startup; subdirectory CLAUDE.md files load lazily when Claude reads files there; sibling packages never pollute context.

CLAUDE.md & Rules

Make 'run the tests' work on the first try

If a fresh Claude session cannot immediately build and test your repo, your CLAUDE.md is missing essential setup commands.

CLAUDE.md & Rules

Enforce deterministic rules in settings.json, not prose

Never write 'NEVER add Co-Authored-By' in CLAUDE.md when attribution.commit: "" in .claude/settings.json is 100% deterministic.

CLAUDE.md & Rules

Finish partial framework migrations

Half-migrated codebases confuse models into copying legacy patterns instead of your preferred architecture.

Skills

Skills are folders, not single files

Organize references/, scripts/, and examples/ subdirectories for progressive disclosure instead of dumping everything into SKILL.md.

Skills

Write description as a model trigger, not a summary

Claude uses description (and when_to_use) to decide when to auto-invoke a skill—phrase it around concrete user intents.

Skills

Maintain a Gotchas section in every skill

Record real failure modes Claude hits over time—Gotchas are the highest-signal lines in any skill.

Skills

Use context: fork for isolated skill execution

Set context: fork (and optional agent:) in frontmatter so intermediate tool calls stay in a child subagent and only the final output returns.

Skills

Inject live shell output with !`command`

Embed !`command` in SKILL.md or commands to execute shell commands at invocation time so the model only sees the fresh output.

Skillsautonomous

Give goals and scripts, don't railroad every step

Include helper scripts so Claude composes rather than re-writing boilerplate, and focus prose on non-obvious constraints.

Agents & Commands

Build feature-specific subagents with preloaded skills

Domain-focused subagents with preloaded skills outperform generic 'QA engineer' or 'backend engineer' personas.

Agents & Commands

Turn any daily repeated task into a /command or skill

If you do an inner-loop workflow more than once a day (tech debt, context dump, release check), check it into .claude/commands/ or skills.

Agents & Commands

Use test-time compute with separate windows

A separate context window running the exact same model will often spot bugs the original coding session missed.

Agents & Commands

Pair git worktrees with Agent Teams for parallel work

Use claude -w (git worktrees) and tmux-backed Agent Teams to run independent features simultaneously without merge conflicts.

Hooks & Safetyautonomous

Use /sandbox and Auto Mode over skip-permissions

File/network sandboxing cuts permission prompts by ~84%, and Auto Mode uses a classifier to block risky actions.

Hooks & Safety

Auto-format with a PostToolUse hook

Let a deterministic PostToolUse hook handle the last 10% of formatting so CI never fails on style.

Hooks & Safety

Use Stop hooks and on-demand safety hooks

Add Stop hooks to nudge end-of-turn verification, and skill-scoped hooks like /careful (block destructive ops) or /freeze (lock edit scope).

Hooks & Safety

Run /fewer-permission-prompts to tune allowlists

Scan your session history for safe, repeated read-only Bash/MCP calls and generate wildcard allowlists like Bash(npm run *).

Git & Review

Keep PRs small (~118 lines median) and squash merge

One focused feature per PR with squash merge keeps linear history trivial to review, bisect, and revert.

Git & Review

Run /code-review and /simplify before merging

Use /code-review for multi-agent correctness & security bugs, and /simplify for cleanup and reuse—they serve distinct jobs.

Git & Reviewautonomous

Tag @claude on PRs to generate lint rules

Turn recurring human review feedback into automated lint rules so the same mistake never appears twice.

Git & Reviewautonomous

Build a /go or /ship end-to-end verification skill

Chain live app testing + /simplify + PR creation so you return to verified, ready-to-review code.

Debugging

Give Claude real eyes: screenshots + browser MCP

Paste screenshots when stuck, or enable Claude in Chrome / Playwright / Chrome DevTools MCP so Claude reads console errors itself.

Debugging

Run dev servers as background tasks

Ask Claude to launch the server whose logs you want inspected as a background task so it can read live errors while iterating.

Debugging

Agentic search (glob + grep) beats vector RAG

Claude Code relies on live glob/grep instead of stale vector indexes—keep file names and module boundaries clean so search excels.

Debugging

Use /doctor for CLI, auth, and config diagnostics

Run /doctor whenever authentication, MCP discovery, or settings behave unexpectedly.

Prompting & Limitsautonomous

Challenge Claude to prove it works

Ask 'grill me on these changes before opening a PR' or 'diff against main and prove this works' instead of rubber-stamping.

Prompting & Limitsautonomous

Scrap mediocre fixes for the elegant solution

When a patch feels hacky, tell Claude: 'Knowing everything you know now, scrap this and implement the elegant solution.'

Prompting & Limitsautonomous

Paste the bug, say 'fix', don't micromanage

Give the exact error, reproduction, and acceptance criteria—let Claude diagnose the root cause instead of dictating line edits.

Prompting & Limits

Tune effort, thinking, /focus, and /voice

Use Opus for planning, adaptive effort (low→max) or ultrathink for hard reasoning, /focus to hide noise, and /voice for fast dictation.

Prompting & Limits

Check /usage, free limit resets, and Console credits

Track limits with /usage, check Settings → Usage for occasional free resets, and link a Console org on Max/Ultra for monthly API credits.

Workflows & cross-model

Major systems converge on Research → Plan → Execute → Review → Ship.

SkillHey task topics
Workflow repoFocusPipeline (highlighted tags = repeatable sub-loops)A / C / S
Matt Pocock SkillsSpec & TDD engineering
grill-with-docsdomain-modelingto-specto-ticketsimplementtddcode-reviewpr
0 / 0 / 39
SuperpowersSkill-driven lifecycle
brainstorminggit-worktreeswriting-plansexecuting-planstddcode-reviewverificationfinish-branch
0 / 0 / 15
Everything Claude CodeFull-stack catalog
plantestimplementreviewverifyrememberimprove
72 / 99 / 328
Spec KitSpec-driven commands
/speckit.constitution/speckit.specify/speckit.plan/speckit.tasks/speckit.implement/speckit.converge
0 / 9 / 0
gstackMulti-role review gates
/office-hours/autoplanceo/eng/design review/review/qa/gstack-ship/retro
0 / 0 / 62
addyosmani/agent-skillsClean 6-stage pipeline
/spec/plan/build/test/review/ship
3 / 7 / 21
OpenSpecChange-proposal specs
exploreproposeapply-changeverify-changearchive-change
0 / 0 / 13
Get Shit Done (GSD)Milestone & phase runner
new-projectnew-milestonespec-phaseplan-phaseexecute-phaseverify-workship
33 / 85 / 0
BMAD-METHODAgile role orchestration
brainstormingfacilitatebuildcode-reviewqa-e2e-testsretrospective
7 / 0 / 32
oh-my-claudecodeTeam-based execution
deep-interviewplanteam-planteam-execteam-verifyteam-fixrelease
19 / 21 / 84
Compound EngineeringCompounding knowledge
/ce-setup/ce-brainstorm/ce-plan/ce-work/ce-noslop/ce-compound
0 / 1 / 38
HumanLayerResearch → Design → Orchestrate
grind-researchdesign-discussioncodebase-designsubagent-orchestratortest-locallybump-version
0 / 0 / 29
01

Orchestrate Command → Agent → Skill

Keep the main thread clean by splitting user entry, autonomous exploration, and deliverable generation.

Inputs
Entry /command, isolated subagent, preloaded domain skill
Steps
  1. Trigger a /command that collects minimal inputs (zero idle context cost)
  2. Delegate exploration to an isolated subagent with preloaded skills
  3. Run an inline or forked skill to produce and verify the final output
Check
Main context stays lean while intermediate tool noise stays inside the subagent.
Open workflow reference
02

Cross-model plan & QA review

Catch blind spots by pairing Claude Code with a second model via plugin, MCP, or router.

Inputs
Plan or diff, secondary model (Codex / Gemini / OpenRouter)
Steps
  1. Draft the plan and implement inside Claude Code using Plan Mode
  2. Run /codex:review or a two-terminal Codex QA pass on the plan or diff
  3. Fix real defects, run /simplify and tests, then open a small PR
Check
Independent model critique flags edge cases before merge.
Open workflow reference
03

Verify UI changes in a live browser

Replace 'looks right in prose' with real runtime logs, screenshots, and browser checks.

Inputs
Target route, dev server background task, acceptance criteria
Steps
  1. Start the dev server as a background task so Claude can read live logs
  2. Make focused edits using existing design tokens and run /verify
  3. Inspect desktop/mobile layouts and console errors via Chrome or Playwright MCP
Check
The live route renders cleanly with zero console or build errors.
Open related path
Commands & bundled skills

Filter and copy CLI flags, shortcuts, and built-in skills.

All 30 official bundled skills
Command / shortcutTypeWhat it doesCopy
claudecliStart an interactive session from the project root.
claude -p "…"cliRun a single non-interactive prompt for scripts and CI.
claude -w / --worktreecliLaunch an isolated session in a dedicated git worktree.
claude --continuecliResume the most recent conversation in this project.
claude --from-pr <PR>cliResume sessions linked to a specific GitHub PR number or URL.
claude --resume --fork-sessioncliFork a previous session into a new session ID without mutating the original.
claude --remote / --teleportcliStart a cloud web session (--remote) or pull a web session into your local terminal (--teleport).
claude -p "…" --output-format json --json-schema <S>cliHeadless structured output validated against a JSON Schema for CI and scripts.
claude --strict-mcp-config --mcp-config <PATH>cliLoad only the specified MCP config file for reproducible or isolated runs.
/rename & /resumeslashLabel parallel sessions and jump back to them later.
/branchslashFork a session at the current point to explore an alternative path.
claude --chromecliStart with Claude in Chrome enabled for live browser inspection.
/remote-control (/rc)slashConnect to and control a local session remotely.
Shift+TabshortcutCycle permission modes: Ask → Plan → Auto.
Esc Esc / /rewindshortcutRewind conversation and file edits back before a failed attempt.
/contextslashInspect current context window usage before rot sets in.
/compact <focus hint>slashSummarize context while keeping specific files or decisions intact.
/clearslashReset to a fresh context window when switching to a new task.
/permissions & /sandboxslashConfigure wildcard allowlists and OS-level file/network isolation.
/model & /configslashSet model, effort slider (low→max), thinking mode, and output style.
/focus & /fastslashHide intermediate tool chatter (/focus) or toggle fast model tier (/fast).
/memoryslashInspect loaded CLAUDE.md, .claude/rules/, and auto-memory files.
/usage & /extra-usageslashCheck plan rate limits and configure overflow billing.
/code-review [level] [pr#]bundled-skillMulti-agent diff review for correctness bugs (--comment posts inline).
/simplifybundled-skillParallel 4-agent pass for reuse, simplification, and abstraction cleanup.
/security-review [--fix]bundled-skillAudit the current diff for security vulnerabilities and suggest or apply fixes.
/verify & /runbundled-skillBuild, launch, and drive the real app to verify a change end-to-end.
/ship [level] [pr]bundled-skillCommit, push, open a PR, run review, and watch CI/feedback.
/steward [pr]bundled-skillWatch an open PR and push fixes for review comments and failing checks.
/loop & /schedulebundled-skillRun recurring local monitoring (/loop) or cloud routines (/schedule).
/batch & /workflowsbundled-skillRun bulk file operations or dynamic multi-agent workflow scripts.
/goal <condition>slashKeep working autonomously until an explicit condition is met.
/fewer-permission-promptsbundled-skillScan transcripts for safe repeated commands and recommend settings.json allowlists.
/doctor & /skill-doctorbundled-skillDiagnose CLI/auth health or prune unused skills costing context tokens.
/update-configbundled-skillDescribe a harness change in plain English and let Claude edit settings.json.
/mcp & /hooksslashInspect active MCP servers, connection health, and configured hooks.
/designbundled-skillDraft UI mockups, screen flows, and landing pages as canvas artboards.
/slidesbundled-skillGenerate an editable presentation artifact directly from your brief.
/datavizbundled-skillCreate accessible charts and dashboards with palette validation.
/whiteboard & /motionbundled-skillGenerate architecture whiteboards or animated explainers as artifacts.
Environment & subcommands

Key startup environment variables & top-level subcommands

Full CLI flags reference
Variable / subcommandWhereEffect
CLAUDE_AUTOCOMPACT_PCT_OVERRIDEsettings.json envOverride the context percentage threshold (e.g. 80) before auto-compact triggers.
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1Shell / envEnable multi-instance Agent Teams coordination (pairs well with tmux).
CLAUDE_CODE_NO_FLICKER=1Shell / envEnable flicker-free fullscreen TUI rendering for long streaming sessions.
CLAUDE_CODE_EFFORT_LEVELShell / envSet default thinking effort (low, medium, high, xhigh, max) at startup.
CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1Shell / envLoad CLAUDE.md files from additional attached directories.
CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1Shell / envEnable experimental Code Mode for compact multi-step tool execution.
DISABLE_AUTOUPDATER=1Shell / envPin your current Claude Code CLI version in CI or managed setups.
claude mcp / plugin / agents / updateCLI subcommandTop-level subcommands to manage MCP servers, plugins, agent lists, and CLI updates.
Common locationsCLAUDE.md.claude/rules/.claude/settings.json.claude/skills/.claude/agents/.claude/commands/.claude/hooks/.mcp.jsonSettings guide
Ecosystem directory

Curated skill packs, subagent libraries, hooks, and hubs.

Every entry links to a primary repository or official guide. Check maintenance status, permissions, and licenses before adding to production repos.

Reusable SKILL.md libraries

Skill collections

Curated libraries of progressive-disclosure skills (distinct from full end-to-end workflow frameworks above).

Control surface & harness

Subagents, hooks & status line

Tune the environment around Claude: isolated subagent libraries, deterministic lifecycle hooks, and live status bars.

Connected capability

MCP, browser & cross-model

Stick to 3–4 high-ROI daily servers (Research: Context7/DeepWiki → Debug: Playwright/Chrome → Diagram: Excalidraw), plus cross-model bridges.

Living discovery sources

Best-practice hubs & ecosystems

Primary community hubs tracking official releases, changelogs, and ecosystem tools. Always verify versions and licenses.

Troubleshooting

Diagnose by the symptom you see.

Official troubleshooting
SymptomLikely causeCheckFix or rollback
Claude ignores CLAUDE.md rulesFile is too long (>200 lines) or uses prose for a deterministic harness ruleMeasure CLAUDE.md length and inspect /memory for loaded filesTrim under 200 lines, wrap scoped rules in <important if="...">, or enforce via settings.json / hooks
Output quality degrades mid-sessionContext crossed ~40% (or ~300–400k on 1M) or holds failed retriesRun /context to see what is consuming the windowUse /rewind before the bad turn, /compact <hint>, offload searches to subagents, or /clear
Constant permission promptsNo sandbox or wildcard allowlist configured for safe commandsRun /permissions and review repeated read-only tool callsEnable /sandbox, switch to Auto Mode (Shift+Tab), or run /fewer-permission-prompts
Skill does not trigger or bloats contextPath is outside loaded roots, description is vague, or unused skills pile upRun /skill-doctor and check .claude/skills/<name>/SKILL.md frontmatterRewrite description as a clear trigger, add paths: scoping, or prune unused skills
MCP or CLI auth failsBroken server process, missing env vars, or stale CLI versionRun /doctor and /mcp to inspect status and logsUpdate Claude Code, disable the broken MCP server, and retry cleanly
Changes look right in text but break liveNo real runtime verification step was included in the loopInspect running app logs, tests, or browser console outputStart the app in a background task and verify via /verify, screenshots, or Chrome MCP
Learn, deep dives & community

A 12-step ramp-up, primary reports, talks, and people to follow.

Treat the ecosystem as a curriculum, then assemble your own minimal harness.

01
Environment & /doctor

Install Claude Code, run /doctor, and open from the project root.

02
Lean CLAUDE.md

Write a sub-200-line CLAUDE.md so 'run the tests' works on the first try.

03
Plan Mode first

Use Shift+Tab Plan Mode and AskUserQuestion before editing files.

04
Context hygiene

Track /context, prefer /rewind over stacking fixes, and /compact with hints.

05
Primitives boundary

Distinguish Skills, Commands, Subagents, Hooks, Rules, and MCPs.

06
Command → Agent → Skill

Compose a thin /command that delegates to an isolated subagent and skill.

07
Harness & /sandbox

Move hard rules into .claude/settings.json, wildcards, and PostToolUse hooks.

08
Real verification

Pair background dev servers with /verify, screenshots, or browser MCPs.

09
Parallel worktrees

Use claude -w (git worktrees) and /rename to run clean parallel tasks.

10
Code review & shipping

Keep PRs small, run /code-review and /simplify, and squash merge.

11
Cross-model QA

Add Codex or multi-model MCP checks for adversarial plan and diff review.

12
Scheduled & team loops

Explore /loop, /schedule routines, /goal, and Agent Teams for longer runs.

Reports & talks

Deep-dive engineering reports and primary talks

View full repository
Open architecture questions to evaluate in your repo
Memory & instructions
  • What belongs in CLAUDE.md vs .claude/rules/ vs settings.json—and when is a rule stale?
  • How do you prevent models from ignoring critical prose constraints as repositories scale?
Primitives & composition
  • When does a custom command/agent/skill beat vanilla Claude Code with Plan Mode?
  • How do you merge personal coding-style skills with community skills when they disagree?
Specs & regeneration
  • Should every feature keep a living markdown spec—and how do you handle ripple effects?
  • How close are we to regenerating clean modules directly from specs and tests?