MCPHub LabRegistryshanraisshan/claude-code-best-practice
shanraisshan

shanraisshan/claude code best practice

Built by shanraisshan β€’ 22,638 stars

What is shanraisshan/claude code best practice?

practice made claude perfect

How to use shanraisshan/claude code best practice?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add shanraisshan/claude code best practice using the following command: npx @modelcontextprotocol/shanraisshan-claude-code-best-practice 4. Restart the client and verify the new tools are active.
πŸ›‘οΈ Scoped (Restricted)
npx @modelcontextprotocol/shanraisshan-claude-code-best-practice --scope restricted
πŸ”“ Unrestricted Access
npx @modelcontextprotocol/shanraisshan-claude-code-best-practice

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

shanraisshan/claude code best practice FAQ

Q

Is shanraisshan/claude code best practice safe?

Yes, shanraisshan/claude code best practice follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is shanraisshan/claude code best practice up to date?

shanraisshan/claude code best practice is currently active in the registry with 22,638 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for shanraisshan/claude code best practice?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub

claude-code-best-practice

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/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

FeatureLocationDescription
<img src="!/tags/a.svg" height="14"> Subagents.claude/agents/<name>.mdBest Practice Implemented
<img src="!/tags/c.svg" height="14"> Commands.claude/commands/<name>.mdBest Practice Implemented
<img src="!/tags/s.svg" height="14"> Skills.claude/skills/<name>/SKILL.mdBest Practice Implemented Official Skills Β· Skills for Mono-repos
Workflows.claude/commands/weather-orchestrator.mdOrchestration Workflow
Hooks.claude/hooks/Best Practice Implemented Guide
MCP Servers.claude/settings.json, .mcp.jsonBest Practice Implemented
Pluginsdistributable packagesMarketplaces Β· Create Marketplaces
Settings.claude/settings.jsonBest Practice Implemented Permissions Β· Model Config Β· Output Styles Β· Sandboxing Β· Keybindings Β· Auto Mode Config
Status Line.claude/settings.jsonBest Practice Implemented
MemoryCLAUDE.md, .claude/rules/, ~/.claude/rules/, ~/.claude/projects/<project>/memory/Best Practice Implemented Auto Memory Β· Auto Memory Deep-dive Β· Rules
Checkpointingautomatic (git-based)
CLI Startup Flagsclaude [flags]Best Practice Interactive Mode Β· Env Vars
AI TermsBest Practice
Best PracticesPrompt Engineering Β· Extend Claude Code

πŸ”₯ Hot

