| Crates.io | claudeforge |
| lib.rs | claudeforge |
| version | 0.1.7 |
| created_at | 2025-07-09 01:00:10.744205+00 |
| updated_at | 2025-07-09 22:23:14.225648+00 |
| description | Create new projects optimized for Claude Code |
| homepage | |
| repository | https://github.com/iepathos/claudeforge |
| max_upload_size | |
| id | 1743798 |
| size | 259,504 |
A command-line tool that streamlines the creation of new projects optimized for development with Claude Code. ClaudeForge provides a simple interface to scaffold projects in multiple languages using curated templates that include comprehensive AI development guidelines, proper gitignore configurations, and best practices baked into the project structure.
curl -fsSL https://raw.githubusercontent.com/iepathos/claudeforge/HEAD/install.sh | bash
Or download tarball directly from github releases (replace VERSION and OS/ARCH as needed)
# Example: claudeforge-0.1.6-x86_64-apple-darwin.tar.gz
curl -LO https://github.com/iepathos/claudeforge/releases/latest/download/claudeforge-VERSION-OS-ARCH.tar.gz
tar -xzf claudeforge-*.tar.gz
sudo mv claudeforge /usr/local/bin/
# Install from crates.io
cargo install claudeforge
# Or build from source
git clone https://github.com/iepathos/claudeforge.git
cd claudeforge
cargo build --release
# Create a new Rust project
claudeforge new rust my-awesome-project
# Create a Go project in a specific directory
claudeforge new go my-service --directory ~/projects
# Skip confirmation prompts
claudeforge new rust my-project --yes
new - Create a new projectclaudeforge new <LANGUAGE> <NAME> [OPTIONS]
# Arguments:
# <LANGUAGE> Language template to use (rust, go, python)
# <NAME> Project name
# Options:
# -d, --directory <DIR> Target directory (defaults to current directory)
# -y, --yes Skip interactive prompts
list - List available templatesclaudeforge list
# Shows all available templates with descriptions
update - Update cached templatesclaudeforge update
# Updates all templates to their latest versions
version - Show version informationclaudeforge version
ClaudeForge creates projects with the following structure:
my-project/
├── src/ # Source code
├── tests/ # Test files
├── CLAUDE.md # Claude Code development guidelines
├── .gitignore # Language-specific gitignore
├── README.md # Project documentation
├── Cargo.toml # Rust: Project manifest
├── go.mod # Go: Module definition
└── pyproject.toml # Python: Project configuration
# Clone the repository
git clone https://github.com/iepathos/claudeforge.git
cd claudeforge
# Build the project
cargo build --release
# Run tests
cargo test
# Install locally
cargo install --path .
# Run with just
just fmt # Format code
just lint # Run clippy
just test # Run all tests
just build # Build release binary
# Or use cargo directly
cargo fmt
cargo clippy -- -D warnings
cargo test
cargo build --release
Each generated project includes a comprehensive CLAUDE.md file that provides:
Rust Templates:
Cargo.toml with common dependenciesanyhowclapGo Templates:
Python Templates:
ClaudeForge uses a built-in registry system to manage templates. Currently, templates are defined in the source code with the following built-in templates:
Templates are automatically cached locally and updated from their respective GitHub repositories.
Create ~/.config/claudeforge/config.toml:
[defaults]
author_name = "Your Name"
author_email = "your.email@example.com"
default_directory = "~/projects"
[templates]
cache_directory = "~/.cache/claudeforge"
auto_update = true
update_interval_days = 7
Templates support placeholder replacement:
{{PROJECT_NAME}} - Project name{{AUTHOR_NAME}} - Author name from git config{{AUTHOR_EMAIL}} - Author email from git config{{CURRENT_DATE}} - Current date (YYYY-MM-DD)claudeforge new rust my-web-service
cd my-web-service
# The project is ready for Claude Code development
claude code .
claudeforge new go my-cli-tool --directory ~/work/projects
cd ~/work/projects/my-cli-tool
# Start developing immediately
go run main.go
claudeforge new python my-python-app
cd my-python-app
# Set up virtual environment and start developing
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e .
Template not found:
# Update template cache
claudeforge update
# List available templates
claudeforge list
Git not found:
# Install git on your system
# macOS: brew install git
# Ubuntu: sudo apt install git
# Windows: Download from git-scm.com
Permission denied:
# Ensure you have write permissions to the target directory
chmod +w target-directory
We welcome contributions to ClaudeForge! Please see our contribution guidelines:
CLAUDE.mdjust testTo add support for a new language:
src/template/registry.rsLanguage enum in src/cli.rsGPL-3.0 License - see LICENSE file for details.
Happy coding with ClaudeForge! 🔨🤖
Create better projects faster with AI-optimized templates and get straight to building amazing software.