Thanks to visit codestin.com
Credit goes to github.com

Skip to content

b08240/claude-code-templates

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

54 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

npm version npm downloads License: MIT Open Source PRs Welcome

 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  
β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  
β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
 β•šβ•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•

 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  
β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  
β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
 β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•
   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•”β–ˆβ–ˆβ–ˆβ–ˆβ•”β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β• β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•”β•β•β•  β•šβ•β•β•β•β–ˆβ–ˆβ•‘
   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β•šβ•β• β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘
   β•šβ•β•   β•šβ•β•β•β•β•β•β•β•šβ•β•     β•šβ•β•β•šβ•β•     β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•   β•šβ•β•   β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•

                    πŸš€ 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.

πŸ“‹ Quick Start

# Navigate to your project
cd your-project-directory

# Run the installer (no installation required!)
npx claude-code-templates@latest

# Start coding with Claude
claude

The installer will auto-detect your project type and guide you through selecting commands, hooks, and MCP servers.

🎯 Supported Languages & Frameworks

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 - - -

πŸ”§ Core Features

πŸ“‹ Smart Commands

Framework-specific commands for testing, linting, building, debugging, and deployment.

πŸ€– 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

πŸ“Š Command Analysis

  • 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-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

πŸ’‘ 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

# 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

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 --command-stats

Alternative Commands

All 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

πŸ›‘οΈ 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!

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

πŸ—οΈ Project Architecture

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

πŸ”§ Language-Specific Features

JavaScript/TypeScript

  • 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

Python

  • 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

Go (comming soon)

  • 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

Rust (comming soon)

  • 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

🀝 Contributing

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

Ways to Contribute

  • πŸ†• 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

Quick Start for Contributors

# 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

πŸš€ Getting Started

Prerequisites

  • Node.js 14+ (for the installer)
  • Claude Code installed

Installation

# 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

CLI Options

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

πŸ› οΈ 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

Language-Specific Commands

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

Automation Hooks

  • 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

MCP Servers

  • 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

πŸ“„ 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


⭐ 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!

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

  • JavaScript 83.0%
  • Shell 13.0%
  • Makefile 4.0%