Claude Code Best Practice

Skillv1.0.0

from vibe coding to agentic engineering - practice makes claude perfect

by shanraisshanCoding & Development★★★★★★★★★★No reviews0 installs69.4K stars6.9K forks

Claude Code Best Practice is an AI skill in the Coding & Development category, published by shanraisshan.

from vibe coding to agentic engineering - practice makes claude perfect

updated with Claude Code <a href="https://github.com/shanraisshan/claude-code-best-practice/stargazers"><img src="https://img.shields.io/github/stars/shanraisshan/claude-code-best-practice?style=flat&label=%E2%98%85&labelColor=555&color=white" alt="GitHub Stars"></a><br>

Best Practice Implemented Orchestration Workflow Claude Boris Community Click on these badges below to see the actual sources<br> <img src="!/tags/a.svg" height="14"> = Agents · <img src="!/tags/c.svg" height="14"> = Commands · <img src="!/tags/s.svg" height="14"> = Skills

<p align="center"> <img src="!/claude-jumping.svg" alt="Claude Code mascot jumping" width="120" height="100"><br> <a href="https://github.com/trending"><img src="!/root/github-trending-day.svg" alt="GitHub Trending #1 Repository Of The Day"></a> </p> <p align="center"> <img src="!/root/supported-label.svg" alt="Supported by:" height="34">&nbsp;&nbsp;<a href="https://disrupt.com/?utm_source=github&utm_campaign=shayan_claude_code_best_practice"><img src="!/root/supported-disrupt.svg" alt="Disrupt.com — Ventures Reimagined" height="34"></a>&nbsp;&nbsp;<a href="https://www.articos.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=shayan_claude_code_best_practice"><img src="!/root/supported-articos.svg" alt="Articos — Synthetic user research" height="34"></a> </p> <p align="center"> <img src="!/root/boris-slider.gif" alt="Boris Cherny on Claude Code" width="600"><br> Boris Cherny on X (<a href="https://x.com/bcherny/status/2007179832300581177">tweet 1</a> · <a href="https://x.com/bcherny/status/2017742741636321619">tweet 2</a> · <a href="https://x.com/bcherny/status/2021699851499798911">tweet 3</a>) </p>

[!TIP] Visit the How to Use section to take full advantage of this repo.

🧠 CONCEPTS

| Feature | Location | Description | |---------|----------|-------------| | <img src="!/tags/a.svg" height="14"> Subagents | .claude/agents/<name>.md | Best Practice Implemented | | <img src="!/tags/c.svg" height="14"> Commands | .claude/commands/<name>.md | Best Practice Implemented | | <img src="!/tags/s.svg" height="14"> Skills | .claude/skills/<name>/SKILL.md | Best Practice Implemented Official Skills · Skills for Mono-repos | | Workflows | .claude/commands/weather-orchestrator.md | Orchestration Workflow | | Hooks | .claude/hooks/ | Best Practice Implemented Guide | | MCP Servers | .claude/settings.json, .mcp.json | Best Practice Implemented | | Plugins | distributable packages | Marketplaces · Create Marketplaces · Mods | | Settings | .claude/settings.json | Best Practice Implemented Permissions · Model Config · Output Styles · Sandboxing · Keybindings · Auto Mode Config | | Status Line | .claude/settings.json | Best Practice Implemented | | Memory | CLAUDE.md, .claude/rules/, ~/.claude/rules/, ~/.claude/projects/<project>/memory/ | Best Practice Implemented Auto Memory · Auto Memory Deep-dive · Rules | | Checkpointing | automatic (file-edit tracking) | | | Sessions | --resume, --continue, /resume, /branch | | | Context Window | /compact, /clear, /context | | | CLI Startup Flags | claude [flags] | Best Practice Interactive Mode · Env Vars | | AI Terms | | Best Practice | | Best Practices | | Prompt Engineering · Extend Claude Code | | Prompt Library | | |

🔥 Hot

