Package Exports
- @hivellm/rulebook
- @hivellm/rulebook/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hivellm/rulebook) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@hivellm/rulebook
Standardize AI-generated projects with automated templates, quality gates, and framework detection for 28 languages.
Quick Start
# New project (interactive)
npx @hivellm/rulebook init
# Minimal setup (essentials only)
npx @hivellm/rulebook init --minimal
# Update existing project
npx @hivellm/rulebook updateKey Features
- 🔍 Auto-Detection: Detects languages, frameworks (NestJS, React, Spring, etc.), and MCP modules
- 🪝 Git Hook Automation: Optional pre-commit/pre-push hooks with language-aware quality checks
- 🎯 Minimal Mode: Quick setup with just README, LICENSE, tests/, and basic CI
- 📝 86+ Templates: Languages, frameworks, IDEs, workflows pre-configured
- 🤖 AI-Optimized: Works with 23 AI assistants (Cursor, Claude, Gemini, etc.)
- 📦 Publication Ready: CI/CD pipelines for npm, crates.io, PyPI, Maven Central, and more
What It Does
For New Projects:
- Detects your language(s), frameworks, and MCP modules
- Asks setup questions (or use
--minimalfor defaults) - Generates AGENTS.md with AI assistant rules
- Optionally installs Git hooks (pre-commit/pre-push)
- Creates GitHub Actions workflows
- Scaffolds README, LICENSE, /docs, and /tests
For Existing Projects:
npx @hivellm/rulebook updateMerges latest templates while preserving your customizations (auto-backup included).
Commands
rulebook init # Initialize new project
rulebook init --minimal # Minimal setup (essentials only)
rulebook init --yes # Skip prompts, use defaults
rulebook update # Update to latest templates
rulebook validate # Check project standards
rulebook health # Project health score
rulebook fix # Auto-fix common issues
rulebook generate-docs # Create /docs structureAdvanced (beta):
rulebook watcher # Real-time task monitoring
rulebook agent # Autonomous workflow automation
rulebook tasks # OpenSpec task managementSetup Modes
Full Mode (Default)
Complete setup with all features: OpenSpec tasks, Watcher, MCP modules, comprehensive workflows.
Minimal Mode
rulebook init --minimalEssentials only: README, LICENSE, tests/, basic CI. Perfect for small teams or initial adoption.
Supported Languages & Frameworks
28 Languages: TypeScript, JavaScript, Python, Rust, Go, Java, Kotlin, C, C++, C#, PHP, Ruby, Swift, Elixir, Dart, Scala, Haskell, Julia, R, Lua, Solidity, Zig, Erlang, Ada, SAS, Lisp, Objective-C, SQL
17 Frameworks (auto-detected):
- Backend: NestJS, Spring Boot, Laravel, Django, Flask, Ruby on Rails, Symfony, Zend
- Frontend: Angular, React, Vue, Nuxt, Next.js, jQuery
- Mobile: React Native, Flutter
- Desktop: Electron
MCP Modules (12)
Core: Vectorizer • Synap • OpenSpec • Context7 • GitHub MCP • Playwright
Services: Supabase • Notion • Atlassian • Serena • Figma • Grafana
AI Tools Supported (23)
IDEs: Cursor, Windsurf, VS Code, GitHub Copilot, Tabnine, Replit, JetBrains AI, Zed
CLI Agents: Aider, Continue, Claude, Claude Code, Gemini, Cline, Amazon Q, Auggie, CodeBuddy, Factory, OpenCode, Kilo, Codex, Codeium, Cursor CLI
Documentation
Full documentation available in /docs:
Contributing
Contributions welcome! Node.js 18+ required.
npm install
npm test
npm run buildLicense
MIT © HiveLLM Team
Links: Issues • Discussions