kid-sid/claude-spellbook/claude-code
Claude Code and agent skill by kid-sid/claude-spellbook
- community
Checking that the SKILL.md file is still in the repository.
Use when configuring Claude Code — installing skills or agents, writing hook configurations, setting up tool permissions, registering MCP servers, or authoring CLAUDE.md project instructions.
Install
npx vskill@latest install kid-sid/claude-spellbook/claude-codeSKILL.md
Claude Code Setup
Configuration and customization reference for Claude Code — skills, commands, agents, hooks, permissions, and MCP servers.
When to Activate
- Setting up skills, slash commands, or agents in a new project or globally
- Writing or debugging hook configurations in
settings.json - Configuring tool permissions to reduce approval prompts
- Registering or troubleshooting an MCP server
- Writing
CLAUDE.mdproject instructions - Asking how Claude Code loads context or resolves settings
- Integrating Claude Code with VS Code or JetBrains
Directory Layout
Settings are merged: settings.local.json overrides .claude/settings.json overrides ~/.claude/settings.json.
Skills
Skills are markdown files that Claude loads contextually when the task matches.
File Format
Installation
How Skills Load
Claude matches the task description against the description frontmatter field and the ## When to Activate bullet points. No manual invocation needed — skills activate automatically. The name field must match the folder name (or file stem for flat layout).
Slash Commands
Slash commands are prompt templates invoked with /command-name in the Claude Code prompt.
File Format
$ARGUMENTS is replaced with everything the user typed after the command name:
Examples
Installation
Agents
Agents run in an isolated context window with their own tool set and system prompt.
File Format
Frontmatter Fields
| Field | Values | Notes | |
|---|---|---|---|
name | kebab-case string | Must match filename stem | |
description | One sentence | Controls when Claude auto-delegates — write as "Use this agent when…" | |
tools | Comma-separated tool names | Omit to inherit all tools; restrict for read-only agents | |
model | sonnet, opus, haiku, inherit | inherit uses the parent session's model | |
color | red blue green yellow purple orange | UI accent only |
Available Tools
Principle of least privilege: a read-only audit agent should declare tools: Read, Grep, Glob, Bash — no Write or Edit.
Installation
Hooks
Hooks run shell commands automatically in response to Claude Code events.
Settings Structure
Hook Events
| Event | When it fires | Matcher targets | |
|---|---|---|---|
SessionStart | Once at session open | Empty string "" | |
UserPromptSubmit | Every time user submits a message | Message content substring | |
PreToolUse | Before a tool call executes | Tool name | |
PostToolUse | After a tool call completes | Tool name | |
PreCompact | Before context window compaction | Empty string "" | |
Stop | When Claude finishes a turn | Empty string "" |
Hook Environment Variables
| Variable | Available in | Value | |
|---|---|---|---|
$CLAUDE_FILE_PATH | Write, Edit hooks | Absolute path of the file | |
$CLAUDE_TOOL_NAME | All tool hooks | Name of the tool being called | |
$CLAUDE_TOOL_INPUT | All tool hooks | JSON-encoded tool input | |
$CLAUDE_TOOL_OUTPUT | PostToolUse only | JSON-encoded tool output |
Common Hook Patterns
The if field inside a hook entry is a secondary glob filter on top of the matcher. Use it to handle multiple file types under one matcher block.
async: true — hook runs in background; Claude doesn't wait for it. Use for logging, notifications. async: false (default) — Claude waits for the hook to complete before continuing. Use for formatters, validators.
PreToolUse Blocking
A PreToolUse hook with exit code 2 blocks the tool call and surfaces the hook's stdout as an error message to Claude.
Settings and Permissions
Settings Files
Permissions
Permission string syntax:
Deny rules take precedence over allow rules.
Environment Variables
Model Override
MCP Servers
MCP (Model Context Protocol) servers expose tools and resources to Claude Code.
Registration
Examples
Management
MCP config is stored as JSON:
CLAUDE.md
CLAUDE.md files inject persistent instructions into every session.
Load Order
All matching files are concatenated — lower-level files extend rather than replace.
What to Put in CLAUDE.md
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/claude-code/skill.md
Popularity
- Repository stars
- 186
- Repository forks
- 15
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kid-sid/claude-spellbook/claude-code)