| Feature | Location | Description | |---------|----------|-------------| | Ultrareview beta | /code-review ultra, claude ultrareview [target] | Tasks tracking | | Devcontainers | .devcontainer/ | | | Channels beta | --channels, plugin-based | Reference | | No Flicker Mode beta | /tui fullscreen, CLAUDE_CODE_NO_FLICKER=1 | Best Practice | | Auto Mode | --permission-mode auto, Shift+Tab | Best Practice Blog | | Power-ups | /powerup | Best Practice | | Fast Mode beta | /fast, "fastMode": true | | | Advisor beta | /advisor, advisorModel, --advisor | Blog | | Code Mode beta | CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 | | | Computer Use beta | computer-use MCP server | Desktop | | Agent SDK | npm / pip package | Quickstart · Examples | | Ralph Wiggum Loop | plugin | Best Practice Implemented | | Chrome | --chrome, extension | Best Practice | | Claude Code Web beta | claude.ai/code | Routines | | Projects beta | claude.ai/code, Desktop app | | | Artifacts | /share, Artifact tool | | | Slack | @Claude in Slack | Claude Tag | | Code Review | GitHub App (managed) | Best Practice Blog Local /code-review | | GitHub Actions | .github/workflows/ | GitLab CI/CD | | Remote Control | /remote-control, /rc | Best Practice Headless Mode | | Deep Links | claude-cli://open?repo=…&q=… | | | Dynamic Workflows | /workflows, ultracode keyword, /effort ultracode, .claude/workflows/ | Deep Research | | Agent Teams beta | built-in (env var) | Best Practice Implemented | | Agent View beta | claude agents, --bg, /bg | | | Cross-Session Messaging | SendMessage, ListAgents, /list-agents | | | Scheduled Tasks | /loop, /schedule, cron tools | Best Practice Implemented Desktop scheduled tasks · Announcement | | Routines beta | claude.ai/code/routines, /schedule | Desktop Tasks | | Tasks | /tasks, ~/.claude/tasks/ | Best Practice Ultrareview tracking | | Goal | /goal <condition>, /goal clear | Implemented | | Voice Dictation | /voice | Best Practice | | Bundled Skills | /code-review, /batch | Best Practice | | Git Worktrees | --worktree/-w, .worktreeinclude, EnterWorktree/ExitWorktree, isolation: "worktree", WorktreeCreate/WorktreeRemove hooks | Best Practice |

<p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p>

<a id="orchestration-workflow"></a>

<a href="orchestration-workflow/orchestration-workflow.md"><img src="!/tags/orchestration-workflow-hd.svg" alt="Orchestration Workflow"></a>

See orchestration-workflow for implementation details of <img src="!/tags/c.svg" height="14"> Command → <img src="!/tags/a.svg" height="14"> Agent → <img src="!/tags/s.svg" height="14"> Skill pattern.

<p align="center"> <img src="orchestration-workflow/orchestration-workflow.svg" alt="Command Skill Agent Architecture Flow" width="100%"> </p> <p align="center"> <img src="orchestration-workflow/orchestration-workflow.gif" alt="Orchestration Workflow Demo" width="600"> </p>

How to Use

claude
/weather-orchestrator
<p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p>

⚙️ DEVELOPMENT WORKFLOWS

All major workflows converge on the same architectural pattern: Research → Plan → Execute → Review → Ship

