73a75ed62fcefd648fe1786318a0ce0feb6e0920
claude-code-best-practice
practice makes claude perfect
Click on this badge to show the latest best practice
Click on this badge to show implementation in this repo
Click on this badge to see the Command → Agent → Skill orchestration workflow

Boris Cherny on X (tweet 1 · tweet 2 · tweet 3)
CONCEPTS
| Feature | Location | Description |
|---|---|---|
| Commands | .claude/commands/<name>.md |
/command-name |
| Sub-Agents | .claude/agents/<name>.md |
|
| Skills | .claude/skills/<name>/SKILL.md |
/skill-name |
| Workflows | .claude/commands/weather-orchestrator.md |
|
| Hooks | .claude/hooks/ |
|
| MCP Servers | .claude/settings.json, .mcp.json |
|
| Plugins | distributable packages | Bundles of skills, subagents, hooks, and MCP servers · Marketplaces |
| Settings | .claude/settings.json |
|
| Status Line | .claude/settings.json |
|
| Memory | CLAUDE.md, ~/.claude/projects/<project>/memory/ |
@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] |
|
| AI Terms | ||
| Best Practices | Official best practices · Prompt Engineering · Extend Claude Code |
🔥 Hot
| Feature | Location | Description |
|---|---|---|
| Agent Teams | .claude/agents/<name>.md |
Multiple agents working in parallel on the same codebase with shared task coordination |
| Voice Mode | built-in command | speak to prompt - /voice to activate |
| Remote Control | built-in command | Continue local sessions from any device — phone, tablet, or browser · Headless Mode |
| Git Worktrees | built-in | |
| Ralph Wiggum Loop | plugin |
See orchestration-workflow for implementation details of Command → Agent → Skill pattern.
claude
/weather-orchestrator
| Component | Role | Example |
|---|---|---|
| Command | Entry point, user interaction | /weather-orchestrator |
| Agent | Fetches data with preloaded skill (agent skill) | weather-agent with weather-fetcher |
| Skill | Creates output independently (skill) | weather-svg-creator |
DEVELOPMENT WORKFLOWS
- Cross-Model Claude Code + Codex
- RPI
- Boris Feb26 workflow
- Ralph plugin with sandbox
- Human Layer RPI - Research Plan Implement
- AgentOs - 2026 its overkill (Brian Casel)
- Github Speckit
- GSD - Get Shit Done
- OpenSpec OPSX
- Superpower
- Andrej Karpathy Workflow
- Creator of Clawd Bot Workflow
TIPS AND TRICKS
■ Workflows
- CLAUDE.md should not exceed 150+ lines. 60 lines in humanlayer (still not 100% guaranteed)
- use multiple CLAUDE.md for monorepos — ancestor + descendant loading
- use commands for your workflows instead of agents
- have feature specific subagents (extra context) with skills (progressive disclosure) instead of general qa, backend engineer.
- /memory, /rules, constitution.md does not guarantee anything
- avoid agent dumb zone, do manual /compact at max 50%
- always start with plan mode
- vanilla cc is better than any workflows with smaller tasks
- use skills in subfolders for monorepos
- agent teams with tmux and git worktrees for parallel development
- use Ralph Wiggum plugin for long-running autonomous tasks
- use
ultrathinkkeyword in prompts for high effort reasoning - use /model to select model and reasoning, /context to see context usage, /usage to set a weekly limit, /config to configure settings
■ Daily
- update Claude Code daily and start your day by reading the changelog
- follow r/ClaudeAI, r/ClaudeCode on Reddit
- follow Boris, Thariq, Cat, Lydia on X
■ Hourly
- commit often, as soon as task is completed, commit.
■ Utilities
- iTerm/Ghostty/tmux terminals instead of IDE (VS Code/Cursor)
- Wispr Flow for voice prompting (10x productivity)
- claude-code-voice-hooks for claude feedback
- status line for context awareness and fast compacting
- /permissions with wildcard syntax (
Bash(npm run *),Edit(/docs/**)) instead of dangerously-skip-permissions - /sandbox to reduce permission prompts with file and network isolation
- explore settings.json features like Output Styles (e.g. Explanatory when learning a new codebase), Plans Directory, Spinner Verbs for a personalized experience
- /rename important sessions (e.g. [todo refactor task]) and /resume them later
■ Debugging
- /doctor
- always ask claude to run the terminal (you want to see logs of) as a background task for better debugging
- use mcp (Claude in Chrome, Playwright, Chrome DevTools) to let claude see chrome console logs on its own
- provide screenshots of the issue
- use a different model for QA — e.g. Codex for plan and implementation review
- Ask Claude to interview you using AskUserQuestion tool (Thariq) | 28/Dec/25 ● Tweet
- Boris setup - 5 tips | 03/Jan/26 ● Tweet
- 10 tips for using claude code by team itself | 01/Feb/26 ● Tweet
- 12 ways how people are customizing their claudes | 12/Feb/26 ● Tweet
- Git Worktrees - 5 ways how boris is using | 21 Feb 2026 ● Tweet
- Seeing like an Agent - lessons from building Claude Code (Thariq) | 28 Feb 2026 ● Article
☠️ STARTUPS / BUSINESSES
| Claude | Replaced |
|---|---|
| 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) |
REPORTS
| Report | Description |
|---|---|
| Agent SDK vs CLI System Prompts | Why Claude CLI and Agent SDK outputs may differ—system prompt architecture and determinism |
| Browser Automation MCP Comparison | Comparison of Playwright, Chrome DevTools, and Claude in Chrome for automated testing |
| Global vs Project Settings | Which features are global-only (~/.claude/) vs dual-scope, including Tasks and Agent Teams |
| Skills Discovery in Monorepos | How skills are discovered and loaded in large monorepo projects |
| Agent Memory Frontmatter | Persistent memory scopes (user, project, local) for subagents — enabling agents to learn across sessions |
| Advanced Tool Use Patterns | Programmatic Tool Calling (PTC), Tool Search, and Tool Use Examples |
| Usage, Rate Limits & Extra Usage | Usage commands (/usage, /extra-usage, /cost), rate limits, and pay-as-you-go overflow billing |
Languages
HTML
95.4%
Python
4.6%