ββββββββββ ββββββ βββ ββββββββββ ββββββββ
βββββββββββ βββββββββββ βββββββββββββββββββ
βββ βββ βββββββββββ ββββββ βββββββββ
βββ βββ βββββββββββ ββββββ βββββββββ
βββββββββββββββββββ ββββββββββββββββββββββββββββ
ββββββββββββββββββ βββ βββββββ βββββββ ββββββββ
βββββββ βββββββ βββββββ ββββββββ
βββββββββββββββββββββββββββββββββ
βββ βββ ββββββ βββββββββ
βββ βββ ββββββ βββββββββ
βββββββββββββββββββββββββββββββββ
βββββββ βββββββ βββββββ ββββββββ
βββββββββββββββββββββ βββββββββββ βββ ββββββ βββββββββββββββββββββββββ
ββββββββββββββββββββββ ββββββββββββββββ βββββββββββββββββββββββββββββββββ
βββ ββββββ ββββββββββββββββββββββ ββββββββ βββ ββββββ ββββββββ
βββ ββββββ ββββββββββββββββββ βββ ββββββββ βββ ββββββ ββββββββ
βββ βββββββββββ βββ ββββββ βββββββββββ βββ βββ ββββββββββββββββ
βββ βββββββββββ ββββββ βββββββββββ βββ βββ ββββββββββββββββ
π Setup Claude Code for any project language πAn open-source CLI tool that provides framework-specific commands, automation hooks, and MCP server integration for JavaScript/TypeScript, Python, Go, Rust, and more. Built by the community, for the community.
# Navigate to your project
cd your-project-directory
# Run the installer (no installation required!)
npx claude-code-templates@latest
# Start coding with Claude
claudeThe installer will auto-detect your project type and guide you through selecting commands, hooks, and MCP servers.
| Language | Frameworks | Status | Commands | Hooks | MCP |
|---|---|---|---|---|---|
| JavaScript/TypeScript | React, Vue, Angular, Node.js | β Ready | 7+ | 9+ | 4+ |
| Python | Django, Flask, FastAPI | β Ready | 5+ | 8+ | 4+ |
| Common | Universal | β Ready | 2+ | 1+ | 4+ |
| Go | Gin, Echo, Fiber | π§ Coming Soon | - | - | - |
| Rust | Axum, Warp, Actix | π§ Coming Soon | - | - | - |
Framework-specific commands for testing, linting, building, debugging, and deployment.
Execute at key moments during Claude Code workflow:
- PreToolUse: Security checks, logging, statement detection
- PostToolUse: Auto-formatting, type checking, testing
- Stop: Final linting, bundle analysis
- Notification: Activity logging and monitoring
Extend Claude Code with specialized capabilities:
- IDE Integration: VS Code diagnostics & Jupyter execution
- Web Search: Real-time information retrieval
- Database Tools: PostgreSQL, MySQL connections
- Development Tools: Docker, GitHub, filesystem operations
- Review existing command performance
- Get optimization recommendations
- Analyze token usage and efficiency
- Project-specific improvement suggestions
# View detailed command statistics
npx claude-code-templates --command-statsWhat you get:
- Command name, file size, and token count
- Lines, words, and last modified date
- AI-powered optimization recommendations
- Project-specific improvement suggestions
cd my-react-app
npx claude-code-templates
# Auto-detects React and suggests optimal configuration# React + TypeScript project
npx claude-code-templates --language javascript-typescript --framework react --yes
# Python + Django project
npx claude-code-templates --language python --framework django --yes
# Go + Gin API project
npx claude-code-templates --language go --framework gin --yes
# Rust + Axum project
npx claude-code-templates --language rust --framework axum --yes# Preview installation without making changes
npx claude-code-templates --dry-run
# Skip all prompts and use defaults
npx claude-code-templates --yes
# Install to custom directory
npx claude-code-templates --directory /path/to/project
# Analyze existing commands
npx claude-code-templates --command-statsAll these commands work exactly the same way:
npx claude-code-templates # β
Recommended (package name)
npx claude-code-template # Singular alias
npx create-claude-config # Create-style command
npx claude-init # Short alias- Automatic Backups: Existing files are backed up before changes
- Confirmation Required: Always asks before making changes (unless
--yesflag) - Dry Run Mode: Preview installation with
--dry-run - Cancel Anytime: Press Ctrl+C or answer 'No' to cancel
- Back Navigation: Modify previous selections during setup
- Hours of configuration research
- Manual CLAUDE.md creation
- Framework-specific command setup
- Automation hook configuration
- MCP server integration
npx claude-code-templates --language javascript-typescript --framework react --yes
# β
Done in 30 seconds!- Community-Driven: Built by developers, for developers
- Always Updated: Latest best practices and framework support
- Extensible: Easy to add new languages and frameworks
- Transparent: All code is open and auditable
- Free Forever: MIT license, no vendor lock-in
claude-code-templates/
βββ cli-tool/ # π¦ NPM Package
β βββ src/ # Core CLI implementation
β β βββ index.js # Main entry point
β β βββ prompts.js # Interactive prompts
β β βββ command-stats.js # Command analysis
β β βββ templates.js # Template configuration
β βββ templates/ # Language and framework templates
β β βββ common/ # Universal templates
β β βββ javascript-typescript/ # JS/TS with React, Vue, Angular, Node.js
β β βββ python/ # Python with Django, Flask, FastAPI
β β βββ go/ # Go with Gin, Echo, Fiber
β β βββ rust/ # Rust with Axum, Warp, Actix
β βββ bin/ # Executable scripts
βββ CONTRIBUTING.md # Contribution guidelines
βββ LICENSE # MIT License
βββ README.md # This file
- Frameworks: React, Vue, Angular, Node.js
- Hooks: Console.log detection, Prettier formatting, TypeScript checking, ESLint
- MCP: TypeScript SDK, GitHub, Puppeteer, Slack, File System
- Commands: Testing (Jest), building (Webpack/Vite), debugging, deployment
- Frameworks: Django, Flask, FastAPI
- Hooks: Print statement detection, Black formatting, MyPy type checking, pytest
- MCP: Python SDK, Docker, Jupyter, PostgreSQL, Opik
- Commands: Testing (pytest), linting (flake8), virtual env management
- Frameworks: Gin, Echo, Fiber
- Hooks: Print statement detection, gofmt formatting, go vet analysis
- MCP: Go SDK, Language Server, MySQL
- Commands: Testing (go test), building, dependency management
- Frameworks: Axum, Warp, Actix
- Hooks: Print macro detection, rustfmt formatting, clippy linting
- MCP: Rust SDK, Documentation, Substrate
- Commands: Testing (cargo test), building (cargo build), clippy analysis
We welcome contributions from the open source community! This project thrives on community input and collaboration.
- π Add new languages - Rust, Go, Java, C#, PHP, etc.
- π― Add frameworks - Svelte, Next.js, Nuxt.js, NestJS, Laravel, Spring Boot
- π§ Improve commands - Better testing, deployment, debugging workflows
- π Write documentation - Clearer guides and examples
- π Fix bugs - Improvements to existing templates
- π‘ Suggest features - New CLI features and options
# Fork and clone the repository
git clone https://github.com/your-username/claude-code-templates.git
cd claude-code-templates
# Set up development environment
cd cli-tool
npm install && npm link
# Test your changes
npm test
npm start -- --dry-run
# Submit a pull request
git checkout -b feature/your-feature
# Make changes, test, commit, pushπ See CONTRIBUTING.md for detailed guidelines
- Node.js 14+ (for the installer)
- Claude Code installed
# Install Claude Code
npm install -g @anthropic-ai/claude-code
# Set up your project (no installation required!)
cd your-project
npx claude-code-templates
# Start coding with Claude
claude| Option | Description | Example |
|---|---|---|
-l, --language |
Specify programming language | --language python |
-f, --framework |
Specify framework | --framework react |
-d, --directory |
Target directory | --directory /path/to/project |
-y, --yes |
Skip prompts and use defaults | --yes |
--dry-run |
Show what would be installed | --dry-run |
--command-stats |
Analyze existing commands | --command-stats |
--help |
Show help information | --help |
CLAUDE.md- Main configuration file with language-specific best practices.claude/settings.json- Automation hooks and Claude Code settings.claude/commands/- Custom commands for common development tasks.mcp.json- Model Context Protocol server configurations
Each language template includes optimized commands for:
- Testing: Jest, pytest, go test, cargo test
- Linting: ESLint, flake8, go vet, clippy
- Formatting: Prettier, Black, gofmt, rustfmt
- Building: Webpack, setuptools, go build, cargo build
- Debugging: Chrome DevTools, pdb, delve, gdb
- Framework Operations: Component generation, migrations, scaffolding
- PreToolUse: Code quality checks, security scans, statement detection
- PostToolUse: Auto-formatting, type checking, test execution
- Stop: Final linting, bundle analysis, cleanup
- Notification: Activity logging, performance monitoring
- IDE Integration: VS Code diagnostics, Jupyter kernel execution
- Web Search: Real-time web search for documentation and solutions
- Database Tools: PostgreSQL, MySQL, SQLite connections
- Development Tools: Docker containers, GitHub API, filesystem operations
This project is licensed under the MIT License - see the LICENSE file for details.
This project is built by the community, for the community. We believe in:
- π Open Collaboration: Everyone can contribute and improve the project
- π Knowledge Sharing: Share best practices and learn from others
- π€ Inclusive Environment: Welcome developers of all skill levels
- π Continuous Improvement: Always evolving with community feedback
- π Free Forever: MIT license ensures it stays open and free
- Contributors: All contributors are recognized in our GitHub contributors page
- Community: Join discussions and help others in GitHub Discussions
- Star History: Show your support by starring the repository
- π Issues: Report bugs or request features
- π¬ Discussions: Join community discussions
- π Documentation: Claude Code Official Docs
- π€ Contributing: Read our contribution guidelines
β Found this useful? Give us a star on GitHub to support the project!
π€ Want to contribute? Check out our contribution guidelines - all skill levels welcome!