FeatureLocationDescription
Ultrareview beta/ultrareview, claude ultrareview [target]Tasks tracking
Devcontainers.devcontainer/
Channels beta--channels, plugin-basedReference
Ultraplan beta/ultraplan
No Flicker Mode beta/tui fullscreen, CLAUDE_CODE_NO_FLICKER=1Best Practice
Auto Mode beta--permission-mode auto, Shift+TabBest Practice Blog
Power-ups/powerupBest Practice
Fast Mode beta/fast, "fastMode": true
Computer Use betacomputer-use MCP serverDesktop
Agent SDKnpm / pip packageQuickstart Β· Examples
Ralph Wiggum LooppluginBest Practice Implemented
Chrome beta--chrome, extensionBest Practice
Claude Code Web betaclaude.ai/codeRoutines
Slack@Claude in Slack
Code Review betaGitHub App (managed)Best Practice Blog
GitHub Actions.github/workflows/GitLab CI/CD
Remote Control/remote-control, /rcBest Practice Headless Mode
Deep Linksclaude-cli://open?repo=…&q=…
Agent Teams betabuilt-in (env var)Best Practice Implemented
Agent View betaclaude agents, --bg, /bg
Scheduled Tasks/loop, /schedule, cron toolsBest Practice Implemented Desktop scheduled tasks Β· Announcement
Routines betaclaude.ai/code/routines, /scheduleDesktop Tasks
Tasks/tasks, ~/.claude/tasks/Best Practice Ultrareview tracking
Goal/goal <condition>, /goal clearImplemented
Voice Dictation beta/voiceBest Practice
Simplify & Batch/simplify, /batchBest Practice
Git Worktrees--worktree/-w, .worktreeinclude, EnterWorktree/ExitWorktree, isolation: "worktree", WorktreeCreate/WorktreeRemove hooksBest 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">
Superpowers188k<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-fff3b0" alt="subagent-driven-development" 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/verification--before--completion-fff3b0" alt="verification-before-completion" align="middle"> β†’ <img src="https://img.shields.io/badge/finishing--a--development--branch-ddf4ff" alt="finishing-a-development-branch" align="middle">0014
Everything Claude Code180k<img src="https://img.shields.io/badge/%2Fecc:plan-ddf4ff" alt="/ecc:plan" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Ftdd-ddf4ff" alt="/tdd" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fcode--review-ddf4ff" alt="/code-review" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fsecurity--scan-ddf4ff" alt="/security-scan" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fe2e-ddf4ff" alt="/e2e" align="middle"> β†’ <img src="https://img.shields.io/badge/merge-ddf4ff" alt="merge" align="middle">48143230
Spec Kit97k<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.clarify-ddf4ff" alt="/speckit.clarify" 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-ddf4ff" alt="/speckit.implement" align="middle">090
gstack95k<img src="https://img.shields.io/badge/%2Foffice--hours-ddf4ff" alt="/office-hours" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fplan--ceo--review-ddf4ff" alt="/plan-ceo-review" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fplan--eng--review-ddf4ff" alt="/plan-eng-review" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fplan--design--review-ddf4ff" alt="/plan-design-review" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fdesign--shotgun-ddf4ff" alt="/design-shotgun" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fdesign--html-ddf4ff" alt="/design-html" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Freview-ddf4ff" alt="/review" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fcodex-ddf4ff" alt="/codex" 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">0048
Matt Pocock Skills76k<img src="https://img.shields.io/badge/%2Fgrill--with--docs-ddf4ff" alt="/grill-with-docs" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fto--prd-ddf4ff" alt="/to-prd" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fto--issues-ddf4ff" alt="/to-issues" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Ftriage-ddf4ff" alt="/triage" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Ftdd-fff3b0" alt="/tdd" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fdiagnose-fff3b0" alt="/diagnose" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fimprove--codebase--architecture-ddf4ff" alt="/improve-codebase-architecture" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fzoom--out-ddf4ff" alt="/zoom-out" align="middle">0028
Get Shit Done62k<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--discuss--phase-ddf4ff" alt="/gsd-discuss-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-ddf4ff" 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--ship-ddf4ff" alt="/gsd-ship" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fgsd--complete--milestone-ddf4ff" alt="/gsd-complete-milestone" align="middle">33660
OpenSpec47k<img src="https://img.shields.io/badge/%2Fopsx:propose-ddf4ff" alt="/opsx:propose" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fopsx:apply-ddf4ff" alt="/opsx:apply" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fopsx:archive-ddf4ff" alt="/opsx:archive" align="middle">090
BMAD-METHOD47k<img src="https://img.shields.io/badge/bmad--product--brief-ddf4ff" alt="bmad-product-brief" align="middle"> β†’ <img src="https://img.shields.io/badge/bmad--create--prd-ddf4ff" alt="bmad-create-prd" align="middle"> β†’ <img src="https://img.shields.io/badge/bmad--create--architecture-ddf4ff" alt="bmad-create-architecture" align="middle"> β†’ <img src="https://img.shields.io/badge/bmad--create--epics--and--stories-ddf4ff" alt="bmad-create-epics-and-stories" align="middle"> β†’ <img src="https://img.shields.io/badge/bmad--sprint--planning-ddf4ff" alt="bmad-sprint-planning" align="middle"> β†’ <img src="https://img.shields.io/badge/bmad--create--story-fff3b0" alt="bmad-create-story" align="middle"> β†’ <img src="https://img.shields.io/badge/bmad--dev--story-fff3b0" alt="bmad-dev-story" 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--retrospective-ddf4ff" alt="bmad-retrospective" align="middle">0040
oh-my-claudecode34k<img src="https://img.shields.io/badge/%2Fdeep--interview-ddf4ff" alt="/deep-interview" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fteam-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/%2Fralph-ddf4ff" alt="/ralph" align="middle"> β†’ <img src="https://img.shields.io/badge/merge-ddf4ff" alt="merge" align="middle">19038
agent-skills27k<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">3721
Compound Engineering17k<img src="https://img.shields.io/badge/%2Fce--ideate-ddf4ff" alt="/ce-ideate" 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--code--review-ddf4ff" alt="/ce-code-review" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fce--debug-fff3b0" alt="/ce-debug" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fce--optimize-fff3b0" alt="/ce-optimize" 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">49438
HumanLayer11k<img src="https://img.shields.io/badge/%2Fcreate__plan-ddf4ff" alt="/create_plan" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fvalidate__plan-ddf4ff" alt="/validate_plan" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fimplement__plan-ddf4ff" alt="/implement_plan" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fiterate__plan-fff3b0" alt="/iterate_plan" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Flocal__review-ddf4ff" alt="/local_review" align="middle"> β†’ <img src="https://img.shields.io/badge/%2Fcommit-ddf4ff" alt="/commit" align="middle">6270

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β˜…TypeBridges toWhat it does
musistudio/claude-code-router34kRouterOpenRouter, DeepSeek, Ollama, Gemini, Kimi, Qwen, Groq, +moreRoutes Claude Code's API to any compatible provider, with per-task model selection
router-for-me/CLIProxyAPI32kRouterGemini CLI, Codex, Claude Code, AntigravityWraps each CLI as an OpenAI/Gemini/Claude/Codex-compatible API service
openai/codex-plugin-cc18kPluginCodex / GPT-5Official OpenAI plugin: /codex:review, /codex:adversarial-review, /codex:rescue inside Claude Code
BeehiveInnovations/pal-mcp-server12kMCPGemini, 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">
anthropics/skills133k17
mattpocock/skills76k24
wshobson/agents35k153
impeccable27k1 (with 7 design domain references)
agent-skills27k21
awesome-agent-skills21k1,100+ (curated list)
scientific-agent-skills21k135
claude-skills15k246 (across 9 domains)
<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-agents98k188
VoltAgent/awesome-claude-code-subagents20k151
<p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p>