| Name | ★ | Workflow | <img src="!/tags/a.svg" height="14"> | <img src="!/tags/c.svg" height="14"> | <img src="!/tags/s.svg" height="14"> | |------|---|----------|---|---|---| | Matt Pocock Skills | 331k | <img src="https://img.shields.io/badge/setup--matt--pocock--skills-ddf4ff" alt="setup-matt-pocock-skills" align="middle"> → <img src="https://img.shields.io/badge/grill--me-ddf4ff" alt="grill-me" align="middle"> → <img src="https://img.shields.io/badge/to--spec-ddf4ff" alt="to-spec" align="middle"> → <img src="https://img.shields.io/badge/to--tickets-ddf4ff" alt="to-tickets" align="middle"> → <img src="https://img.shields.io/badge/implement-ddf4ff" alt="implement" align="middle"> → <img src="https://img.shields.io/badge/tdd-fff3b0" alt="tdd" align="middle"> → <img src="https://img.shields.io/badge/code--review-fff3b0" alt="code-review" align="middle"> → <img src="https://img.shields.io/badge/diagnosing--bugs-fff3b0" alt="diagnosing-bugs" align="middle"> → <img src="https://img.shields.io/badge/improve--codebase--architecture-ddf4ff" alt="improve-codebase-architecture" align="middle"> | 0 | 0 | 39 | | Superpowers | 324k | <img src="https://img.shields.io/badge/brainstorming-ddf4ff" alt="brainstorming" align="middle"> → <img src="https://img.shields.io/badge/using--git--worktrees-ddf4ff" alt="using-git-worktrees" align="middle"> → <img src="https://img.shields.io/badge/writing--plans-ddf4ff" alt="writing-plans" align="middle"> → <img src="https://img.shields.io/badge/subagent--driven--development-ddf4ff" alt="subagent-driven-development" align="middle"> → <img src="https://img.shields.io/badge/implementer-fff3b0" alt="implementer" align="middle"> → <img src="https://img.shields.io/badge/task--reviewer-fff3b0" alt="task-reviewer" align="middle"> → <img src="https://img.shields.io/badge/test--driven--development-fff3b0" alt="test-driven-development" align="middle"> → <img src="https://img.shields.io/badge/requesting--code--review-fff3b0" alt="requesting-code-review" align="middle"> → <img src="https://img.shields.io/badge/finishing--a--development--branch-ddf4ff" alt="finishing-a-development-branch" align="middle"> | 0 | 0 | 15 | | Everything Claude Code | 309k | <img src="https://img.shields.io/badge/plan-ddf4ff" alt="plan" align="middle"> → <img src="https://img.shields.io/badge/tdd--workflow-fff3b0" alt="tdd-workflow" align="middle"> → <img src="https://img.shields.io/badge/implement-ddf4ff" alt="implement" align="middle"> → <img src="https://img.shields.io/badge/code--review-ddf4ff" alt="code-review" align="middle"> → <img src="https://img.shields.io/badge/security--scan-fff3b0" alt="security-scan" align="middle"> → <img src="https://img.shields.io/badge/build--fix-fff3b0" alt="build-fix" align="middle"> → <img src="https://img.shields.io/badge/save--session-ddf4ff" alt="save-session" align="middle"> | 72 | 112 | 328 | | Spec Kit | 151k | <img src="https://img.shields.io/badge/%2Fspeckit.constitution-ddf4ff" alt="/speckit.constitution" align="middle"> → <img src="https://img.shields.io/badge/%2Fspeckit.specify-ddf4ff" alt="/speckit.specify" align="middle"> → <img src="https://img.shields.io/badge/%2Fspeckit.plan-ddf4ff" alt="/speckit.plan" align="middle"> → <img src="https://img.shields.io/badge/%2Fspeckit.tasks-ddf4ff" alt="/speckit.tasks" align="middle"> → <img src="https://img.shields.io/badge/%2Fspeckit.implement-fff3b0" alt="/speckit.implement" align="middle"> → <img src="https://img.shields.io/badge/%2Fspeckit.converge-fff3b0" alt="/speckit.converge" align="middle"> | 0 | 9 | 0 | | gstack | 142k | <img src="https://img.shields.io/badge/%2Foffice--hours-ddf4ff" alt="/office-hours" align="middle"> → <img src="https://img.shields.io/badge/%2Fautoplan-ddf4ff" alt="/autoplan" align="middle"> → <img src="https://img.shields.io/badge/%2Fplan--ceo--review-fff3b0" alt="/plan-ceo-review" align="middle"> → <img src="https://img.shields.io/badge/%2Fplan--eng--review-fff3b0" alt="/plan-eng-review" align="middle"> → <img src="https://img.shields.io/badge/%2Fplan--design--review-fff3b0" alt="/plan-design-review" align="middle"> → <img src="https://img.shields.io/badge/%2Fplan--devex--review-fff3b0" alt="/plan-devex-review" align="middle"> → <img src="https://img.shields.io/badge/%2Freview-ddf4ff" alt="/review" align="middle"> → <img src="https://img.shields.io/badge/%2Fqa-ddf4ff" alt="/qa" align="middle"> → <img src="https://img.shields.io/badge/%2Fship-ddf4ff" alt="/ship" align="middle"> → <img src="https://img.shields.io/badge/%2Fland--and--deploy-ddf4ff" alt="/land-and-deploy" align="middle"> → <img src="https://img.shields.io/badge/%2Fretro-ddf4ff" alt="/retro" align="middle"> | 0 | 0 | 64 | | agent-skills | 99.7k | <img src="https://img.shields.io/badge/%2Fspec-ddf4ff" alt="/spec" align="middle"> → <img src="https://img.shields.io/badge/%2Fplan-ddf4ff" alt="/plan" align="middle"> → <img src="https://img.shields.io/badge/%2Fbuild-ddf4ff" alt="/build" align="middle"> → <img src="https://img.shields.io/badge/%2Ftest-ddf4ff" alt="/test" align="middle"> → <img src="https://img.shields.io/badge/%2Freview-ddf4ff" alt="/review" align="middle"> → <img src="https://img.shields.io/badge/%2Fship-ddf4ff" alt="/ship" align="middle"> | 3 | 7 | 21 | | OpenSpec | 75.5k | <img src="https://img.shields.io/badge/openspec--explore-ddf4ff" alt="openspec-explore" align="middle"> → <img src="https://img.shields.io/badge/openspec--propose-ddf4ff" alt="openspec-propose" align="middle"> → <img src="https://img.shields.io/badge/review-ddf4ff" alt="review" align="middle"> → <img src="https://img.shields.io/badge/openspec--apply--change-ddf4ff" alt="openspec-apply-change" align="middle"> → <img src="https://img.shields.io/badge/openspec--verify--change-fff3b0" alt="openspec-verify-change" align="middle"> → <img src="https://img.shields.io/badge/openspec--archive--change-ddf4ff" alt="openspec-archive-change" align="middle"> | 0 | 0 | 12 | | Get Shit Done | 64.1k | <img src="https://img.shields.io/badge/%2Fgsd--new--project-ddf4ff" alt="/gsd-new-project" align="middle"> → <img src="https://img.shields.io/badge/%2Fgsd--new--milestone-ddf4ff" alt="/gsd-new-milestone" align="middle"> → <img src="https://img.shields.io/badge/%2Fgsd--spec--phase-ddf4ff" alt="/gsd-spec-phase" align="middle"> → <img src="https://img.shields.io/badge/%2Fgsd--plan--phase-ddf4ff" alt="/gsd-plan-phase" align="middle"> → <img src="https://img.shields.io/badge/%2Fgsd--execute--phase-fff3b0" alt="/gsd-execute-phase" align="middle"> → <img src="https://img.shields.io/badge/%2Fgsd--verify--work-fff3b0" alt="/gsd-verify-work" align="middle"> → <img src="https://img.shields.io/badge/%2Fgsd--complete--milestone-ddf4ff" alt="/gsd-complete-milestone" align="middle"> → <img src="https://img.shields.io/badge/%2Fgsd--ship-ddf4ff" alt="/gsd-ship" align="middle"> | 33 | 85 | 0 | | BMAD-METHOD | 55.6k | <img src="https://img.shields.io/badge/bmad--brainstorming-ddf4ff" alt="bmad-brainstorming" align="middle"> → <img src="https://img.shields.io/badge/bmad--facilitate-ddf4ff" alt="bmad-facilitate" align="middle"> → <img src="https://img.shields.io/badge/bmad--build-ddf4ff" alt="bmad-build" align="middle"> → <img src="https://img.shields.io/badge/bmad--code--review-fff3b0" alt="bmad-code-review" align="middle"> → <img src="https://img.shields.io/badge/bmad--qa--generate--e2e--tests-fff3b0" alt="bmad-qa-generate-e2e-tests" align="middle"> → <img src="https://img.shields.io/badge/bmad--retrospective-ddf4ff" alt="bmad-retrospective" align="middle"> | 7 | 0 | 33 | | oh-my-claudecode | 41.0k | <img src="https://img.shields.io/badge/deep--interview-ddf4ff" alt="deep-interview" align="middle"> → <img src="https://img.shields.io/badge/plan-ddf4ff" alt="plan" align="middle"> → <img src="https://img.shields.io/badge/team-ddf4ff" alt="team" align="middle"> → <img src="https://img.shields.io/badge/team--plan-fff3b0" alt="team-plan" align="middle"> → <img src="https://img.shields.io/badge/team--prd-fff3b0" alt="team-prd" align="middle"> → <img src="https://img.shields.io/badge/team--exec-fff3b0" alt="team-exec" align="middle"> → <img src="https://img.shields.io/badge/team--verify-fff3b0" alt="team-verify" align="middle"> → <img src="https://img.shields.io/badge/team--fix-fff3b0" alt="team-fix" align="middle"> → <img src="https://img.shields.io/badge/release-ddf4ff" alt="release" align="middle"> | 19 | 21 | 84 | | Compound Engineering | 26.2k | <img src="https://img.shields.io/badge/%2Fce--setup-ddf4ff" alt="/ce-setup" align="middle"> → <img src="https://img.shields.io/badge/%2Fce--brainstorm-ddf4ff" alt="/ce-brainstorm" align="middle"> → <img src="https://img.shields.io/badge/%2Fce--plan-ddf4ff" alt="/ce-plan" align="middle"> → <img src="https://img.shields.io/badge/%2Fce--work-ddf4ff" alt="/ce-work" align="middle"> → <img src="https://img.shields.io/badge/%2Fce--noslop-fff3b0" alt="/ce-noslop" align="middle"> → <img src="https://img.shields.io/badge/%2Fce--compound-ddf4ff" alt="/ce-compound" align="middle"> → <img src="https://img.shields.io/badge/%2Fce--compound--refresh-fff3b0" alt="/ce-compound-refresh" align="middle"> | 0 | 1 | 38 | | HumanLayer | 12.9k | <img src="https://img.shields.io/badge/grind--research-ddf4ff" alt="grind-research" align="middle"> → <img src="https://img.shields.io/badge/grind--design--discussion-ddf4ff" alt="grind-design-discussion" align="middle"> → <img src="https://img.shields.io/badge/codebase--design-ddf4ff" alt="codebase-design" align="middle"> → <img src="https://img.shields.io/badge/subagent--orchestrator-fff3b0" alt="subagent-orchestrator" align="middle"> → <img src="https://img.shields.io/badge/test--it--locally-fff3b0" alt="test-it-locally" align="middle"> → <img src="https://img.shields.io/badge/bump--version-ddf4ff" alt="bump-version" align="middle"> | 0 | 0 | 29 |

Note: yellow tags are sub-loops — steps that repeat inside a parent step (e.g. per task, per story, or until a verify condition passes).

Others

<p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p>

🔀 CROSS-MODEL WORKFLOWS

Use Claude Code together with other models — Codex, Gemini, GPT, Kimi, DeepSeek, local — via three mechanisms:

  • Plugin — another model's CLI runs inside Claude Code (slash commands like /codex:review)
  • MCP — Claude Code calls another model as a tool through Model Context Protocol
  • Router — Claude Code's API endpoint is swapped to a different provider

Methodology: Cross-Model (Claude Code + Codex) Workflow Implemented — manual two-terminal flow with Plan in Claude, QA-Review in Codex.

| Name | ★ | Type | Bridges to | What it does | |------|---|------|------------|--------------| | musistudio/claude-code-router | 34k | Router | OpenRouter, DeepSeek, Ollama, Gemini, Kimi, Qwen, Groq, +more | Routes Claude Code's API to any compatible provider, with per-task model selection | | router-for-me/CLIProxyAPI | 32k | Router | Gemini CLI, Codex, Claude Code, Antigravity | Wraps each CLI as an OpenAI/Gemini/Claude/Codex-compatible API service | | openai/codex-plugin-cc | 18k | Plugin | Codex / GPT-5 | Official OpenAI plugin: /codex:review, /codex:adversarial-review, /codex:rescue inside Claude Code | | BeehiveInnovations/pal-mcp-server | 12k | MCP | Gemini, OpenAI, Azure, Grok, Ollama, OpenRouter (50+ models) | Multi-model MCP server (formerly zen-mcp-server) — call other models as Claude tools |

