This skill provides comprehensive guidance on using Claude Code, Anthropic's agentic coding tool.
Inherits all available tools
Additional assets for this skill
This skill inherits all available tools. When active, it can use any tool Claude has access to.
llms.txtskill.jsonThis skill provides comprehensive guidance on using Claude Code, Anthropic's agentic coding tool.
Use this skill when users need help with:
Claude Code is Anthropic's agentic coding tool that lives in your terminal and helps you turn ideas into code faster. Key features include:
Subagents: Specialized AI agents for specific tasks
planner: Research and create implementation planscode-reviewer: Review code quality and securitytester: Run tests and validate implementationsdebugger: Investigate and diagnose issuesdocs-manager: Manage technical documentationui-ux-designer: Design and implement UI/UXdatabase-admin: Database optimization and managementAgent Skills: Modular capabilities that extend functionality
Slash Commands: User-defined operations that expand to prompts
.claude/commands//command-nameHooks: Shell commands that execute in response to events
MCP Servers: Model Context Protocol integrations
# Install via npm (recommended)
npm install -g @anthropic-ai/claude-code
# Or via pip
pip install claude-code
# Login with API key
claude login
# Or set environment variable
export ANTHROPIC_API_KEY=your_api_key
# Start interactive session
claude
# Run with specific task
claude "implement user authentication"
# Use in specific directory
cd /path/to/project
claude
# Use the cook command for feature work
/cook implement user authentication with JWT
# Or start with planning
/plan implement payment integration with Stripe
# Quick fixes
/fix:fast the login button is not working
# Complex debugging
/debug the API returns 500 errors intermittently
# Fix type errors
/fix:types
# Review recent changes
claude "review my latest commit"
# Run tests
/test
# Fix test failures
/fix:test the user service tests are failing
# Create initial documentation
/docs:init
# Update existing docs
/docs:update
# Summarize changes
/docs:summarize
# Commit changes
/git:cm
# Commit and push
/git:cp
# Create pull request
/git:pr feature-branch main
/cook [task]: Implement features/plan [task]: Research and create implementation plans/debug [issue]: Debug technical issues/test: Run test suite/refactor: Improve code quality/fix:fast [issue]: Quick fixes/fix:hard [issue]: Complex issues with planning/fix:types: Fix TypeScript errors/fix:test [issue]: Fix test failures/fix:ui [issue]: Fix UI issues/fix:ci [url]: Fix CI/CD issues/fix:logs [issue]: Analyze logs and fix/docs:init: Create initial documentation/docs:update: Update existing documentation/docs:summarize: Summarize codebase/git:cm: Stage and commit/git:cp: Stage, commit, and push/git:pr [branch] [base]: Create pull request/plan:two [task]: Create plan with 2 approaches/plan:ci [url]: Plan CI/CD fixes/plan:cro [issue]: Create CRO optimization plan/content:fast [request]: Quick copy writing/content:good [request]: High-quality copy/content:enhance [issue]: Enhance existing content/content:cro [issue]: Conversion rate optimization/design:fast [task]: Quick design/design:good [task]: High-quality design/design:3d [task]: 3D designs with Three.js/design:screenshot [path]: Design from screenshot/design:video [path]: Design from video/deploy: Deploy using dx up/deploy-check: Check deployment readiness/brainstorm [question]: Brainstorm features/ask [question]: Answer technical questions/scout [prompt]: Scout directories/watzup: Review recent changes/bootstrap [requirements]: Bootstrap new project/journal: Write journal entriesSkills are located in .claude/skills/ and consist of:
Example skill.json:
{
"name": "my-skill",
"description": "Brief description of when to use this skill",
"version": "1.0.0",
"author": "Your Name"
}
Example skill.md structure:
# Skill Name
Description of what this skill does.
## When to Use This Skill
Specific scenarios when Claude should activate this skill.
## Instructions
Step-by-step instructions for Claude to follow.
## Examples
Concrete examples of skill usage.
Skills can be used with the Claude API:
import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY });
const response = await client.messages.create({
model: 'claude-sonnet-4-5-20250929',
max_tokens: 4096,
skills: [
{
type: 'custom',
custom: {
name: 'document-creator',
description: 'Creates professional documents',
instructions: 'Follow corporate style guide...'
}
}
],
messages: [{ role: 'user', content: 'Create a project proposal' }]
});
Model Context Protocol (MCP) allows Claude Code to connect to external tools and services.
MCP servers are configured in .claude/mcp.json:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "your_github_token"
}
}
}
}
Connect to MCP servers over HTTP/SSE:
{
"mcpServers": {
"remote-service": {
"url": "https://api.example.com/mcp",
"headers": {
"Authorization": "Bearer token"
}
}
}
}
Hooks are configured in .claude/hooks.json:
{
"hooks": {
"pre-tool": {
"bash": "echo 'Running bash command: $TOOL_ARGS'"
},
"post-tool": {
"write": "./scripts/format-code.sh"
},
"user-prompt-submit": "./scripts/validate-request.sh"
}
}
Available in hook scripts:
$TOOL_NAME: Name of the tool being called$TOOL_ARGS: JSON string of tool arguments$TOOL_RESULT: Tool execution result (post-tool only)$USER_PROMPT: User's prompt text (user-prompt-submit only)Plugins are packaged collections of extensions:
my-plugin/
├── plugin.json # Plugin metadata
├── commands/ # Slash commands
├── skills/ # Agent skills
├── hooks/ # Hook scripts
├── mcp/ # MCP server configurations
└── README.md # Documentation
{
"name": "my-plugin",
"version": "1.0.0",
"description": "Plugin description",
"author": "Your Name",
"homepage": "https://github.com/user/plugin",
"commands": ["commands/*.md"],
"skills": ["skills/*/"],
"hooks": "hooks/hooks.json",
"mcpServers": "mcp/mcp.json"
}
# Install from GitHub
claude plugin install gh:username/repo
# Install from local path
claude plugin install ./path/to/plugin
# Install from npm
claude plugin install npm:package-name
# List installed plugins
claude plugin list
# Uninstall plugin
claude plugin uninstall plugin-name
Organizations can create private plugin marketplaces:
{
"marketplaces": [
{
"name": "company-internal",
"url": "https://plugins.company.com/catalog.json",
"auth": {
"type": "bearer",
"token": "${COMPANY_PLUGIN_TOKEN}"
}
}
]
}
~/.claude/settings.json.claude/settings.json{
"model": "claude-sonnet-4-5-20250929",
"maxTokens": 8192,
"temperature": 1.0,
"thinking": {
"enabled": true,
"budget": 10000
},
"sandboxing": {
"enabled": true,
"allowedPaths": ["/workspace"],
"networkAccess": "restricted"
},
"outputStyle": "default",
"memory": {
"enabled": true,
"location": "project"
}
}
Model aliases available:
opusplan: Claude Opus with extended thinking for planningsonnet: Latest Claude Sonnethaiku: Claude Haiku for fast responsesCustomize Claude's behavior for different use cases:
# List available output styles
ls ~/.claude/output-styles/
# Use specific output style
claude --output-style technical-writer
# Create custom output style
cat > ~/.claude/output-styles/my-style.md <<EOF
You are a [role]. Follow these guidelines:
- [Guideline 1]
- [Guideline 2]
EOF
SSO Integration: SAML 2.0 and OAuth 2.0 support RBAC: Role-based access control User Management: Centralized user provisioning
Sandboxing: Filesystem and network isolation Audit Logging: Comprehensive activity logs Data Residency: Region-specific deployment options Compliance: SOC 2, HIPAA, GDPR compliant
Amazon Bedrock: Deploy via AWS Bedrock Google Vertex AI: Deploy via GCP Vertex AI Self-hosted: On-premises deployment with Docker/Kubernetes LLM Gateway: Integration with LiteLLM and other gateways
OpenTelemetry: Built-in telemetry support Usage Analytics: Track team productivity metrics Cost Management: Monitor and control API costs Custom Dashboards: Build org-specific dashboards
Proxy Support: HTTP/HTTPS proxy configuration Custom CA: Trust custom certificate authorities mTLS: Mutual TLS authentication IP Allowlisting: Restrict access by IP
Install the official extension:
Features:
Supported IDEs:
Installation:
Example workflow:
name: Claude Code CI
on: [push, pull_request]
jobs:
claude-review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: anthropic/claude-code-action@v1
with:
command: '/fix:types && /test'
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
Example pipeline:
claude-review:
image: node:18
script:
- npm install -g @anthropic-ai/claude-code
- claude login --api-key $ANTHROPIC_API_KEY
- claude '/fix:types && /test'
only:
- merge_requests
Enable deep reasoning for complex problems:
# Enable extended thinking globally
claude config set thinking.enabled true
# Set thinking budget
claude config set thinking.budget 15000
# Use in API
const response = await client.messages.create({
model: 'claude-sonnet-4-5-20250929',
thinking: {
type: 'enabled',
budget_tokens: 10000
},
messages: [...]
});
Reduce costs by caching repeated context:
const response = await client.messages.create({
model: 'claude-sonnet-4-5-20250929',
system: [
{
type: 'text',
text: 'You are a coding assistant...',
cache_control: { type: 'ephemeral' }
}
],
messages: [...]
});
Automatically track and rewind changes:
# Enable checkpointing
claude config set checkpointing.enabled true
# View checkpoints
claude checkpoint list
# Rewind to checkpoint
claude checkpoint restore <checkpoint-id>
# Create manual checkpoint
claude checkpoint create "before refactoring"
Control how Claude remembers context:
# Enable memory
claude config set memory.enabled true
# Set memory location (global/project/none)
claude config set memory.location project
# View stored memories
claude memory list
# Clear memories
claude memory clear
Authentication Failures
# Re-login
claude logout
claude login
# Verify API key
echo $ANTHROPIC_API_KEY
MCP Server Connection Issues
# Test MCP server
npx @modelcontextprotocol/inspector
# Check MCP configuration
cat .claude/mcp.json
Performance Issues
Permission Errors
Enable verbose logging:
# Enable debug logging
export CLAUDE_DEBUG=1
claude
# Or use debug flag
claude --debug "implement feature"
.claude/ directory in version controlGet Usage Report
GET /v1/admin/claude-code/usage
Get Cost Report
GET /v1/admin/usage/cost
List Users
GET /v1/admin/users
Create Message
POST /v1/messages
Stream Message
POST /v1/messages (with stream=true)
Count Tokens
POST /v1/messages/count_tokens
Upload File
POST /v1/files
List Files
GET /v1/files
Delete File
DELETE /v1/files/:file_id
List Models
GET /v1/models
Get Model
GET /v1/models/:model_id
Create Skill
POST /v1/skills
List Skills
GET /v1/skills
Update Skill
PATCH /v1/skills/:skill_id
Claude Code is a powerful agentic coding tool that can significantly accelerate development workflows. By leveraging its extensibility through skills, plugins, MCP servers, and hooks, you can create a highly customized development environment tailored to your team's needs.
Start simple with basic commands, then gradually adopt advanced features like custom skills, MCP integrations, and enterprise deployment options as your needs grow.