You are an expert on Claude Code - Anthropic's agentic coding tool. You have deep knowledge of its features, configuration, and best practices.
Provides expert guidance on Claude Code features, configuration, and best practices. Use when users ask about commands, settings, CLAUDE.md structure, hooks, MCP, or troubleshooting.
/plugin marketplace add ali/claude-colab/plugin install claude-colab@claude-colabThis skill inherits all available tools. When active, it can use any tool Claude has access to.
You are an expert on Claude Code - Anthropic's agentic coding tool. You have deep knowledge of its features, configuration, and best practices.
For detailed information, reference these cached documentation files:
To update documentation:
python3 update_docs.py (local) or use the "Update Documentation" cell in the notebookdocs_manifest.json for source URLs and sitemap| Command | Purpose |
|---|---|
/init | Generate CLAUDE.md from codebase |
/clear | Reset conversation context |
/compact [focus] | Summarize to save tokens |
/usage | Show token usage and costs |
/model <name> | Switch model (sonnet, opus, haiku) |
/memory | Edit CLAUDE.md files |
/doctor | Diagnose installation issues |
/mcp | Manage MCP server connections |
/vim | Toggle vim edit mode |
# | Quick-add to memory |
! | Toggle auto-accept edits |
| File | Location | Purpose |
|---|---|---|
CLAUDE.md | Project root | Project memory & instructions |
CLAUDE.local.md | Project root | Personal project notes (gitignored) |
~/.claude/CLAUDE.md | Home | Global instructions |
.claude/settings.json | Project | Project settings |
~/.claude/settings.json | Home | User settings |
.claude/commands/*.md | Project | Custom slash commands |
.claude/agents/*.md | Project | Custom subagents |
.claude/skills/*/SKILL.md | Project | Custom skills |
.claude/settings.local.json (personal).claude/settings.json (shared)~/.claude/settings.json (user default)# Project Name
## Quick Commands
- `npm run dev` - Start dev server
- `npm test` - Run tests
## Code Style
- TypeScript with strict mode
- Prefer functional components
- Use Tailwind for styling
## Project Structure
- src/components/ - React components
- src/lib/ - Utilities
- src/api/ - API routes
## Important Notes
- Never commit .env files
- Run migrations before testing
{
"permissions": {
"allow": [
"Bash(npm:*)",
"Bash(git:*)",
"Read(*)",
"Write(src/**)"
],
"deny": [
"Bash(rm -rf:*)",
"Read(.env)",
"Write(node_modules/**)"
]
}
}
Bash(command:*) - Allow command with any argsBash(npm run:*) - Allow npm run anythingRead(path) - Allow reading specific pathWrite(glob/**) - Allow writing to glob pattern* in allow = allow all (dangerous)---
allowed-tools: Bash(npm:*), Read, Write
description: Run the test suite
argument-hint: [test-pattern]
---
Run tests matching $ARGUMENTS:
- Use `npm test -- $ARGUMENTS` if pattern provided
- Use `npm test` for all tests
- Report failures clearly
$ARGUMENTS - Everything after command name$1, $2, etc. - Positional arguments!command - Execute bash and include output@file - Include file contents---
name: reviewer
description: Code review specialist
tools: Read, Grep, Glob
model: sonnet
---
You review code for:
- Logic errors
- Performance issues
- Security vulnerabilities
Be specific and suggest fixes.
| Event | When | Use For |
|---|---|---|
PreToolUse | Before tool runs | Validate, block dangerous ops |
PostToolUse | After tool completes | Auto-format, lint |
Stop | Claude finishes | Commit, notify |
SessionStart | Session begins | Load env vars |
UserPromptSubmit | User sends message | Log, transform |
{
"hooks": {
"PostToolUse": [{
"matcher": "Write|Edit",
"hooks": [{
"type": "command",
"command": "black $CLAUDE_FILE_PATHS",
"timeout": 30
}]
}]
}
}
0 - Success, continue2 - Block operation, show error to Claude# HTTP server
claude mcp add --transport http name https://server.url/mcp
# Local stdio server
claude mcp add --transport stdio name -- npx package-name
# From Claude Desktop
claude mcp add-from-claude-desktop
claude mcp list # Show configured servers
claude mcp remove name # Remove a server
/mcp # Check status in Claude
| Alias | Model | Best For |
|---|---|---|
sonnet | Claude Sonnet 4.5 | Daily coding, balanced |
opus | Claude Opus 4 | Complex reasoning, hard problems |
haiku | Claude Haiku 4.5 | Fast, simple tasks |
sonnet[1m] | Extended context | Large codebases |
# Command line
claude --model opus
# In session
/model opus
# Environment variable
export ANTHROPIC_MODEL=claude-sonnet-4-5-20250929
# Single prompt, text output
claude -p "explain this code" --output-format text
# JSON output for scripting
claude -p "list files" --output-format json
# With file input
claude -p "review this" < file.py
# GitHub Action example
- name: Claude Review
run: |
claude -p "review changes in this PR" \
--output-format text \
> review.md
"Command not found: claude"
export PATH="$HOME/.local/bin:$PATH"source ~/.bashrcContext getting polluted
/clear between unrelated tasks/compact to summarize and reduce tokensClaude not following instructions
Slow responses
/model haiku/compact to reduce context# Check installation
claude doctor
# Check version
claude --version
# Check what Claude sees
/status
/usage
In Colab's headless terminal:
/doctor and /status may hang (interactive UI issues)/usage to verify Claude is working (note: usage tab may fail with setup-token due to missing user:profile scope)claude -p "prompt" for scripted testingPATH setup:
export PATH="$HOME/.local/bin:$HOME/.claude/bin:$PATH"
export TERM=xterm-256color
export FORCE_COLOR=1
Sandbox requires:
apt-get install socat bubblewrap
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.