claude-code-mastery

by TheDecipheristVerified

The complete guide to Claude Code: CLAUDE.md, hooks, skills, MCP servers, and commands

545
Stars
46
Forks
Shell
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/TheDecipherist/claude-code-mastery

Getting Started

Guides for using skills like claude-code-mastery.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

✨ MDD — Manual-Driven Development: standalone package

MDD turns Claude Code into a structured development partner: every feature starts with documentation, every fix starts with an audit. 21 modes covering build, audit, planning, ops runbooks, and more — all via /mdd in any Claude Code session.

Install: npm install -g @thedecipherist/mdd && mdd install

GitHub →  ·  npm →

🚀 NEW 2-14-2026: Claude Code Mastery Starter Kit

Everything from V1–V5 baked into a production-ready project template. 16 slash commands, deterministic hook enforcement, a battle-tested MongoDB wrapper, live AI monitoring, and three-layer security — all wired up and ready to clone. Stop configuring, start building.

Claude Code Mastery V2 (Obsolete)

The complete guide to maximizing Claude Code: Global CLAUDE.md, MCP Servers, Commands, Hooks, Skills, and Why Single-Purpose Chats Matter.

This version is obsolete by now. Please use the new Claude Code Mastery Starter Kit instead

Previous versions:

V5

V4

V3


TL;DR: Your global ~/.claude/CLAUDE.md is a security gatekeeper AND project scaffolding blueprint. MCP servers extend Claude's capabilities. Custom commands automate workflows. Hooks enforce rules deterministically (where CLAUDE.md can fail). Skills package reusable expertise. And research shows mixing topics in a single chat causes 39% performance degradation.


📚 Table of Contents


🚀 Quick Start

# Clone this repo
git clone https://github.com/TheDecipherist/claude-code-mastery.git
cd claude-code-mastery

# Copy hooks to your Claude config
mkdir -p ~/.claude/hooks
cp hooks/* ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.sh

# Copy the settings template (review and customize first!)
cp templates/settings.json ~/.claude/settings.json

# Copy skills
mkdir -p ~/.claude/skills
cp -r skills/* ~/.claude/skills/

📖 The Guide

📱 Read V3 on GitHub Pages | 📄 View GUIDE.md (V3)

What's Covered

PartTopicKey Takeaway
1Global CLAUDE.md as Security GatekeeperDefine once, inherit everywhere
2Project Scaffolding RulesEvery project follows same structure
3MCP ServersExternal tool integrations
4Context7Live documentation access
5Custom CommandsWorkflow automation
6Single-Purpose Chats39% degradation from topic mixing
7Skills & HooksEnforcement over suggestion

📁 Repository Contents

claude-code-mastery/
├── GUIDE.md                    # The complete guide
├── templates/
│   ├── global-claude.md        # ~/.claude/CLAUDE.md template
│   ├── project-claude.md       # ./CLAUDE.md starter
│   ├── settings.json           # Hook configuration template
│   └── .gitignore              # Recommended .gitignore
├── hooks/
│   ├── block-secrets.py        # PreToolUse: Block .env access
│   ├── block-dangerous-commands.sh  # PreToolUse: Block rm -rf, etc.
│   ├── end-of-turn.sh          # Stop: Quality gates
│   ├── after-edit.sh           # PostToolUse: Run formatters
│   └── notify.sh               # Notification: Desktop alerts
├── skills/
│   ├── commit-messages/        # Generate conventional commits
│   │   └── SKILL.md
│   └── security-audit/         # Security vulnerability checks
│       └── SKILL.md
└── commands/
    ├── new-project.md          # /new-project scaffold
    ├── security-check.md       # /security-check audit
    └── pre-commit.md           # /pre-commit quality gates

🔧 Installation

Prerequisites

  • Claude Code installed
  • Python 3.8+ (for Python hooks)
  • jq (for JSON parsing in shell hooks)

Step-by-Step

1. Install Hooks

# Create hooks directory
mkdir -p ~/.claude/hooks

# Copy hook scripts
cp hooks/block-secrets.py ~/.claude/hooks/
cp hooks/block-dangerous-commands.sh ~/.claude/hooks/
cp hooks/end-of-turn.sh ~/.claude/hooks/

# Make shell scripts executable
chmod +x ~/.claude/hooks/*.sh

2. Configure Settings

# If you don't have settings.json yet
cp templates/settings.json ~/.claude/settings.json

# If you already have settings.json, merge the hooks section manually

3. Install Skills

# Create skills directory
mkdir -p ~/.claude/skills

# Copy skills
cp -r skills/* ~/.claude/skills/

4. Set Up Global CLAUDE.md

# Copy template
cp templates/global-claude.md ~/.claude/CLAUDE.md

# Customize with your details
$EDITOR ~/.claude/CLAUDE.md

5. Verify Installation

# Start Claude Code
claude

# Check hooks are loaded
/hooks

# Check skills are loaded
/skills

🔒 Why Hooks Matter

CLAUDE.md rules are suggestions. Hooks are enforcement.

CLAUDE.md saying "don't edit .env"
  → Parsed by LLM
  → Weighed against other context
  → Maybe followed

PreToolUse hook blocking .env edits
  → Always runs
  → Returns exit code 2
  → Operation blocked. Period.

Real-world example from a community member:

"My PreToolUse hook blocks Claude from accessing secrets (.env files) a few times per week. Claude does not respect CLAUDE.md rules very rigorously."

Hook Exit Codes

CodeMeaning
0Success, allow operation
1Error (shown to user only)
2Block operation, feed stderr to Claude

🧠 Why Single-Purpose Chats

Research consistently shows topic mixing destroys accuracy:

StudyFinding
Multi-turn conversations39% performance drop when mixing topics
Context rotRecall decreases as context grows
Context pollution2% early misalignment → 40% failure rate

Golden Rule: One Task, One Chat


🤝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Add your hooks, skills, or improvements
  4. Submit a PR with description

Ideas for Contributions

  • More language-specific hooks (Go, Rust, Ruby)
  • Additional skills (code review, documentation, testing)
  • Framework-specific scaffolding templates
  • MCP server configuration examples

📚 Sources

Official Documentation

Research

Community


📄 License

MIT License - See LICENSE


Built with ❤️ by TheDecipherist and the Claude Code community

Frequently Asked Questions

What is claude-code-mastery?

claude-code-mastery is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by TheDecipherist. The complete guide to Claude Code: CLAUDE.md, hooks, skills, MCP servers, and commands. It has 545 GitHub stars.

Is claude-code-mastery safe to use?

Yes. claude-code-mastery passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install claude-code-mastery?

Clone the repository with "git clone https://github.com/TheDecipherist/claude-code-mastery" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is claude-code-mastery written in?

claude-code-mastery is primarily written in Shell. It is open-source under TheDecipherist on GitHub, so you can review or fork the full source.

Are there alternatives to claude-code-mastery?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-code-mastery against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details