This directory contains Docker configuration files to replicate all Claude Code customizations applied on 2025-11-14, including comprehensive system prompt management with slash commands and natural language integration.
-
Copy environment file:
cp .env.example .env
-
Edit .env with your API token:
# Set your Anthropic API token ANTHROPIC_AUTH_TOKEN=your_token_here -
Build and run:
./build-and-run.sh
-
Use Claude Code with enhanced features:
docker exec -it claude-code-customized claude
- Auto-compact buffer reduced from 22.5% to 5%
- Frees up 17.5% more context space
- Permanent configuration via environment variables
- Slash Commands:
/system-prompt,/prompts,/prompt - Natural Language: "Show available prompts", "Use development mode"
- Interactive Selection: Guided prompt builder
- Quick Presets: Development, Security, Analysis, Docker modes
- Centralized Management: All custom folders in
~/projects/ - Drop-in Customization: Add
.mdfiles for skills, commands, prompts - Easy Access:
claude-skills/,claude-commands/,claude-system-prompts/
- Pre-configured with all customizations
- All scripts executable and ready to use
- Environment variables properly set
- Volume mounts for persistent customizations
- Auto-compact buffer reduced from 22.5% to 5%
- Frees up 17.5% more context space
- Permanent solution via environment variables
- Drop-in Management: Add
.mdfiles to create system prompts - Core Prompt Visibility: Extract and view current active system prompts
- CLI Integration: Management commands for listing, viewing, using prompts
- Template System: Standardized format for consistent prompt creation
- Validation: Built-in prompt validation and conflict detection
- Custom Commands:
/system-prompt,/prompts,/promptintegrated in Claude Code - Natural Language: "Show available prompts", "Use development mode", etc.
- Interactive Interfaces: Guided prompt selection and management
- Quick Presets: One-click access to common prompt combinations
- 9 Centralized Symlinks: All custom folders in
~/projects/directory - Drop-in Skills: Add
.mdfiles toclaude-skills/for custom functionality - Drop-in Commands: Add
.mdfiles toclaude-commands/for slash commands - Easy MCP Management: Configure servers via
mcp-config/symlink
docker-baseline/
├── Dockerfile.claude-custom # Docker image with all customizations
├── docker-compose.yml # Docker Compose configuration
├── settings.json.template # Optimized Claude settings
├── setup-claude-customizations.sh # Setup script for manual application
├── build-and-run.sh # Build and run automation script
├── .env.example # Environment variables template
├── CLAUDE_CUSTOMIZATIONS.md # Detailed documentation
├── SLASH_COMMANDS.md # Command integration documentation
├── INTEGRATION_CHECKLIST.md # Complete verification checklist
└── README.md # This file
# Add a new skill via Docker
docker exec -it claude-code-customized bash -c 'echo "# My Custom Skill
This skill provides enhanced functionality..." > ~/projects/claude-skills/my-skill.md'# Add a new command via Docker
docker exec -it claude-code-customized bash -c 'echo "# My Command
## Description
Does something useful...
## Usage
/my-command [args]" > ~/projects/claude-commands/my-command.md'# Inside the Docker container
/system-prompt list # List all available prompts
/system-prompt use base/development-focus # Use development prompt
/prompts security # Quick security preset
"Show me available prompts" # Natural language
"Use development mode" # Natural language# Start Claude Code in container
docker exec -it claude-code-customized claude
# Check context optimization
/context
# Should show auto-compact buffer at ~5% instead of 22.5%# Edit MCP configuration
docker exec -it claude-code-customized vim ~/projects/mcp-config/master-config.json
# Restart container to apply changes
./build-and-run.shAutomation script for building and running the Docker container.
Commands:
./build-and-run.sh(default) - Build image and run container./build-and-run.sh build- Build only./build-and-run.sh run- Run only./build-and-run.sh logs- Show logs./build-and-run.sh stop- Stop container./build-and-run.sh status- Show status
Standalone script that can be run in any environment to apply the customizations.
Usage:
# Run directly
./setup-claude-customizations.sh
# Or download and run
curl https://raw.githubusercontent.com/codeverlan/claude-code-customized/main/setup-claude-customizations.sh | bashANTHROPIC_AUTH_TOKEN- Your Anthropic API token
ANTHROPIC_BASE_URL- Custom API endpointCLAUDE_AUTO_COMPACT_BUFFER_RATIO- Buffer ratio (default: 0.05)CLAUDE_CONTEXT_AUTOCOMPACT_TARGET- Target size (default: 5%)API_TIMEOUT_MS- Request timeout (default: 3000000)
The following volumes are persisted:
projects-data- Your customizations and projectsclaude-config- Claude Code configurationmcp-config- MCP server configurations
To verify customizations are working:
-
Check context usage:
docker exec -it claude-code-customized claude /context # Look for "Autocompact buffer: ~5%"
-
Verify symlinks:
docker exec -it claude-code-customized ls -la ~/projects/ # Should show 8 symlinks starting with "claude-"
-
Test drop-in functionality:
docker exec -it claude-code-customized bash -c 'echo "# Test" > ~/projects/claude-skills/test.md' docker exec -it claude-code-customized ls ~/projects/claude-skills/ # Should show test.md
If you prefer not to use Docker, you can apply the customizations manually:
-
Run the setup script:
./setup-claude-customizations.sh
-
Or apply manually:
- Add environment variables to
~/.claude/settings.json - Create symlinks in
~/projects/directory
- Add environment variables to
- Check that
.envfile is properly configured - Verify Docker is running and you have permissions
- Check logs with
./build-and-run.sh logs
- Verify environment variables are set in container
- Check
~/.claude/settings.jsoncontains the optimizations - Restart Claude Code session
- Check that target directories exist
- Verify proper permissions in container
- Run setup script manually in container
To update customizations:
-
Pull latest changes:
git pull origin main
-
Rebuild and run:
./build-and-run.sh
-
Or update manually:
docker exec -it claude-code-customized /usr/local/bin/setup-claude-customizations.sh
For issues with:
- Docker setup: Check Docker documentation
- Claude Code: Check Claude Code documentation
- Customizations: Review
CLAUDE_CUSTOMIZATIONS.md
Version: 1.0 Created: 2025-11-14 Claude Code Compatibility: Latest