πŸ’‘ TIPS AND TRICKS (83)

πŸš«πŸ‘Ά = do not babysit

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

Community

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

TipSource
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)

TipSource
always start with plan modeBoris
start with a minimal spec or prompt and ask Claude to interview you using AskUserQuestion tool, then make a new session to execute the specThariq
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 reviewBoris
write detailed specs and reduce ambiguity before handing work off β€” the more specific you are, the better the outputBoris
prototype > PRD β€” build 20-30 versions instead of writing specs, the cost of building is low so take many shotsBoris Video

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

TipSource
context rot kicks in around ~300-400k tokens on the 1M context model β€” don't let sessions drift past that for intelligence-sensitive workThariq
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 tasksDex 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 rotThariq
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)

TipSource
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 forwardThariq
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 sessionThariq
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 selfThariq
/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 /configBoris
/rename important sessions (e.g. [TODO - refactor task]) and /resume them later β€” label each instance when running multiple Claudes simultaneouslyCat

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

TipSource
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 globClaude
wrap domain-specific CLAUDE.md rules in <important if="..."> tags to stop Claude from ignoring them as files grow longerDex
use multiple CLAUDE.md for monorepos β€” ancestor + descendant loadingBoris
use .claude/rules/ to split large instructionsClaude
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 commandsDex
keep codebases clean and finish migrations β€” partially migrated frameworks confuse models that might pick the wrong patternBoris 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 deterministicdavila7

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

TipSource
have feature specific sub-agents (extra context) with skills (progressive disclosure) instead of general qa, backend engineerBoris
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 developmentBoris
use test time compute β€” separate context windows make results better; one agent can cause bugs and another (same model) can find themBoris

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

