Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By hivellm
Standardize AI-generated projects with Ralph autonomous loop, persistent memory, and quality gates. Enforce Git workflow standards, code quality gates via pre-commit/pre-push hooks, and spec-driven task management with OpenSpec format. Manage skills and tasks through CLI commands and an MCP server for Cursor or Claude Code integration.
npx claudepluginhub hivellm/rulebook --plugin rulebookGit workflow standards including branching strategy, commit conventions, and PR guidelines. Use when creating branches, writing commit messages, preparing pull requests, or following git best practices.
MCP server overview and integration guide. Use this for setup, configuration, and discovering available MCP tools for task and skill management.
Automated quality checks and enforcement for code commits. Use when validating code quality, running pre-commit checks, ensuring test coverage, or enforcing coding standards before commits and pushes.
Disable a skill in the project configuration. Removes its rules from the next AGENTS.md generation. Use to remove unwanted capabilities.
Enable a skill in the project configuration. Checks for conflicts with existing skills. Use to add new capabilities to the project.
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Harness for Claude Code — skills, /harness:* slash commands, persona subagents, lifecycle hooks, and MCP tools without per-repo `harness setup`. Sibling plugins exist for Cursor, Gemini CLI, and Codex.
Language-agnostic development process harness implementing the Stateless Agent Methodology (SAM) 7-stage pipeline with ARL human touchpoint model and Voltron-style language plugin composition. Provides orchestration, workflows, planning, verification, and testing methodology that any language plugin can compose with.
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use
20 SEO/GEO skills and 5 commands on one shared contract for keyword research, content creation, technical audits, schema markup, monitoring, quality gates, entity truth, and campaign memory.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.
Tool-agnostic AI development framework. Standardize projects across Claude Code, Cursor, Gemini, Codex, Windsurf, Copilot, and OpenCode with automated templates, quality gates, persistent memory, and language detection for 28 languages and 13 MCP modules.
# Initialize — auto-detects languages, tools, and complexity
npx @hivehub/rulebook@latest init
# Update existing project to latest rules
npx @hivehub/rulebook@latest update
# Check project health
npx @hivehub/rulebook@latest doctor
# Apply the recommended Claude Code setup (MCP, agents, workflows, settings)
npx @hivehub/rulebook@latest claude
That's it. Rulebook detects your stack, generates rules for every AI tool in your project, sets up quality gates, and configures MCP integration — all in one command.
Then, inside Claude Code, spec a feature and let the backlog implement itself:
/spec rate-limit the public REST API # asks questions, creates rulebook tasks
/rulebook-driver # implements every task, opus review gate
See Usage Examples for the full set of end-to-end flows.
Install globally with
npm install -g @hivehub/rulebookto userulebookdirectly.
AI coding assistants produce inconsistent, error-prone code without clear guidelines. Rulebook gives every AI tool in your project the same set of rules — automatically.
One init, every tool configured:
| What | How |
|---|---|
| Rules for every AI tool | AGENTS.md + CLAUDE.md + .cursor/rules/ + Gemini/Copilot/Windsurf configs — all generated from a single source of truth |
| Quality gates | Pre-commit hooks (lint, type-check, format) + pre-push hooks (build, tests) — language-aware, cross-platform |
| MCP tools | Task management, persistent memory, skills, decisions, knowledge, learnings, workspace, terse compression — all via Model Context Protocol |
| Structural enforcement | PreToolUse hooks block forbidden patterns (deferred tasks, stubs/TODOs, manual task files) before edits reach disk |
| Session continuity | Persistent memory across sessions, automatic handoff at context limits, STATE.md live status |
| 28 languages | Auto-detected with confidence scores, language-specific templates and CI/CD workflows |
Rulebook generates a modular @import chain instead of one massive file:
CLAUDE.md (thin, ~100 lines)
@imports AGENTS.md — team-shared rules
@imports AGENTS.override.md — your project overrides (survives updates)
@imports .rulebook/STATE.md — live task/health status
@imports .rulebook/PLANS.md — session scratchpad
Path-scoped rules in .claude/rules/ load only when the AI touches matching files (e.g., TypeScript rules load only for .ts files). 5 always-on rules enforce core behaviors: diagnostic-first, fail-twice-escalate, no-deferred, no-shortcuts, sequential-editing.
Context that survives across AI sessions. Decisions, bugs, patterns, and preferences are stored locally and searchable.
| Component | Technology |
|---|---|
| Storage | Plain markdown files with YAML frontmatter (one file per memory) |
| Layout | .rulebook/memory/{memories,sessions,codegraph}/<YYYY>/<MM>/... |
| Search | BM25 over file content + frontmatter tag boost (lazy inverted-index sidecar above 1K entries) |
| Privacy | Auto-redact <private> tags, local-only storage |
| Migration | One-shot legacy SQLite → markdown via rulebook memory migrate-from-db |
rulebook memory search "authentication approach" # BM25 search
rulebook memory save "Chose JWT over sessions" # Save context
rulebook memory stats # File count + size