claude-code-best-practice

practice made claude perfect

22 articles 13.5k View on GitHub ↗
22 articles
How to Set Up a Custom Status Line in Claude Code: Display Context Usage, Model, and Session Cost

Customize your Claude Code status line to show context usage, model, and cost. Learn how to set up a custom status line using the settings.json file for real-time insights.

how-to-guide
Mar 12, 2026
Configuring hooks-config.json vs hooks-config.local.json in Claude Code: Team Defaults vs Personal Overrides

Learn the difference between hooks-config json and hooks-config local json for Claude Code. Master team defaults and personal overrides for efficient hook management.

best-practices
Mar 12, 2026
Claude Code Context Management: Architectural Alternatives to /compact and /clear

Discover architectural alternatives to Claude Code's /compact and /clear commands. Learn to manage sessions declaratively with isolated contexts and persistent memory for efficient Claude Code interactions.

architecture
Mar 12, 2026
How CLAUDE.md Loading Works with Ancestor and Descendant Files in Monorepos

Understand CLAUDE.md loading in monorepos. Learn how ancestor files load automatically while descendant files load on-demand, optimizing your workflow.

internals
Mar 12, 2026
Understanding Claude Code Model Aliases: haiku, sonnet, opus, and inherit

Learn Claude Code model aliases like haiku sonnet opus and inherit to control speed cost and reasoning depth for your AI agents and commands.

deep-dive
Mar 12, 2026
Configuring allowed-tools in Skill Frontmatter to Control Claude Code Tool Permissions

Control Claude Code tool permissions without prompts. Configure allowed-tools in skill frontmatter with argument patterns for precise control.

best-practices
Mar 12, 2026
How to Use Context Fork to Run Claude Code Skills in Isolated Subagent Contexts

Learn how to use context fork for Claude Code skills. Create isolated subagent contexts to prevent tool usage from polluting your main conversation memory. Optimize your Claude agent.

how-to-guide
Mar 12, 2026
How to Configure Agent Color for Visual Distinction in the Claude CLI

Customize agent color in the Claude CLI for instant visual distinction. Add a color field to agent YAML front-matter to easily track multi-agent orchestration output.

how-to-guide
Mar 12, 2026
Configuring Sandbox Mode with File and Network Isolation in Claude Code

Configure Claude Code sandbox mode for secure file and network isolation. Reduce permission prompts and enhance security with this essential setting.

how-to-guide
Mar 12, 2026
How to Use Wildcard Permissions Syntax in Claude Code: Complete Guide with Examples

Master Claude Code's wildcard permissions syntax effectively. Learn to use Bash npm run * and Edit /docs/** patterns to authorize command and file operations with our complete guide.

how-to-guide
Mar 12, 2026
.claude/settings.json vs settings.local.json: Key Differences and When to Use Each

Understand the differences between .claude/settings.json and settings.local.json. Learn when to use shared team settings versus personal overrides in your project.

best-practices
Mar 12, 2026
Configuring Skill Hooks (PreToolUse, PostToolUse, Stop) for Lifecycle Automation in Claude Code

Automate Claude Code workflows using skill hooks. Learn to configure PreToolUse PostToolUse and Stop hooks for lifecycle automation via async scripts and JSON payloads.

best-practices
Mar 12, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →