Skip to content

Claude Code setup templates for Python, JavaScript, Go, Rust and more

License

Notifications You must be signed in to change notification settings

dev704/claude-code-templates

npm versionnpm downloadsLicense: MITOpen SourcePRs WelcomeGitHub stars

CLI tool for configuring and monitoring Claude Code - Quick setup for any project with framework-specific commands and real-time monitoring dashboard. Open source and runs locally.

📋 Quick Start Analytics Dashboard

# Launch the analytics dashboard to monitor your Claude Code usage npx claude-code-templates@latest --analytics
Screenshot 2025-07-11 at 10 01 19

📋 Quick Start setup Claude Code Templates

# Navigate to your projectcd your-project-directory # Run the installer for setup Claude Code Templates npx claude-code-templates@latest # Start coding with Claude claude
 ██████╗██╗ █████╗ ██╗ ██╗██████╗ ███████╗ ██╔════╝██║ ██╔══██╗██║ ██║██╔══██╗██╔════╝ ██║ ██║ ███████║██║ ██║██║ ██║█████╗ ██║ ██║ ██╔══██║██║ ██║██║ ██║██╔══╝ ╚██████╗███████╗██║ ██║╚██████╔╝██████╔╝███████╗ ╚═════╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝ ██████╗ ██████╗ ██████╗ ███████╗ ██╔════╝██╔═══██╗██╔══██╗██╔════╝ ██║ ██║ ██║██║ ██║█████╗ ██║ ██║ ██║██║ ██║██╔══╝ ╚██████╗╚██████╔╝██████╔╝███████╗ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝ ████████╗███████╗███╗ ███╗██████╗ ██╗ █████╗ ████████╗███████╗███████╗ ╚══██╔══╝██╔════╝████╗ ████║██╔══██╗██║ ██╔══██╗╚══██╔══╝██╔════╝██╔════╝ ██║ █████╗ ██╔████╔██║██████╔╝██║ ███████║ ██║ █████╗ ███████╗ ██║ ██╔══╝ ██║╚██╔╝██║██╔═══╝ ██║ ██╔══██║ ██║ ██╔══╝ ╚════██║ ██║ ███████╗██║ ╚═╝ ██║██║ ███████╗██║ ██║ ██║ ███████╗███████║ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝ 🚀 Setup Claude Code for any project language 🚀

Core Features

📊 Real-time Analytics Dashboard

Monitor and optimize your Claude Code agents with our comprehensive analytics dashboard:

  • Live Session Tracking: See active conversations and their status in real-time
  • Usage Statistics: Total sessions, tokens, and project activity with trends
  • Conversation History: Complete session logs with export capabilities (CSV/JSON)
  • Status Indicators: PM2-style visual indicators for conversation health
  • File Watching: Automatic updates as you work with Claude Code
  • Web Interface: Clean, terminal-style dashboard at http://localhost:3333
  • Performance Monitoring: Track Claude Code agent performance and optimization opportunities
  • Usage Patterns: Identify your most productive coding sessions and workflows

📋 Smart Commands & Configuration

Intelligent project setup with framework-specific commands:

  • Auto-Detection: Automatically detect your project type and suggest optimal configurations
  • Quick Setup: Framework-specific commands for testing, linting, building, debugging, and deployment
  • Optimized Workflows: Pre-configured commands tailored to your development stack
  • Best Practices: Industry-standard configurations and development patterns

What Gets Installed

Core Files

  • 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

Supported Languages & Frameworks

LanguageFrameworksStatusCommandsHooksMCP
JavaScript/TypeScriptReact, Vue, Angular, Node.js✅ Ready7+9+4+
PythonDjango, Flask, FastAPI✅ Ready5+8+4+
CommonUniversal✅ Ready2+1+4+
GoGin, Echo, Fiber🚧 Coming Soon---
RustAxum, Warp, Actix🚧 Coming Soon---

Automation Hooks

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

MCP Integration

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

Analysis Tools

Analyze and optimize your existing Claude Code configuration:

Command Analysis

# View detailed command statistics npx claude-code-templates --commands-stats

What you get:

  • Command name, file size, and token count
  • Lines, words, and last modified date
  • AI-powered optimization recommendations
  • Project-specific improvement suggestions

Hook Analysis

# Analyze automation hooks configuration npx claude-code-templates --hooks-stats

What you get:

  • Hook name, type, and status (enabled/disabled)
  • Hook descriptions and purpose
  • Hook summary by type (PreToolUse, PostToolUse, etc.)
  • AI-powered hook optimization suggestions
  • Missing hook recommendations for your workflow

MCP Server Analysis

# Analyze MCP server configurations npx claude-code-templates --mcps-stats

What you get:

  • Server name, category, and status (enabled/disabled)
  • Command, complexity rating, and descriptions
  • Server summary by category (IDE, Database, Web, etc.)
  • AI-powered MCP configuration optimization
  • Missing server recommendations for your workflow

Usage Examples

Interactive Setup (Recommended)

cd my-react-app npx claude-code-templates # Auto-detects React and suggests optimal configuration

Framework-Specific Quick Setup

# 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 

Advanced Options

# 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 --commands-stats # Analyze automation hooks npx claude-code-templates --hooks-stats # Analyze MCP server configurations  npx claude-code-templates --mcps-stats # Launch real-time analytics dashboard npx claude-code-templates --analytics npx cct --analytics

Alternative Commands

All these commands work exactly the same way:

Long Form Commands

npx claude-code-templates # ✅ Recommended (package name) npx claude-code-template # Singular alias npx create-claude-config # Create-style command npx claude-setup # Setup-style command npx claude-config # Config-style command npx claude-init # Init-style command

Short Form Commands

npx cctemplates # Claude Code Templates npx cct # ⚡ Super short (3 letters)

Safety Features

  • Automatic Backups: Existing files are backed up before changes
  • Confirmation Required: Always asks before making changes (unless --yes flag)
  • 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

What Makes This Special?

Before (Manual Setup)

  • Hours of configuration research
  • Manual CLAUDE.md creation
  • Framework-specific command setup
  • Automation hook configuration
  • MCP server integration

After (With Templates)

npx claude-code-templates --language javascript-typescript --framework react --yes # ✅ Done in 30 seconds!

CLI Options

OptionDescriptionExample
-l, --languageSpecify programming language--language python
-f, --frameworkSpecify framework--framework react
-d, --directoryTarget directory--directory /path/to/project
-y, --yesSkip prompts and use defaults--yes
--dry-runShow what would be installed--dry-run
--command-stats, --commands-statsAnalyze existing commands--command-stats
--hook-stats, --hooks-statsAnalyze automation hooks--hook-stats
--mcp-stats, --mcps-statsAnalyze MCP server configurations--mcp-stats
--analyticsLaunch real-time analytics dashboard--analytics
--helpShow help information--help

Open Source Benefits

  • 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

🤝 Contributing

We welcome contributions from the open source community! This project thrives on community input and collaboration.

Please read our Code of Conduct before contributing to ensure a welcoming environment for everyone.See CONTRIBUTING.md for detailed guidelines

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Open Source Community

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

Recognition

  • 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

📞 Support


⭐ Star History

Star History Chart

⭐ Found this useful? Give us a star on GitHub to support the project!

About

Claude Code setup templates for Python, JavaScript, Go, Rust and more

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript71.3%
  • HTML22.8%
  • Shell4.5%
  • Makefile1.4%