github

shanraisshan / claude-code-best-practice

  • понедельник, 16 марта 2026 г. в 00:00:03
https://github.com/shanraisshan/claude-code-best-practice

practice made claude perfect



claude-code-best-practice

practice makes claude perfect

Last Updated GitHub Stars

Best Practice Click on this badge to show the latest best practice
Implemented Click on this badge to show implementation in this repo
Orchestration Workflow Click on this badge to see the Command → Agent → Skill orchestration workflow

Claude Code mascot jumping

Boris Cherny on Claude Code
Boris Cherny on X (tweet 1 · tweet 2 · tweet 3)

🧠 CONCEPTS

Feature Location Description
Commands .claude/commands/<name>.md Best Practice Implemented Knowledge injected into existing context — simple user-invoked prompt templates for workflow orchestration
Subagents .claude/agents/<name>.md Best Practice Implemented Autonomous actor in fresh isolated context — custom tools, permissions, model, memory, and persistent identity
Skills .claude/skills/<name>/SKILL.md Best Practice Implemented Knowledge injected into existing context — configurable, preloadable, auto-discoverable, with context forking and progressive disclosure · Official Skills
Workflows .claude/commands/weather-orchestrator.md Orchestration Workflow
Hooks .claude/hooks/ Best Practice Implemented Deterministic scripts that run outside the agentic loop on specific events
MCP Servers .claude/settings.json, .mcp.json Best Practice Implemented Model Context Protocol connections to external tools, databases, and APIs
Plugins distributable packages Bundles of skills, subagents, hooks, and MCP servers · Marketplaces
Settings .claude/settings.json Best Practice Implemented Hierarchical configuration system · Permissions · Model Config · Output Styles · Sandboxing · Keybindings · Fast Mode
Status Line .claude/settings.json Best Practice Implemented Customizable status bar showing context usage, model, cost, and session info
Memory CLAUDE.md, .claude/rules/, ~/.claude/rules/, ~/.claude/projects/<project>/memory/ Best Practice Implemented Persistent context via CLAUDE.md files and @path imports · Auto Memory · Rules
Checkpointing automatic (git-based) Automatic tracking of file edits with rewind (Esc Esc or /rewind) and targeted summarization
CLI Startup Flags claude [flags] Best Practice Command-line flags, subcommands, and environment variables for launching Claude Code · Interactive Mode
AI Terms Best Practice Agentic Engineering · Context Engineering · Vibe Coding
Best Practices Official best practices · Prompt Engineering · Extend Claude Code

🔥 Hot

Feature Location Description
/btw /btw Best Practice Side chain conversations while Claude is working
Code Review beta GitHub App (managed) Best Practice Multi-agent PR analysis that catches bugs, security vulnerabilities, and regressions · Blog
Scheduled Tasks /loop, cron tools Best Practice Implemented Run prompts on a recurring schedule (up to 3 days), set one-time reminders, poll deployments and builds
Voice Mode beta /voice Best Practice speak to prompt - /voice to activate
Simplify & Batch /simplify, /batch Best Practice Built-in skills for code quality and bulk operations — simplify refactors for reuse and efficiency, batch runs commands across files
Agent Teams beta built-in (env var) Best Practice Implemented Multiple agents working in parallel on the same codebase with shared task coordination
Remote Control /remote-control, /rc Best Practice Continue local sessions from any device — phone, tablet, or browser · Headless Mode
Git Worktrees built-in Best Practice Isolated git branches for parallel development — each agent gets its own working copy
Ralph Wiggum Loop plugin Best Practice Implemented Autonomous development loop for long-running tasks — iterates until completion

Orchestration Workflow

See orchestration-workflow for implementation details of Command → Agent → Skill pattern.

Command Skill Agent Architecture Flow

Orchestration Workflow Demo

How to Use

claude
/weather-orchestrator

⚙️ DEVELOPMENT WORKFLOWS

🔥 Hot

Others

💡 TIPS AND TRICKS

Community

Prompting (4)

  • 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
  • say "use subagents" to throw more compute at a problem — offload tasks to keep your main context clean and focused 👶 Boris

Planning/Specs (5)

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

Workflows (12)

Workflows Advanced (6)

  • use ASCII diagrams a lot to understand your architecture Boris
  • agent teams with tmux and git worktrees for parallel development
  • use /loop for recurring monitoring — poll deployments, babysit PRs, check builds (runs up to 3 days)
  • use Ralph Wiggum plugin for long-running autonomous tasks Boris
  • /permissions with wildcard syntax (Bash(npm run *), Edit(/docs/**)) instead of dangerously-skip-permissions Boris
  • /sandbox to reduce permission prompts with file and network isolation Boris

Debugging (5)

  • make it a habit to take screenshots and share with Claude whenever you are stuck with any issue
  • use mcp (Claude in Chrome, Playwright, Chrome DevTools) to let claude see chrome console logs on its own
  • always ask claude to run the terminal (you want to see logs of) as a background task for better debugging
  • /doctor to diagnose installation, authentication, and configuration issues
  • error during compaction can be resolved by using /model to select a 1M token model, then running /compact
  • use a cross-model for QA — e.g. Codex for plan and implementation review

Utilities (5)

Daily (3)

Boris Cherny + Team

☠️ STARTUPS / BUSINESSES

Claude Replaced
Code Review Greptile, CodeRabbit, Devin Review, OpenDiff, Cursor BugBot
Voice Mode Wispr Flow, SuperWhisper
Remote Control OpenClaw
Cowork OpenAI Operator, AgentShadow
Tasks Beads
Plan Mode Agent OS
Skills / Plugins YC AI wrapper startups (reddit)

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. Does giving your subagent a detailed persona improve quality? What does a "perfect persona/prompt" for research/QA subagent 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?

REPORTS

Agent SDK vs CLI Browser Automation MCP Global vs Project Settings Skills in Monorepos
Agent Memory Advanced Tool Use Usage & Rate Limits Agents vs Commands vs Skills
LLM Degradation

GitHub Trending
✨Trending on Github in March 2026✨

How to Use

1. Read the repo like a course, learn what commands, agents, skills, and hooks are before trying to use them.
2. Clone this repo and play with the examples, try /weather-orchestrator, listen to the hook sounds, run agent teams, so you can see how things actually work.
3. Go to your own project and ask Claude to suggest what best practices from this repo you should add, give it this repo as a reference so it knows what's possible.

Developed by

Developed by

Workflow Description
/workflows:best-practice:workflow-concepts Update the README CONCEPTS section with the latest Claude Code features and concepts
/workflows:best-practice:workflow-claude-settings Track Claude Code settings report changes and find what needs updating
/workflows:best-practice:workflow-claude-subagents Track Claude Code subagents report changes and find what needs updating
/workflows:best-practice:workflow-claude-commands Track Claude Code commands report changes and find what needs updating
/workflows:best-practice:workflow-claude-skills Track Claude Code skills report changes and find what needs updating

Claude for OSS Claude Community Ambassador Claude Certified Architect Anthropic Academy