<p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p>

🧰 SKILL COLLECTIONS

Repos primarily known as curated libraries of SKILL.md files (distinct from full workflow methodologies above). Sorted by stars descending.

| Name | ★ | <img src="!/tags/s.svg" height="14"> | |------|---|---| | mattpocock/skills | 322k | 27 | | anthropics/skills | 193k | 19 | | Egonex-AI/Understand-Anything | 67k | 8 | | scientific-agent-skills | 57k | 177 | | wshobson/agents | 42k | 185 | | awesome-agent-skills | 37k | 1,497+ (curated list) | | impeccable | 27k | 1 (with 7 design domain references) | | agent-skills | 27k | 21 | | claude-skills | 15k | 246 (across 9 domains) | | shanraisshan/draw-json-architecture-skill | 3 | 1 |

<p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p>

🤖 AGENT COLLECTIONS

Repos primarily known as curated libraries of subagent definitions (.claude/agents/*.md). Sorted by stars descending.

| Name | ★ | <img src="!/tags/a.svg" height="14"> | |------|---|---| | msitarzewski/agency-agents | 168k | 283 | | VoltAgent/awesome-claude-code-subagents | 27k | 170 (curated list) |

<p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p>

💡 TIPS AND TRICKS (84)

🚫👶 = do not babysit

Prompting · Planning · Context · Session · CLAUDE.md + .claude/rules · Agents · Commands · Skills · Hooks · Workflows · Advanced · Git / PR · Debugging · Utilities · Daily · Usage / Limits

Community

<a id="tips-prompting"></a>■ Prompting (3)

| Tip | Source | |-----|--------| | challenge Claude — "grill me on these changes and don't make a PR until I pass your test." or "prove to me this works" and have Claude diff between main and your branch 🚫👶 | Boris | | after a mediocre fix — "knowing everything you know now, scrap this and implement the elegant solution" 🚫👶 | Boris | | Claude fixes most bugs by itself — paste the bug, say "fix", don't micromanage how 🚫👶 | Boris |

<a id="tips-planning"></a>■ Planning/Specs (7)

| Tip | Source | |-----|--------| | always start with plan mode | Boris | | start with a minimal spec or prompt and ask Claude to interview you using AskUserQuestion tool, then make a new session to execute the spec | Thariq | | always make a phase-wise gated plan, with each phase having multiple tests (unit, automation, integration) | Dex Video | | break PRDs into vertical slices (tracer bullets) that cross all layers (DB + service + UI) — AI defaults to horizontal phasing (DB phase, then API phase, then frontend phase) which delays end-to-end feedback until the last phase. From the Pragmatic Programmer 🚫👶 | Matt Video | | spin up a second Claude to review your plan as a staff engineer, or use cross-model for review | Boris | | write detailed specs and reduce ambiguity before handing work off — the more specific you are, the better the output | Boris | | prototype > PRD — build 20-30 versions instead of writing specs, the cost of building is low so take many shots | Boris Video |

<a id="tips-context"></a>■ Context (5)

| Tip | Source | |-----|--------| | context rot kicks in around ~300-400k tokens on the 1M context model — don't let sessions drift past that for intelligence-sensitive work | Thariq | | dumb zone kicks in around ~40% context — "you hit this point where you have degrading results". Newcomers: "shoot to keep it under 40%, and if you get up to 60%, think about wrapping it up". Experienced: "aggressively keep it below 30%" — push to 60% only on simple tasks. Manual /compact or /clear to reset when switching tasks | Dex Video | | rewind > correct — double-Esc or /rewind back to before the failed attempt and re-prompt with what you learned, instead of leaving failed attempts + corrections polluting context 🚫👶 | Thariq | | /compact with a hint (/compact focus on the auth refactor, drop the test debugging) beats letting autocompact fire — the model is at its least intelligent point when auto-compacting due to context rot | Thariq | | use subagents for context management — ask yourself "will I need this tool output again, or just the conclusion?" — 20 file reads + 12 greps + 3 dead ends stay in the child's context, only the final report returns 🚫👶 | Thariq |

<a id="tips-session"></a>■ Session Management (6)

| Tip | Source | |-----|--------| | every turn is a branching point — after Claude ends a turn, pick between Continue, /rewind, /clear, /compact, or Subagent based on how much existing context you need to carry forward | Thariq | | new task = new session — related tasks (e.g. writing docs for what you just built) can reuse context for efficiency, but genuinely new tasks deserve a fresh session | Thariq | | use "summarize from here" before rewinding to have Claude write a handoff message — like a note to the previous iteration of Claude from its future self | Thariq | | /compact vs /clear — compact is lossy but momentum-friendly (mid-task, fuzzy details ok); /clear + brief is more work but you control exactly what carries forward (high-stakes next step) | Thariq | | use recaps for long-running sessions — short summaries of what Claude did and what's next, useful when returning after minutes or hours. Disable with recaps in /config | Boris | | /rename important sessions (e.g. [TODO - refactor task]) and /resume them later — label each instance when running multiple Claudes simultaneously | Cat |

<a id="tips-claudemd"></a>■ CLAUDE.md + .claude/rules (8)

| Tip | Source | |-----|--------| | CLAUDE.md should target under 200 lines per file. 60 lines in humanlayer (still not 100% guaranteed) | Boris Dex | | .claude/rules/*.md auto-load into every session like CLAUDE.md — add paths: YAML frontmatter to lazy-load them only when Claude touches files matching the glob | Claude | | wrap domain-specific CLAUDE.md rules in <important if="..."> tags to stop Claude from ignoring them as files grow longer | Dex | | use multiple CLAUDE.md for monorepos — ancestor + descendant loading | Boris | | use .claude/rules/ to split large instructions | Claude | | any developer should be able to launch Claude, say "run the tests" and it works on the first try — if it doesn't, your CLAUDE.md is missing essential setup/build/test commands | Dex | | keep codebases clean and finish migrations — partially migrated frameworks confuse models that might pick the wrong pattern | Boris Video | | use settings.json for harness-enforced behavior (attribution, permissions, model) — don't put "NEVER add Co-Authored-By" in CLAUDE.md when attribution.commit: "" is deterministic | davila7 |

<a id="tips-agents"></a><img src="!/tags/a.svg" height="14"> Agents (4)

| Tip | Source | |-----|--------| | have feature specific sub-agents (extra context) with skills (progressive disclosure) instead of general qa, backend engineer | Boris | | say "use subagents" to throw more compute at a problem — offload tasks to keep your main context clean and focused 🚫👶 | Boris | | agent teams with tmux and git worktrees for parallel development | Boris | | use test time compute — separate context windows make results better; one agent can cause bugs and another (same model) can find them | Boris |

<a id="tips-commands"></a><img src="!/tags/c.svg" height="14"> Commands (3)

| Tip | Source | |-----|--------| | use commands for your workflows instead of sub-agents | Boris | | use slash commands for every "inner loop" workflow you do many times a day — saves repeated prompting, commands live in .claude/commands/ and are checked into git | Boris |

Frequently asked questions

How do I install Claude Code Best Practice?

You can also download it as a ZIP and unpack it into ~/.claude/skills/.

Is Claude Code Best Practice free?

Yes. It is open source under the MIT license.

Who made Claude Code Best Practice?

It is published by shanraisshan.

When was Claude Code Best Practice last updated?

The latest version, 1.0.0, was released on 23 Nov 2026.