Claude Code Best Practices
From vibe coding to agentic engineering: a structured guide to configuring and mastering Claude Code.
- Source repo
- shanraisshan/claude-code-best-practice
- Stars
- ★ 69k
- Last updated
- 1d ago
- License
- MIT
- Primary language
- HTML
- FA score
- 46/100 · Major gaps
At a glance
- How it runs
- Works with
- Platform-specificClaude Code
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- Developers wanting to systematically configure Claude Code (subagents, commands, skills, hooks, MCP) can use the best-practice notes and implementation examples.
- Not a fit if
- Teams wanting one-click setup or automated installation
- Developers not using the Claude Code ecosystem
- Teams needing content stable across Claude Code versions
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-10+62.7 ★/day over 7 days
- Source review
- 46/100 · Major gaps
What does this agent do, and when should you use it?
This repository is a comprehensive best-practices guide for Claude Code, maintained by shanraisshan, aimed at helping developers transition from casual vibe coding to rigorous agentic engineering. It covers core Claude Code concepts such as subagents, commands, skills, hooks, MCP servers, settings, memory, checkpointing, and CLI startup flags, each with best-practice notes and implementation examples. It also includes comparative analyses of various development workflows (e.g., Superpowers, Everything Claude Code, etc.), and distills 83 practical tips from Claude Code creator Boris Cherny and community experts covering prompting, planning, context, session management, CLAUDE.md, agents, commands, skills, hooks, workflows, git/PR, and debugging. Additionally, it documents cross-model collaboration approaches (via plugins, MCP, or routers) and curates relevant videos and podcasts. The project is MIT-licensed, actively updated, and serves as a reference manual for developers aiming to deeply master Claude Code.
The repository provides structured documentation and examples demonstrating how to configure Claude Code components: subagent definitions (.claude/agents/*.md), commands (.claude/commands/*.md), skills (.claude/skills/*/SKILL.md), hooks (.claude/hooks/), MCP settings (.mcp.json), settings files (.claude/settings.json), and memory files (e.g., CLAUDE.md and .claude/rules/). It includes an orchestration workflow example (weather-orchestrator) that demonstrates the command→agent→skill pattern. Moreover, it references numerous external workflows (e.g., Superpowers, Everything Claude Code) and provides copyable commands like claude and /weather-orchestrator. It curates best-practice tips from the Claude Code team (Boris, Thariq) and the community, and documents cross-model integration options (e.g., via router or MCP to call other models).
- Developers wanting to systematically configure Claude Code (subagents, commands, skills, hooks, MCP) can use the best-practice notes and implementation examples.
- Teams designing complex development pipelines (like research→plan→execute→review→ship) can draw from the workflow comparisons and orchestration examples.
- Developers facing context management issues (e.g., context rot, long sessions) can apply tips on /compact, /clear, /rewind, and subagent usage.
- Developers wanting to integrate Claude Code with other AI models (e.g., Codex, Gemini) can refer to the cross-model workflow section.
- Developers writing high-quality CLAUDE.md and skill files can follow the guidance and recommendations in the repo.
- Developers tracking the latest Claude Code features and community trends can explore the 'Hot' section and subscription list.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npm install -g @anthropic-ai/claude-code
How do you install or deploy this agent?
This repository is a collection of documentation and examples; no installation is required. Users must first install the Claude Code CLI (e.g., via npm install -g @anthropic-ai/claude-code or per official docs), then clone the repo: git clone https://github.com/shanraisshan/claude-code-best-practice.git. The templates and examples (like the .claude/ directory structure) can be copied into your own project.
How do you use this agent?
After cloning, browse the docs. To use the built-in orchestration example, run /weather-orchestrator in Claude Code to experience the command→agent→skill flow. Reference the 'best-practice' and 'implementation' directories to copy subagent, command, skill, etc. files into your project. Read the 'Tips and Tricks' section and apply applicable tips to your daily workflow.
What are this agent's strengths and limitations?
- Comprehensive and well-structured, covering core Claude Code concepts and advanced features with best-practice notes and implementation examples.
- Aggregates 83 practical tips from Claude Code creator Boris Cherny and community experts, offering high practical value.
- Provides comparative analysis of multiple well-known development workflows (e.g., Superpowers, Everything Claude Code) to help users choose a methodology.
- Highly dependent on the Claude Code ecosystem; some content (e.g., specific commands or features) may become outdated as versions evolve, requiring continuous attention.
- Primarily serves as a knowledge base; users must understand and apply it themselves, with no one-click configuration or automated installation tools.
- Some content (e.g., tips and videos) links to external resources that may break, and is not fully backed up within the repository.
How does this agent compare with similar options?
The repository, in its development workflows section, compares several well-known Claude Code workflow repositories, including Superpowers (obra/superpowers), Everything Claude Code (affaan-m/everything-claude-code), Matt Pocock Skills (mattpocock/skills), gstack (garrytan/gstack), Spec Kit (github/spec-kit), agent-skills (addyosmani/agent-skills), Get Shit Done (gsd-build/get-shit-done), OpenSpec (Fission-AI/OpenSpec), BMAD-METHOD (bmad-code-org/BMAD-METHOD), oh-my-claudecode (Yeachan-Heo/oh-my-claudecode), etc., providing step-by-step flows and star ratings to help users choose based on their needs.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Claude Code Best Practices This agent | 46 · Major gaps | CLIFree + model costs | ★ 69k | 1d ago | HTML | Claude Code |
| Claude Code: Everything You Need to Know | 79 · Good | CLIFree + model costs | ★ 3.7k | today | TypeScript | Claude Code |
| MiMoCode | 64 · Some gaps | CLIFreemium | ★ 14k | 2d ago | TypeScript | ChatGPT · Codex · Claude Code |
| Lime - Full-Stack Desktop AI Agent | 61 · Some gaps | Desktop appFree + model costs | ★ 1.5k | 10d ago | TypeScript | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The sample skills constrain the weather lookup by location, field, and output, and the SVG skill says to use the caller's temperature without re-fetching it. These boundaries support some data-flow transparency and attribution. The browser skill permits navigation, form filling, and clicking, and shows saving login state and accessing local files, but the materials do not establish general pre-action confirmation, credential protections, or recovery steps. Least privilege, sensitive-data handling, external effects, and rollback therefore receive partial scores. `.mcp.json` uses npx to fetch three pinned MCP package versions, with no integrity checks or security guidance shown, so dependency security receives limited credit. The publisher's unverified identity is not treated as a deduction.
The README, CLAUDE.md, and sample skills jointly describe the command-to-agent-to-skill weather flow and its file outputs, providing some corroboration. However, CLAUDE.md also relies on reference materials and tools not included in the packet, and the overall workflow has no error-handling or failure-message guidance. The weather-fetcher prohibition on writing files is scoped to that skill, while the SVG skill performs the writes. Self-consistency and dependency availability are only partly supported; there is no direct evidence for failure messages.
The README presents the repository as a Claude Code best-practice reference and organizes material around agents, commands, skills, settings, and workflows. The weather skills specify triggers, location, and units, while the browser skill lists common tasks. The sample coverage is limited, there is no complete environment compatibility matrix, and some instructions rely on Claude Code tools and Bash, so environment fit scores low.
The README's concept index and workflow entry point provide a usable information structure, and skills include names, descriptions, tasks, steps, and examples. The LICENSE clearly provides MIT terms and copyright information, earning full credit for licensing. Installation guidance is limited to starting Claude and invoking a command; limitations are not systematically documented, version history is unclear in the supplied material, and maintenance responsibility is not clearly stated, so those criteria receive partial credit.
The sample weather workflow defines understandable outputs: temperature text, an SVG card, and a Markdown summary. The repository also collects configuration and workflow references, showing practical value. However, the example depends on an external weather service and multiple MCP packages, and the browser skill enables broad actions. The materials do not quantify operating costs, requirements, or recovery after failure, limiting the cost-benefit score.
The README links major concepts to implementation guides or configuration, while CLAUDE.md describes the weather components and the sample skills specify concrete inputs and outputs. This provides some cross-source support. The weather API fields, coordinates, and output formats are specific, but many best-practice and external-feature statements remain documentation claims that cannot all be checked from this packet. Traceability and corroboration receive partial credit, and facts are not consistently distinguished from inference.
- The browser skill demonstrates entering login details, saving authentication state, submitting forms, and accessing local files; confirm the target site, data handling, and possible external effects before use.
- The MCP configuration fetches external packages through npx; the materials do not describe integrity checks, dependency review, or an update policy.
- This is a reference repository and the packet is only a sample, so unseen skills, configuration, and maintenance processes cannot be confirmed.
FAQ
How is this repo different from the official Claude Code docs?
Do I need to pay to use the content?
Do these tips apply to other AI coding tools like GitHub Copilot or Cursor?
How can I contribute to this repository?
Is Claude Code Best Practices open source?
Is Claude Code Best Practices safe to use?
Is Claude Code Best Practices still maintained?
Who makes Claude Code Best Practices?
Thanks — we use this to improve the page.