TipSource
use commands for your workflows instead of sub-agentsBoris
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 gitBoris
if you do something more than once a day, turn it into a skill or command β€” build /techdebt, context-dump, or analytics commandsBoris

<a id="tips-skills"></a><img src="!/tags/s.svg" height="14"> Skills (9)

TipSource
use context: fork to run a skill in an isolated subagent β€” main context only sees the final result, not intermediate tool calls. The agent field lets you set the subagent typeLydia
use skills in subfolders for monoreposClaude
skills are folders, not files β€” use references/, scripts/, examples/ subdirectories for progressive disclosureThariq
build a Gotchas section in every skill β€” highest-signal content, add Claude's failure points over timeThariq
skill description field is a trigger, not a summary β€” write it for the model ("when should I fire?")Thariq
don't state the obvious in skills β€” focus on what pushes Claude out of its default behavior πŸš«πŸ‘ΆThariq
don't railroad Claude in skills β€” give goals and constraints, not prescriptive step-by-step instructions πŸš«πŸ‘ΆThariq
include scripts and libraries in skills so Claude composes rather than reconstructs boilerplateThariq
embed !command in SKILL.md to inject dynamic shell output into the prompt β€” Claude runs it on invocation and the model only sees the resultLydia

<a id="tips-hooks"></a>β–  Hooks (5)

TipSource
use on-demand hooks in skills β€” /careful blocks destructive commands, /freeze blocks edits outside a directoryThariq
measure skill usage with a PreToolUse hook to find popular or undertriggering skillsThariq
use a PostToolUse hook to auto-format code β€” Claude generates well-formatted code, the hook handles the last 10% to avoid CI failuresBoris
route permission requests to Opus via a hook β€” let it scan for attacks and auto-approve safe ones πŸš«πŸ‘ΆBoris
use a Stop hook to nudge Claude to keep going or verify its work at the end of a turnBoris

<a id="tips-workflows"></a>β–  Workflows (5)

TipSource
use /model to select model and reasoning, /context to see context usage, /usage to check plan limits, /extra-usage to configure overflow billing, /config to configure settings β€” use Opus for plan mode and Sonnet for code to get the best of bothCat
always use thinking mode true (to see reasoning) and Output Style Explanatory (to see detailed output with β˜… Insight boxes) in /config for better understanding of Claude's decisionsBoris
use ultrathink keyword in prompts for high effort reasoningClaude
/focus mode hides all intermediate work and shows only the final result β€” trust the model to run the right commands and just look at the outcome (toggle with /focus)Boris
tune effort level with Opus 4.7's adaptive thinking β€” low for speed and fewer tokens, max for most intelligence (slider: low Β· medium Β· high Β· xhigh Β· max)Boris

<a id="tips-workflows-advanced"></a>β–  Workflows Advanced (9)

