CLI tool for setting up Git hooks, commit conventions, and GitHub integration in your projects.
RaftStack automates development best practices:
- Git hooks with Husky (pre-commit, commit-msg, pre-push)
- Commit conventions with Commitlint and cz-git
- Code formatting with lint-staged and Prettier
- Branch naming validation
- GitHub workflows for PR checks
- CODEOWNERS for automatic reviewer assignment
- AI code review integration (CodeRabbit, GitHub Copilot)
- Claude Code skills for AI-assisted development
# Using pnpm (recommended)
pnpm dlx @raftlabs/raftstack init
# Using npx
npx @raftlabs/raftstack init
# Or install globally
pnpm add -g @raftlabs/raftstack
raftstack initRun the interactive setup wizard in your project directory:
raftstack initThe wizard will:
- Detect your project type (NX, Turborepo, pnpm workspace, or single package)
- Ask about Asana task linking preferences
- Configure AI code review tools (optional)
- Set up CODEOWNERS for automatic PR reviewers
- Generate all configuration files
After setup:
pnpm install # Install dependencies
pnpm commit # Make commits using interactive wizard| Command | Description |
|---|---|
raftstack init |
Interactive setup wizard |
raftstack setup-protection |
Configure GitHub branch protection via API |
raftstack metrics |
Check repository compliance |
📖 Full User Guide — Complete reference including:
- All features explained in detail
- Claude Code skills and slash commands
- Daily development workflow
- Troubleshooting guide
- Files generated
Use pnpm commit for the interactive wizard, or follow this format:
<type>(<scope>): <subject>
Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert
feature/description fix/description hotfix/description
release/v1.0.0 chore/task-name docs/update
pnpm exec husky
chmod +x .husky/*pnpm commit # Use interactive wizardgit branch -m old-name feature/new-nameSee docs/USER_GUIDE.md for more solutions.
- Node.js >= 18
- Git repository initialized
- Package manager: pnpm, npm, or yarn
See CONTRIBUTING.md for development guidelines.
MIT