https://github.com/mnestorov/cc-docs-mirror
Local mirror of Claude Code documentation files from docs.anthropic.com, automatically updated with semantic versioning.
https://github.com/mnestorov/cc-docs-mirror
claude claude-code claude-code-commands claude-code-hooks
Last synced: 6 months ago
JSON representation
Local mirror of Claude Code documentation files from docs.anthropic.com, automatically updated with semantic versioning.
- Host: GitHub
- URL: https://github.com/mnestorov/cc-docs-mirror
- Owner: mnestorov
- License: other
- Created: 2025-08-22T00:06:51.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-08-22T00:24:46.000Z (6 months ago)
- Last Synced: 2025-08-22T02:30:00.027Z (6 months ago)
- Topics: claude, claude-code, claude-code-commands, claude-code-hooks
- Language: Shell
- Homepage:
- Size: 209 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: docs/security.md
Awesome Lists containing this project
README
# Claude Code Documentation Mirror
[](https://github.com/mnestorov/cc-docs-mirror/commits/main)
[](https://github.com/mnestorov/cc-docs-mirror/releases)
[]()
Local mirror of Claude Code documentation files from https://docs.anthropic.com/en/docs/claude-code/, automatically updated with semantic versioning.
## π Quick Start
**One-command installation:**
```bash
curl -fsSL https://raw.githubusercontent.com/mnestorov/cc-docs-mirror/main/scripts/bin/install.sh | bash
```
This sets up the `/docs` command in Claude Code with automatic updates.
## β¨ Features
- **π Instant documentation access** - Read docs without web delays
- **π Automatic updates** - Stays current with latest Claude Code docs
- **π Changelog integration** - Access Claude Code release notes with `/docs changelog`
- **π Smart search** - Find docs with natural language queries
- **π Cross-platform** - Works on macOS and Linux
- **β‘ Fast** - Local files mean instant access
## π‘ Usage
### Basic commands
```bash
/docs # List all available documentation
/docs hooks # Read hooks documentation instantly
/docs mcp # Read MCP documentation
/docs changelog # Read Claude Code release notes
```
### Check for updates
```bash
/docs -t # Check sync status with GitHub
/docs -t hooks # Check updates, then read hooks docs
```
### What's new
```bash
/docs what's new # See recent documentation changes
```
### Natural language
```bash
/docs how do I use environment variables?
/docs explain memory management
/docs find all mentions of authentication
```
## π οΈ Development
### Prerequisites
- **git** - Repository management
- **jq** - JSON processing
- **curl** - Downloads
- **python3** - For documentation fetching (optional)
- **Claude Code** - Obviously! π
### Manual Installation
```bash
git clone https://github.com/mnestorov/cc-docs-mirror.git
cd cc-docs
./scripts/bin/install.sh
```
### Documentation Fetching (Advanced)
The project includes an enhanced Python script for fetching documentation with progress visualization:
```bash
# Install Python dependencies
cd scripts
pip install -r requirements.txt
# Run the documentation fetcher
python fetch_claude_docs.py
```
**Features:**
- π **Progress bars** with real-time updates
- π **Smart retry logic** with exponential backoff
- β
**Content validation** to ensure quality
- π **Detailed statistics** and success rates
- π― **Automatic discovery** of new documentation pages
### Project Structure
```
cc-docs/
βββ docs/ # Mirror of official documentation
βββ scripts/
β βββ fetch_claude_docs.py # Enhanced documentation fetcher
β βββ requirements.txt # Python dependencies
β βββ bin/ # Shell scripts
β βββ install.sh # Main installer
β βββ claude-docs-helper.sh # Core functionality
β βββ uninstall.sh # Uninstaller
β βββ update-version.sh # Version updater
βββ .github/workflows/ # GitHub Actions for automation
βββ package.json # Semantic release configuration
βββ .releaserc.json # Release automation rules
```
## π How Updates Work
1. **GitHub Actions** fetches documentation changes every few hours
2. **Semantic versioning** tracks releases automatically
3. **Pre-tool hooks** check for updates when you read docs
4. **Git pull** updates happen automatically when new content is available
## π Troubleshooting
### Command not found
```bash
# Check if command exists
ls ~/.claude/commands/docs.md
# Restart Claude Code and try again
# Or reinstall:
curl -fsSL https://raw.githubusercontent.com/mnestorov/cc-docs-mirror/main/scripts/bin/install.sh | bash
```
### Documentation seems outdated
```bash
# Force update check
/docs -t
# Manual update
cd ~/.claude-code-docs && git pull
```
### Installation issues
1. **Missing dependencies**: Install `git`, `jq`, `curl`
2. **Permission errors**: Check `~/.claude/` directory permissions
3. **Network issues**: Check if GitHub Actions are running: [View Actions](https://github.com/mnestorov/cc-docs-mirror/actions)
## ποΈ Uninstalling
### Quick Uninstall
From anywhere, run:
```bash
~/.claude-code-docs/scripts/bin/uninstall.sh
```
Or use the docs command:
```bash
/docs uninstall
```
### What Gets Removed
The uninstaller will remove:
1. **The /docs command** from `~/.claude/commands/docs.md`
2. **The auto-update hook** from `~/.claude/settings.json`
3. **The installation directory** `~/.claude-code-docs`
### Manual Uninstall
If you prefer to uninstall manually:
1. **Remove the command file:**
```bash
rm -f ~/.claude/commands/docs.md
```
2. **Remove the hook from Claude settings:**
Edit `~/.claude/settings.json` to remove the PreToolUse hook that references claude-code-docs.
3. **Remove the installation directory:**
```bash
rm -rf ~/.claude-code-docs
```
### Multiple Installations
If you have multiple installations, the uninstaller will notify you about other locations it finds. You'll need to remove each one separately.
To find all installations:
```bash
find ~ -name "claude-code-docs" -type d 2>/dev/null | grep -v ".claude-code-docs"
```
### Backup Created
The uninstaller creates a backup of your Claude settings at `~/.claude/settings.json.backup` before removing hooks, just in case.
### Reinstalling
To reinstall after uninstalling:
```bash
curl -fsSL https://raw.githubusercontent.com/mnestorov/cc-docs-mirror/main/scripts/bin/install.sh | bash
```
## π€ Contributing
We welcome contributions from the community! Please see our [Contributing Guidelines](CONTRIBUTING.md) for detailed information.
### Quick Start for Contributors
1. **Fork & Clone**:
```bash
git clone https://github.com/YOUR_USERNAME/cc-docs-mirror.git
cd cc-docs-mirror
npm install
```
2. **Make Changes** following our conventions:
- Use conventional commits (`feat:`, `fix:`, `docs:`)
- Test your changes locally
- Update documentation as needed
3. **Submit a Pull Request** with a clear description
### Ways to Contribute
- πͺ **Windows Support**: Help make scripts work on Windows (high priority!)
- π **Bug Reports**: [Open an issue](https://github.com/mnestorov/cc-docs-mirror/issues) with reproduction steps
- π‘ **Feature Requests**: [Start a discussion](https://github.com/mnestorov/cc-docs-mirror/discussions) for new ideas
- π **Documentation**: Improve guides, add examples, fix typos
- β‘ **Performance**: Optimize fetching and processing speed
- π **Translations**: Help internationalize the project
See [CONTRIBUTING.md](CONTRIBUTING.md) for complete guidelines, code style, and development setup.
## π Security
- Repository cloned over HTTPS from GitHub
- All operations confined to `~/.claude-code-docs`
- No external data transmission (beyond git operations)
- Hooks only run `git pull` for documentation updates
For additional security, you can fork the repository and install from your own fork.
## π License
Documentation content belongs to Anthropic.
This mirror tool is open source under MIT license.
## π Project Status




## πΊοΈ Roadmap
- [ ] πͺ Windows support
- [ ] π Enhanced search capabilities
- [ ] π± Better mobile/terminal UI
- [ ] π Offline-first improvements
- [ ] π¨ Customizable themes
- [ ] π Usage analytics (optional)
- [ ] π Multi-language support
## π₯ Contributors
Thanks to all contributors who help make this project better!
Want to see your name here? Check out our [Contributing Guidelines](CONTRIBUTING.md)!
## π Acknowledgments
- **Anthropic** for Claude Code and excellent documentation
- **Community contributors** who help improve this tool
- **Claude Code users** who provide feedback and feature requests
- **Open source community** for inspiration and best practices
## π Support
- π **Documentation**: Check the sections above
- π¬ **Discussions**: [GitHub Discussions](https://github.com/mnestorov/cc-docs-mirror/discussions)
- π **Bug Reports**: [GitHub Issues](https://github.com/mnestorov/cc-docs-mirror/issues)
- π§ **Contact**: Open an issue for questions
---
**Made with β€οΈ for the community**
[Report Bug](https://github.com/mnestorov/cc-docs-mirror/issues) Β· [Request Feature](https://github.com/mnestorov/cc-docs-mirror/discussions) Β· [Contributing](CONTRIBUTING.md)