claude-code-best-practice
shanraisshan · shanraisshan/claude-code-best-practice
This best-practice guide offers a curated collection of resources for Claude Code, covering subagents, commands, skills, workflows, MCP servers, and plugins, with an emphasis on agentic engineering.
from vibe coding to agentic engineering - practice makes claude perfect
68k stars6.7kLicense: MITUpdated 3 days ago1 opens
Preview
▍
What you can do with it
- Learn how to structure complex agent workflows using subagents and hooks.
- Discover best practices for creating and managing Claude Code skills.
- Understand how to integrate MCP servers and plugins into your agent setup.
Try asking your agent
- “Explain the concept of `subagents` in Claude Code and provide a simple example of how to define one.”
- “How do `hooks` work in Claude Code? Give me an example of a pre-commit hook that checks code style.”
- “Describe the different types of `memory` available in Claude Code and their use cases, referencing the official documentation.”
Safety check
Safe
No risky patterns found in the files we scanned.
Automated scan of the repo files. Always review code you run.
From the README
claude-code-best-practice
from vibe coding to agentic engineering - practice makes claude perfect
= Agents · = Commands · = Skills
Boris Cherny on X (tweet 1 · tweet 2 · tweet 3)
[!TIP] Visit the How to Use section to take full advantage of this repo.
🧠 CONCEPTS
| Feature | Location | Description |
|---|---|---|
| Subagents | .claude/agents/<name>.md | |
| Commands | .claude/commands/<name>.md | |
| Skills | .claude/skills/<name>/SKILL.md | Official Skills · Skills for Mono-repos |
| Workflows | .claude/commands/weather-orchestrator.md | |
| Hooks | .claude/hooks/ | Guide |
| MCP Servers | .claude/settings.json, .mcp.json | |
| Plugins | distributable packages | Marketplaces · Create Marketplaces |
| Settings | .claude/settings.json | Permissions · Model Config · Output Styles · Sandboxing · Keybindings · Auto Mode Config |
| Status Line | .claude/settings.json | |
| Memory | CLAUDE.md, .claude/rules/, ~/.claude/rules/, ~/.claude/projects//memory/ | 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] | Interactive Mode · Env Vars |
| AI Terms | ||
| Best Practices | Prompt Engineering · Extend Claude Code | |
| Prompt Library |
🔥 Hot
| Feature | Location | Description |
|---|---|---|
| Ultrareview | /code-review ultra, claude ultrareview [target] | Tasks tracking |
| Devcontainers | .devcontainer/ | |
| Channels | --channels, plugin-based | Reference |
| No Flicker Mode | /tui fullscreen, CLAUDE_CODE_NO_FLICKER=1 | |
| Auto Mode | --permission-mode auto, Shift+Tab | Blog |
| Power-ups | /powerup | |
| Fast Mode | /fast, "fastMode": true | |
| Advisor | /advisor, advisorModel, --advisor | Blog |
| Computer Use | computer-use MCP server | Desktop |
| Agent SDK | npm / pip package | Quickstart · Examples |
| Ralph Wiggum Loop | plugin | |
| Chrome | --chrome, extension | |
| Claude Code Web | claude.ai/code | Routines |
| Artifacts | /share, Artifact tool | |
| Slack | @Claude in Slack | |
| Code Review | GitHub App (managed) | Blog Local /code-review |
| GitHub Actions | .github/workflows/ | GitLab CI/CD |
| Remote Control | /remote-control, /rc | Headless Mode |
| [Deep Links](https://code.claude.com/docs/en |