TipSource
use ASCII diagrams a lot to understand your architectureBoris
use /loop for local recurring monitoring (up to 7 days) Β· use /schedule for cloud-based recurring tasks that run even when your machine is offBoris
use Ralph Wiggum plugin for long-running autonomous tasksBoris
/permissions with wildcard syntax (Bash(npm run *), Edit(/docs/**)) instead of dangerously-skip-permissionsBoris
/sandbox to reduce permission prompts with file and network isolation β€” 84% reduction internallyBoris Cat
invest in product verification skills (signup-flow-driver, checkout-verifier) β€” worth spending a week to perfectThariq
use auto mode instead of dangerously-skip-permissions β€” a model-based classifier decides if each command is safe and auto-approves, pauses and asks if risky. Shift+Tab to cycle Ask β†’ Plan β†’ Auto modes πŸš«πŸ‘ΆBoris
use /less-permission-prompts skill to scan session history for safe bash/MCP commands that repeatedly prompt, then get a recommended allowlist to paste into settingsBoris
build a /go skill that (1) tests end-to-end via bash/browser/computer use (2) runs /simplify (3) puts up a PR β€” so when you come back, you know the code works πŸš«πŸ‘ΆBoris

<a id="tips-git-pr"></a>β–  Git / PR (5)

TipSource
keep PRs small and focused β€” p50 of 118 lines (141 PRs, 45K lines changed in a day), one feature per PR, easier to review and revertBoris
always squash merge PRs β€” clean linear history, one commit per feature, easy git revert and git bisectBoris
commit often β€” try to commit at least once per hour, as soon as task is completed, commitShayan
tag @claude on a coworker's PR to auto-generate lint rules for recurring review feedback β€” automate yourself out of code review πŸš«πŸ‘ΆBoris Video
use /code-review for multi-agent PR analysis β€” catches bugs, security vulnerabilities, and regressions before mergeBoris

<a id="tips-debugging"></a>β–  Debugging (6)

TipSource
make it a habit to take screenshots and share with Claude whenever you are stuck with any issueShayan
use mcp (Claude in Chrome, Playwright, Chrome DevTools) to let claude see chrome console logs on its ownClaude
always ask claude to run the terminal (you want to see logs of) as a background task for better debuggingShayan
/doctor to diagnose installation, authentication, and configuration issuesShayan
use a cross-model for QA β€” e.g. Codex for plan and implementation reviewShayan
agentic search (glob + grep) beats RAG β€” Claude Code tried and discarded vector databases because code drifts out of sync and permissions are complexBoris Video

<a id="tips-utilities"></a>β–  Utilities (5)

TipSource
iTerm/Ghostty/tmux terminals instead of IDE (VS Code/Cursor)Boris
/voice or Wispr Flow for voice prompting (10x productivity)Boris
claude-code-hooks for claude feedbackShayan
status line for context awareness and fast compactingBoris Shayan
explore settings.json features like Plans Directory, Spinner Verbs for a personalized experienceBoris

<a id="tips-daily"></a>β–  Daily (2)

TipSource
update Claude Code dailyShayan
start your day by reading the changelogShayan

Boris Cherny + Team

Article / TweetSource
6 Tips for Getting More Out of Opus 4.7 (Boris) | 16/Apr/26Tweet
Session Management & 1M Context (Thariq) | 16/Apr/26Tweet
15 Hidden & Under-Utilized Features in Claude Code (Boris) | 30/Mar/26Tweet
Squash Merging & PR Size Distribution (Boris) | 25/Mar/26Tweet
Lessons from Building Claude Code: How We Use Skills (Thariq) | 17/Mar/26Article
Code Review & Test Time Compute (Boris) | 10/Mar/26Tweet
/loop β€” schedule recurring tasks for up to 3 days (Boris) | 07 Mar 2026Tweet
AskUserQuestion + ASCII Markdowns (Thariq) | 28 Feb 2026Tweet
Seeing like an Agent - lessons from building Claude Code (Thariq) | 28 Feb 2026Article
Git Worktrees - 5 ways how boris is using | 21 Feb 2026Tweet
Lessons from Building Claude Code: Prompt Caching Is Everything (Thariq) | 20 Feb 2026Article
12 ways how people are customizing their claudes (Boris) | 12/Feb/26Tweet
10 tips for using Claude Code from the team (Boris) | 01/Feb/26Tweet
How I use Claude Code β€” 13 tips from my surprisingly vanilla setup (Boris) | 03/Jan/26Tweet
Ask Claude to interview you using AskUserQuestion tool (Thariq) | 28/Dec/25Tweet
Always use plan mode, give Claude a way to verify, use /code-review (Boris) | 27/Dec/25Tweet

Tips from Claude code CLI binary

Spinner Verbs & Tips (extracted from CLI binary v2.1.121)

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

🎬 VIDEOS / PODCASTS

Video / PodcastSourceYouTube
From Vibe Coding to Agentic Engineering (Andrej) | 02 May 2026 | AI EngineerKarpathyYouTube
Full Walkthrough: Workflow for AI Coding (Matt) | 24 Apr 2026 | Matt PocockMattYouTube
Everything We Got Wrong About Research-Plan-Implement (Dex) | 24 Mar 2026 | MLOps CommunityDexYouTube
Building Claude Code with Boris Cherny (Boris) | 04 Mar 2026 | The Pragmatic EngineerBorisYouTube
Head of Claude Code: What happens after coding is solved (Boris) | 19 Feb 2026 | Lenny's PodcastBorisYouTube
Inside Claude Code With Its Creator Boris Cherny (Boris) | 17 Feb 2026 | Y CombinatorBorisYouTube
Boris Cherny (Creator of Claude Code) On What Grew His Career (Boris) | 15 Dec 2025 | Ryan PetermanBorisYouTube
The Secrets of Claude Code From the Engineers Who Built It (Cat) | 29 Oct 2025 | EveryBorisYouTube
<p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p>

πŸ”” SUBSCRIBE

SourceNameBadge
Redditr/ClaudeAI, r/ClaudeCode, r/AnthropicBoris + Team
XClaude, Claude Devs, Anthropic, Boris, Thariq, Cat, Lydia, Noah, Anthony, Alex, KennethBoris + Team
XJesse Kriss (Superpowers), Affaan Mustafa (ECC), Garry Tan (gstack), Dex Horthy (HumanLayer), Kieran Klaassen (Compound Eng), Tabish Gilani (OpenSpec), Brian McAdams (BMAD), Lex Christopherson (GSD), Matt Pocock (Skills), Dani Avila (CC Templates), Dan Shipper (Every), Andrej Karpathy (AutoResearch), Peter Steinberger (OpenClaw), Sigrid Jin (claw-code), Yeachan Heo (oh-my-claudecode)Community
YouTubeAnthropicBoris + Team
YouTubeLenny's Podcast, Y Combinator, The Pragmatic Engineer, Ryan Peterman, Every, MLOps CommunityCommunity
<p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p>

☠️ STARTUPS / BUSINESSES

ClaudeReplaced
Code ReviewGreptile, CodeRabbit, Devin Review, OpenDiff, Cursor BugBot
Voice DictationWispr Flow, SuperWhisper
Remote ControlOpenClaw
Claude in ChromePlaywright MCP, Chrome DevTools MCP
Computer UseOpenAI CUA
CoworkChatGPT Agent, Perplexity Computer, Manus
TasksBeads
Plan ModeAgent OS
DesignFigma, Framer, Sketch, v0
Agent SDKLangChain, LangGraph, CrewAI, AutoGen, OpenAI Assistants API
Skills / PluginsYC AI wrapper startups (reddit)
<p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p>

<a id="billion-dollar-questions"></a> Billion-Dollar Questions

If you have answers, do let me know at shanraisshan@gmail.com

Memory & Instructions (4)

  1. What exactly should you put inside your CLAUDE.md β€” and what should you leave out?
  2. If you already have a CLAUDE.md, is a separate constitution.md or rules.md actually needed?
  3. How often should you update your CLAUDE.md, and how do you know when it's become stale?
  4. Why does Claude still ignore CLAUDE.md instructions β€” even when they say MUST in all caps? (reddit)

Agents, Skills & Workflows (6)

  1. When should you use a command vs an agent vs a skill β€” and when is vanilla Claude Code just better?
  2. How often should you update your agents, commands, and workflows as models improve?
  3. Should you have a generalist subagent or a feature-specific/role-specific agent? Does giving your subagent a detailed persona improve quality, and what does a "perfect persona prompt" for research/vision look like?
  4. Should you rely on Claude Code's built-in plan mode β€” or build your own planning command/agent that enforces your team's workflow?
  5. If you have a personal skill (e.g., /implement with your coding style), how do you incorporate community skills (e.g., /simplify) without conflicts β€” and who wins when they disagree?
  6. Are we there yet? Can we convert an existing codebase into specs, delete the code, and have AI regenerate the exact same code from those specs alone?

Specs & Documentation (3)

  1. Should every feature in your repo have a spec as a markdown file?
  2. How often do you need to update specs so they don't become obsolete when a new feature is implemented?
  3. When implementing a new feature, how do you handle the ripple effect on specs for other features?

πŸ€” Does code matter?

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

REPORTS

<p align="center"> <a href="reports/claude-agent-sdk-vs-cli-system-prompts.md"><img src="https://img.shields.io/badge/Agent_SDK_vs_CLI-555?style=for-the-badge" alt="Agent SDK vs CLI"></a> <a href="reports/claude-in-chrome-v-chrome-devtools-mcp.md"><img src="https://img.shields.io/badge/Browser_Automation_MCP-555?style=for-the-badge" alt="Browser Automation MCP"></a> <a href="reports/claude-global-vs-project-settings.md"><img src="https://img.shields.io/badge/Global_vs_Project_Settings-555?style=for-the-badge" alt="Global vs Project Settings"></a> <a href="reports/claude-skills-for-larger-mono-repos.md"><img src="https://img.shields.io/badge/Skills_in_Monorepos-555?style=for-the-badge" alt="Skills in Monorepos"></a> <br> <a href="reports/claude-agent-memory.md"><img src="https://img.shields.io/badge/Agent_Memory-555?style=for-the-badge" alt="Agent Memory"></a> <a href="reports/claude-advanced-tool-use.md"><img src="https://img.shields.io/badge/Advanced_Tool_Use-555?style=for-the-badge" alt="Advanced Tool Use"></a> <a href="reports/claude-usage-and-rate-limits.md"><img src="https://img.shields.io/badge/Usage_&_Rate_Limits-555?style=for-the-badge" alt="Usage & Rate Limits"></a> <a href="reports/claude-agent-command-skill.md"><img src="https://img.shields.io/badge/Agents_vs_Commands_vs_Skills-555?style=for-the-badge" alt="Agents vs Commands vs Skills"></a> <br> <a href="reports/llm-day-to-day-degradation.md"><img src="https://img.shields.io/badge/LLM_Degradation-555?style=for-the-badge" alt="LLM Degradation"></a> <a href="reports/why-harness-is-important.md"><img src="https://img.shields.io/badge/Why_Harness_is_Important-555?style=for-the-badge" alt="Why Harness is Important"></a> <a href="reports/claude-spinner-verbs-and-tips.md"><img src="https://img.shields.io/badge/Spinner_Verbs_&_Tips-555?style=for-the-badge" alt="Spinner Verbs & Tips"></a> </p> <p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p>

<a id="how-to-use"></a>

<img src="!/tags/how-to-use-hd.svg" alt="How to Use">

Get the maximum out of this repo by following these steps:

  1. Read this repo as a course, not as a workflow or skill. It's reference material first; you'll run things later.
  2. Don't use Claude as a chatbot. Learn the primitives β€” agents, commands, skills, hooks β€” and assemble them into your own workflow.
  3. Run /weather-orchestrator to see a complete command β†’ agent β†’ skill flow. Use it as a template for any dev workflow, from planning to shipping.
  4. Listen for the custom hook sounds while you work. Their implementation lives in the dedicated Claude Code Hooks repo; other patterns like Agent Teams ship inside this repo's implementation/ directory.
  5. Learn the advanced topics and their implementations from the πŸ”₯ Hot sub-table β€” for example, the Ralph Wiggum self-evolving loop is a full working repo you can clone to see one of these patterns end-to-end.
  6. Point Claude at the tips and tricks section in your own project and ask it to suggest edits β€” especially how to restructure your CLAUDE.md. Every tip is sourced from the Claude team or the community.
  7. Subscribe to the Reddit and YouTube channels in the Subscribe section to keep up with the community.

🎬 Videos

<a href="https://www.youtube.com/watch?v=AkAhkalkRY4"><img src="!/thumbnail/video-1.png" alt="Watch on YouTube" width="240"></a> <a href="https://youtu.be/lPjhM6BBK0Q"><img src="!/thumbnail/video-2.png" alt="Watch on YouTube" width="240"></a>

πŸ“Š Presentations

<a href="https://github.com/shanraisshan/claude-code-best-practice/tree/main/presentation/2026-04-25-gdg-kolachi-cli-claude-code-gemini"><img src="!/thumbnail/presentation-1.png" alt="Claude Code & Gemini CLI β€” GDG Kolachi" width="240"></a>

<p align="center"> <img src="!/claude-jumping.svg" alt="section divider" width="60" height="50"> </p> <p align="center"> <a href="https://github.com/trending?since=monthly"><img src="!/root/github-trending.png" alt="GitHub Trending" width="1200"></a><br> ✨Trending on Github in March 2026✨ </p>

Star History

Star History Chart

<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" align="center"></a> stars and counting

Other Repos

<table> <tr> <td align="center" width="140"> <a href="https://github.com/shanraisshan/claude-code-hooks"><img src="!/claude-speaking.svg" alt="Claude Code Hooks" width="64" height="64"></a><br> <a href="https://github.com/shanraisshan/claude-code-hooks"><strong>Claude Code<br>Hooks</strong></a> </td> <td align="center" width="140"> <a href="https://github.com/shanraisshan/codex-cli-best-practice"><img src="!/codex-jumping.svg" alt="Codex CLI Best Practice" width="64" height="64"></a><br> <a href="https://github.com/shanraisshan/codex-cli-best-practice"><strong>Codex CLI<br>Best Practice</strong></a> </td> <td align="center" width="140"> <a href="https://github.com/shanraisshan/codex-cli-hooks"><img src="!/codex-speaking.svg" alt="Codex CLI Hooks" width="64" height="64"></a><br> <a href="https://github.com/shanraisshan/codex-cli-hooks"><strong>Codex CLI<br>Hooks</strong></a> </td> <td align="center" width="140"> <a href="https://github.com/shanraisshan/gemini-cli-best-practice"><img src="!/gemini-jumping.svg" alt="Gemini CLI Best Practice" width="64" height="64"></a><br> <a href="https://github.com/shanraisshan/gemini-cli-best-practice"><strong>Gemini CLI<br>Best Practice</strong></a> </td> <td align="center" width="140"> <a href="https://github.com/shanraisshan/gemini-cli-hooks"><img src="!/gemini-speaking.svg" alt="Gemini CLI Hooks" width="64" height="64"></a><br> <a href="https://github.com/shanraisshan/gemini-cli-hooks"><strong>Gemini CLI<br>Hooks</strong></a> </td> </tr> </table>

Developed by

Developed by

#WorkflowDescription
1/workflows:development-workflowsUpdate the DEVELOPMENT WORKFLOWS table and cross-workflow analysis report by researching all 10 workflow repos in parallel
2/workflows:skill-collectionsUpdate the SKILL COLLECTIONS table by researching all 5 skill-collection repos in parallel
3/workflows:agent-collectionsUpdate the AGENT COLLECTIONS table by researching all agent-collection repos in parallel
4/workflows:best-practice:workflow-conceptsUpdate the README CONCEPTS section with the latest Claude Code features and concepts
5/workflows:best-practice:workflow-claude-settingsTrack Claude Code settings report changes and find what needs updating
6/workflows:best-practice:workflow-claude-subagentsTrack Claude Code subagents report changes and find what needs updating
7/workflows:best-practice:workflow-claude-commandsTrack Claude Code commands report changes and find what needs updating
8/workflows:best-practice:workflow-claude-skillsTrack Claude Code skills report changes and find what needs updating

Extras

Claude for OSS Claude Community Ambassador Claude Certified Architect Anthropic Academy Join Claude Pakistan community on WhatsApp

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

<img src="!/tags/sponsor-heart.svg" width="22" height="22" align="center"> Sponsor My Work

If you like my work, buy me a doodh patti 🍡 on

<a href="https://buy.polar.sh/polar_cl_R6wjUESl8RiJD0iVaTyStBUV6WNuYvDmLJ0si1XXj4C"><img src="!/tags/polar.svg" alt="Polar" width="40" height="40" align="center"></a> <a href="https://buy.polar.sh/polar_cl_R6wjUESl8RiJD0iVaTyStBUV6WNuYvDmLJ0si1XXj4C"><strong>Polar</strong></a>

Global Ranking

8.5
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "shanraisshan-claude-code-best-practice": { "command": "npx", "args": ["shanraisshan-claude-code-best-practice"] } } }