A Claude Code slash command for initializing new projects with best practices.
# Clone to your preferred location
git clone git@github.com:claude-commands/command-init-project.git <clone-path>/command-init-project
# Symlink (use full path to cloned repo)
ln -s <clone-path>/command-init-project/init-project.md ~/.claude/commands/init-project.md/init-project my-app # Interactive project setup
/init-project my-api --type=node # Node.js project
/init-project my-service --type=go # Go project
/init-project my-cli --type=rust # Rust project
/init-project my-app --template=react # Use specific template
- Gathers project requirements interactively
- Creates directory structure
- Initializes package manager and dependencies
- Sets up linting, formatting, and testing
- Configures git and CI/CD
- Generates documentation scaffolding
| Language | Templates |
|---|---|
| Node.js | API, CLI, React, Next.js |
| Go | API, CLI |
| Python | API, CLI |
| Rust | CLI |
Project Initialized: my-app
Type: Node.js (TypeScript API)
Location: /path/to/my-app
Created:
- Project structure (src/, tests/, docs/)
- Package configuration
- Linting (ESLint, Prettier)
- Testing (Vitest)
- CI/CD workflow
Next Steps:
1. cd my-app
2. npm run dev
- Language-specific best practices
- Linting and formatting configuration
- Testing framework setup
- GitHub Actions CI workflow
- README template
- .gitignore
- Package managers (npm, go, cargo, etc.)
- Claude Code with Opus 4.5 model access
cd <clone-path>/command-init-project && git pull