Claude Code Mastery

v1.0.0Developer Toolsstable

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

ai-agentsanthropicclaudeclaude-codeclaude-md
Share:
514
Stars
0
Downloads
0
Weekly
0/5

What is Claude Code Mastery?

Claude Code Mastery is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to complete guide to claude code: claude.md, hooks, skills, mcp servers, and commands

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

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • The complete guide to Claude Code: CLAUDE.md, hooks, skills,

Use Cases

Claude Code command reference
Hook and skill documentation
CLAUDE.md guide
TheDecipherist

Maintainer

LicenseMIT
Languageshell
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx claude-code-mastery

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Claude Code Mastery

Claude Code Mastery is a comprehensive reference and template repository that teaches developers how to get the most out of Claude Code through structured CLAUDE.md files, deterministic hook enforcement, custom slash commands, reusable skills, and MCP server integrations. It covers the full spectrum from global security gatekeeping via CLAUDE.md to hook-enforced rules that cannot be overridden by LLM context. Developers use it to eliminate configuration drift across projects and enforce quality gates that suggestions alone cannot guarantee.

Prerequisites

  • Claude Code installed (https://code.claude.com)
  • Python 3.8 or later (required for Python-based hooks like block-secrets.py)
  • jq installed (for JSON parsing in shell hooks)
  • Git to clone the repository and copy templates
  • A Unix-like shell environment (macOS or Linux; Windows users should use WSL)
1

Clone the repository

Clone the claude-code-mastery repository to get all templates, hooks, skills, and commands locally.

git clone https://github.com/TheDecipherist/claude-code-mastery.git
cd claude-code-mastery
2

Install hooks into your Claude config

Copy the provided hook scripts to your ~/.claude/hooks directory and make shell scripts executable. Hooks enforce rules deterministically — unlike CLAUDE.md which the LLM may override, hooks always run.

mkdir -p ~/.claude/hooks
cp hooks/block-secrets.py ~/.claude/hooks/
cp hooks/block-dangerous-commands.sh ~/.claude/hooks/
cp hooks/end-of-turn.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/*.sh
3

Configure settings.json with hook definitions

Copy the provided settings template to ~/.claude/settings.json. If you already have a settings.json, manually merge the hooks section. This wires up which hooks fire on which Claude Code events (PreToolUse, PostToolUse, Stop).

cp templates/settings.json ~/.claude/settings.json
4

Set up your global CLAUDE.md

Copy the global CLAUDE.md template to ~/.claude/CLAUDE.md and customize it with your name, preferences, and project conventions. This file is inherited by all Claude Code sessions.

cp templates/global-claude.md ~/.claude/CLAUDE.md
$EDITOR ~/.claude/CLAUDE.md
5

Install skills

Copy the reusable skills (commit-messages, security-audit) to your ~/.claude/skills directory so they are available as slash commands in every Claude Code session.

mkdir -p ~/.claude/skills
cp -r skills/* ~/.claude/skills/
6

Verify the installation

Start Claude Code and check that hooks and skills are recognized. Use /hooks to list loaded hooks and /skills to list available skills.

claude
# Inside Claude Code:
# /hooks
# /skills

Claude Code Mastery Examples

Client configuration

The repository configures Claude Code via settings.json hooks rather than a traditional MCP JSON block. Here is the structure of the settings.json hook configuration.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Write|Edit",
        "hooks": [
          {"type": "command", "command": "python3 ~/.claude/hooks/block-secrets.py"}
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {"type": "command", "command": "~/.claude/hooks/end-of-turn.sh"}
        ]
      }
    ]
  }
}

Prompts to try

Use the installed slash commands and skills in your Claude Code sessions to enforce quality gates and automate workflows.

- "/new-project" to scaffold a new project following your CLAUDE.md conventions
- "/security-check" to run a security audit on the current codebase
- "/pre-commit" to run quality gates before committing
- "/commit-messages" to generate conventional commit messages for staged changes

Troubleshooting Claude Code Mastery

Hooks do not appear to be running even though they are in ~/.claude/hooks

Hooks must be registered in settings.json under the correct event key (PreToolUse, PostToolUse, Stop). Simply placing scripts in the hooks folder is not enough — check that settings.json has the full hooks section and that Claude Code has been restarted.

block-dangerous-commands.sh or end-of-turn.sh fails with a permission error

Run 'chmod +x ~/.claude/hooks/*.sh' to ensure all shell hooks are executable. Python hooks (.py) do not need the executable bit but require python3 to be in PATH.

Skills are not showing up with /skills command

Each skill must be a directory containing a SKILL.md file inside ~/.claude/skills/. Verify the directory structure with 'ls -la ~/.claude/skills/' and make sure you copied the skill subdirectories, not just the SKILL.md files.

Frequently Asked Questions about Claude Code Mastery

What is Claude Code Mastery?

Claude Code Mastery is a Model Context Protocol (MCP) server that complete guide to claude code: claude.md, hooks, skills, mcp servers, and commands It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Claude Code Mastery?

Follow the installation instructions on the Claude Code Mastery GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Claude Code Mastery?

Claude Code Mastery works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Claude Code Mastery free to use?

Yes, Claude Code Mastery is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "claude-code-mastery": { "command": "npx", "args": ["-y", "claude-code-mastery"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Claude Code Mastery?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides