ai-rulez 2.4.1 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +73 -461
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,539 +6,151 @@
6
6
 
7
7
  **AI-powered development governance. One config to rule them all.**
8
8
 
9
- ## The Complete AI Development Platform
10
-
11
- AI-Rulez is the **definitive platform for AI-powered development governance**. Beyond just generating configuration files, it provides real-time rule enforcement, automated code quality assurance, and intelligent governance across your entire development workflow.
12
-
13
- ### 🚀 Two Powerful Capabilities
14
-
15
- **1. Universal Configuration Management** - Write once, deploy everywhere
16
- **2. AI-Powered Rule Enforcement** - Real-time governance with automated fixes
9
+ [![Go Version](https://img.shields.io/badge/Go-1.24%2B-00ADD8)](https://go.dev)
10
+ [![NPM Version](https://img.shields.io/npm/v/ai-rulez)](https://www.npmjs.com/package/ai-rulez)
11
+ [![PyPI Version](https://img.shields.io/pypi/v/ai-rulez)](https://pypi.org/project/ai-rulez/)
12
+ [![Homebrew](https://img.shields.io/badge/Homebrew-tap-orange)](https://github.com/Goldziher/homebrew-tap)
17
13
 
18
- ## Why AI-Rulez?
14
+ **Documentation:** [goldziher.github.io/ai-rulez](https://goldziher.github.io/ai-rulez/)
19
15
 
20
- Modern development teams need more than just configuration management:
16
+ ---
21
17
 
22
- ### ⚠️ **The Problem**
23
- - **Configuration Hell**: Each AI tool needs its own format (`.cursorrules`, `CLAUDE.md`, `.windsurfrules`, etc.)
24
- - **Rule Enforcement Gap**: No way to automatically validate that code follows your standards
25
- - **Team Inconsistency**: Different developers get different AI guidance
26
- - **Manual Quality Control**: Time-consuming code reviews for basic rule violations
27
- - **Reactive Governance**: Finding issues after they're already committed
18
+ ## Why ai-rulez
28
19
 
29
- ### **The Solution**
30
- AI-Rulez provides **proactive development governance** with a single `ai-rulez.yaml` that:
31
- - **Generates configurations** for every AI tool automatically
32
- - **Enforces rules in real-time** using AI agents (Claude, Gemini, etc.)
33
- - **Applies automatic fixes** for code quality issues
34
- - **Integrates with your workflow** (Git hooks, CI/CD, pre-commit)
35
- - **Scales across teams** with consistent standards
20
+ - One YAML file stays in sync with every AI assistant format (`CLAUDE.md`, `.cursorrules`, `.windsurfrules`, MCP configs, and more).
21
+ - AI agents enforce your rules in real time with optional auto-fix and review loops.
22
+ - Git hooks, CI, and MCP integrations keep governance in every stage of your workflow.
23
+ - Works for individuals and teams with presets, remote includes, and monorepo support.
36
24
 
37
25
  <p align="center">
38
- <img src="docs/assets/ai-rulez-python-demo.gif" alt="AI-Rulez Configuration Demo" width="100%">
39
- <br><em>📝 Configuration Management (via npx ai-rulez)</em>
26
+ <img src="docs/assets/ai-rulez-python-demo.gif" alt="AI-Rulez Configuration Demo" width="90%">
40
27
  </p>
41
28
 
42
- <p align="center">
43
- <img src="docs/assets/ai-rulez-enforce-demo.gif" alt="AI-Rulez Enforcement Demo" width="100%">
44
- <br><em>🤖 AI-Powered Rule Enforcement (via uvx ai-rulez@latest)</em>
45
- </p>
29
+ ---
46
30
 
47
- [![Go Version](https://img.shields.io/badge/Go-1.24%2B-00ADD8)](https://go.dev)
48
- [![NPM Version](https://img.shields.io/npm/v/ai-rulez)](https://www.npmjs.com/package/ai-rulez)
49
- [![PyPI Version](https://img.shields.io/pypi/v/ai-rulez)](https://pypi.org/project/ai-rulez/)
50
- [![Homebrew](https://img.shields.io/badge/Homebrew-tap-orange)](https://github.com/Goldziher/homebrew-tap)
31
+ ## What You Get
51
32
 
52
- ### 📖 **[Read the Full Documentation](https://goldziher.github.io/ai-rulez/)**
33
+ - **Universal configuration management** `ai-rulez` analyzes your repo and generates native configuration files for every assistant.
34
+ - **AI-powered enforcement** – Run `ai-rulez enforce` to catch violations, apply fixes, and gate merges with configurable quality thresholds.
35
+ - **Automation built-in** – Smart `.gitignore` updates, Git hook integration (lefthook, pre-commit, husky), and CI ready commands.
36
+ - **MCP everywhere** – Automatically wire MCP servers into Claude CLI, Gemini CLI, Cursor, and other supported tools.
53
37
 
54
38
  ---
55
39
 
56
- ## 🚀 Core Capabilities
40
+ ## Quick Start
57
41
 
58
- ### 1. 📋 Universal Configuration Management
59
-
60
- Write once, deploy everywhere with intelligent AI-powered project analysis:
42
+ ### Configuration Management
61
43
 
62
44
  ```bash
63
- # AI analyzes your codebase and generates tailored config
64
- npx ai-rulez init "My Project" --preset popular
65
- ```
66
-
67
- **Features:**
68
- - **AI Project Analysis**: Automatically detects your tech stack, patterns, and conventions
69
- - **Universal Output Generation**: One YAML → all AI tool formats (`CLAUDE.md`, `.cursorrules`, `.windsurfrules`, etc.)
70
- - **Smart Gitignore Management**: Automatically excludes generated files from version control
71
- - **MCP Integration**: Auto-configure MCP servers across CLI tools (Claude, Gemini, etc.)
72
- - **Team Collaboration**: Remote includes, local overrides, monorepo support
45
+ # Analyze your project and scaffold configuration
46
+ npx ai-rulez@latest init "My Project" --preset popular
73
47
 
74
- ### 2. 🤖 AI-Powered Rule Enforcement
48
+ # Generate all assistant configuration files
49
+ npx ai-rulez@latest generate
50
+ ```
75
51
 
76
- Real-time governance with automated fixes using multiple AI agents:
52
+ ### Rule Enforcement
77
53
 
78
54
  ```bash
79
- # Check for violations with AI analysis
55
+ # Check for violations (read-only)
80
56
  uvx ai-rulez@latest enforce --agent claude
81
57
 
82
- # Automatically apply fixes
58
+ # Apply fixes or run multi-agent reviews
83
59
  uvx ai-rulez@latest enforce --agent claude --fix
84
-
85
- # Multi-agent review workflow
86
- uvx ai-rulez@latest enforce --agent gemini --review --review-agent claude
60
+ uvx ai-rulez@latest enforce --agent gemini --review --review-iterations 2
87
61
  ```
88
62
 
89
- **Features:**
90
- - **Multi-Agent Support**: Claude, Gemini, AMP, Cursor, Codex, Continue.dev, Junie
91
- - **Automated Fixes**: AI suggests and applies code improvements
92
- - **Review Workflows**: Iterative improvement with quality thresholds
93
- - **Multiple Output Formats**: Table, JSON, CSV, summary reports
94
- - **CI/CD Integration**: Git hooks, pre-commit, workflow automation
95
- - **Quality Scoring**: 0-100% compliance with configurable thresholds
96
-
97
- ## How It Works
63
+ ### Optional: Auto-Configure Git Hooks
98
64
 
99
- AI-Rulez operates as a **comprehensive AI development governance platform**:
65
+ ```bash
66
+ # Detect pre-commit, lefthook, or husky and add ai-rulez validation
67
+ npx ai-rulez@latest init --setup-hooks
68
+ ```
100
69
 
101
- 1. **📝 Configuration Phase**: Your `ai-rulez.yml` serves as the single source of truth
102
- 2. **🏗️ Generation Phase**: Automatically creates native files for every AI tool
103
- 3. **🔍 Enforcement Phase**: AI agents continuously validate code against your rules
104
- 4. **🛠️ Fix Phase**: Automatic corrections and improvements applied in real-time
105
- 5. **📊 Reporting Phase**: Detailed compliance reports and quality metrics
70
+ `--setup-hooks` adds the official hooks for the detected system and keeps existing configuration intact.
106
71
 
107
- Think of it as **CI/CD for code quality** - proactive governance instead of reactive fixes.
72
+ ---
108
73
 
109
- ## Example: `ai-rulez.yml`
74
+ ## Example `ai-rulez.yaml`
110
75
 
111
76
  ```yaml
112
77
  $schema: https://github.com/Goldziher/ai-rulez/schema/ai-rules-v2.schema.json
113
78
 
114
79
  metadata:
115
80
  name: "My SaaS Platform"
116
- version: "2.0.0"
117
81
 
118
- # Use presets for common configurations
119
82
  presets:
120
- - "popular" # Includes Claude, Cursor, Windsurf, Copilot, and Gemini
83
+ - "popular" # Claude, Cursor, Windsurf, Copilot, Gemini
121
84
 
122
85
  rules:
123
86
  - name: "Go Code Standards"
124
87
  priority: high
125
- content: "Follow standard Go project layout (cmd/, internal/, pkg/). Use meaningful package names and export only what is necessary."
88
+ content: "Follow standard Go project layout and export only what is necessary."
126
89
 
127
90
  sections:
128
91
  - name: "Project Structure"
129
92
  priority: critical
130
93
  content: |
131
94
  - `cmd/`: Main application entry point
132
- - `internal/`: Private application code (business logic, data access)
95
+ - `internal/`: Private application code
133
96
  - `pkg/`: Public-facing libraries
134
97
 
135
98
  agents:
136
99
  - name: "go-developer"
137
- description: "Go language expert for core development"
138
- system_prompt: "You are an expert Go developer. Your key responsibilities include writing idiomatic Go, using proper error handling, and creating comprehensive tests."
100
+ description: "Expert Go developer focused on idiomatic code and tests."
139
101
 
140
- # MCP servers for direct AI tool integration
141
102
  mcp_servers:
142
103
  - name: "ai-rulez"
143
104
  command: "npx"
144
105
  args: ["-y", "ai-rulez@latest", "mcp"]
145
- description: "AI-Rulez MCP server for configuration management"
146
- ```
147
-
148
- Run `ai-rulez generate` → get all your configuration files, perfectly synchronized.
149
-
150
- ## ⚡ Quick Start
151
-
152
- ### 📋 Configuration Management
153
- ```bash
154
- # 1. AI-powered project analysis and setup
155
- npx ai-rulez@latest init "My Project" --preset popular
156
-
157
- # 2. Generate all AI tool configuration files
158
- npx ai-rulez@latest generate
159
-
160
- # 3. Your AI tools now have comprehensive, project-specific context!
161
- ```
162
-
163
- ### 🤖 AI-Powered Rule Enforcement
164
- ```bash
165
- # 1. Check for rule violations
166
- uvx ai-rulez@latest enforce --agent claude --format table
167
-
168
- # 2. Get detailed analysis and suggestions
169
- uvx ai-rulez@latest enforce --agent claude --format json
170
-
171
- # 3. Apply automatic fixes
172
- uvx ai-rulez@latest enforce --agent claude --fix
173
-
174
- # 4. Set up review workflow
175
- uvx ai-rulez@latest enforce --agent claude --review --review-iterations 2
106
+ description: "Configuration management server"
176
107
  ```
177
108
 
178
- **That's it!** You now have both intelligent configuration management AND real-time rule enforcement powered by AI.
179
-
180
109
  ---
181
110
 
182
- ## 🗂️ .gitignore Management
183
-
184
- AI-Rulez manages your `.gitignore` to keep generated files out of version control.
185
-
186
- **Automatic updates:**
187
- ```bash
188
- # During init (enabled by default)
189
- ai-rulez init --preset claude
190
-
191
- # During generate (optional)
192
- ai-rulez generate --update-gitignore
111
+ ## Installation Options
193
112
 
194
- # Disable if needed
195
- ai-rulez init --preset popular --no-gitignore
196
- ```
197
-
198
- **What gets ignored:**
199
- - Generated markdown files (`CLAUDE.md`, `GEMINI.md`, `AGENTS.md`)
200
- - AI tool directories (`.claude/`, `.cursor/`, `.windsurf/`, `.clinerules/`, etc.)
201
- - Config files (`.mcp.json`, `.gemini/settings.json`)
202
-
203
- All entries are added under `# AI Rules generated files` without duplicates.
204
-
205
- **Best practice:** Commit `ai-rulez.yaml` and `.gitignore`, but not the generated AI configuration files.
113
+ - **No install required**
114
+ - `npx ai-rulez@latest ...` for Node/JS environments
115
+ - `uvx ai-rulez@latest ...` for Python users
116
+ - `go run github.com/Goldziher/ai-rulez/cmd@latest ...` for Go projects
117
+ - **Global installs**
118
+ - `brew install goldziher/tap/ai-rulez`
119
+ - `npm install -g ai-rulez`
120
+ - `pip install ai-rulez`
121
+ - `go install github.com/Goldziher/ai-rulez/cmd@latest`
206
122
 
207
123
  ---
208
124
 
209
- ## 🤖 AI-Powered Rule Enforcement
210
-
211
- The killer feature that sets AI-Rulez apart: **real-time rule enforcement using AI agents**. No more manual code reviews for basic violations—let AI catch and fix issues automatically.
212
-
213
- ### ✨ Key Benefits
214
-
215
- - **Proactive Quality Control**: Catch issues before they reach production
216
- - **Multi-Agent Support**: Claude, Gemini, AMP, Cursor, Codex—use the best AI for each task
217
- - **Automatic Fixes**: AI doesn't just find problems, it solves them
218
- - **Workflow Integration**: Git hooks, CI/CD, pre-commit—enforcement everywhere
219
- - **Team Consistency**: Same standards for everyone, from junior to senior devs
220
-
221
- ### 🎯 Real-World Use Cases
222
-
223
- ```bash
224
- # Prevent console.log in production builds
225
- ai-rulez enforce --agent claude --only-rules "no-console-output" --fix
226
-
227
- # Ensure all functions have proper error handling
228
- ai-rulez enforce --agent gemini --level strict --format json
229
-
230
- # Multi-agent review for critical code changes
231
- ai-rulez enforce --agent claude --review --review-agent gemini --review-threshold 95
232
-
233
- # Automated fixes in CI/CD pipeline
234
- ai-rulez enforce --agent claude --fix --format csv --output violations.csv
235
- ```
236
-
237
- ### 📊 Output Formats & Integration
238
-
239
- | Format | Use Case | Command |
240
- |--------|----------|---------|
241
- | **Table** | Human-readable terminal output | `--format table` |
242
- | **JSON** | API integration, detailed analysis | `--format json --pretty` |
243
- | **CSV** | Data analysis, reporting | `--format csv --output report.csv` |
244
- | **Summary** | Quick overview with scores | `--format summary` |
245
-
246
- ### 🔄 Advanced Workflows
247
-
248
- **Review Pipeline**: Multi-agent validation with quality gates
249
- ```bash
250
- ai-rulez enforce --agent claude --review --review-iterations 3 --review-threshold 85
251
- ```
252
-
253
- **Fix & Verify**: Apply fixes and validate improvements
254
- ```bash
255
- ai-rulez enforce --agent gemini --fix --review --require-improvement
256
- ```
257
-
258
- **Team Standards**: Consistent enforcement across the entire codebase
259
- ```bash
260
- ai-rulez enforce --include-files "src/**/*.{js,ts,py}" --level strict --agent claude
261
- ```
262
-
263
- **Prefer manual setup?**
264
- ```bash
265
- # Basic initialization without AI assistance
266
- ai-rulez init "My Project" --preset popular --no-agent
267
-
268
- # Add your project-specific context
269
- ai-rulez add rule "Tech Stack" --priority critical --content "This project uses Go and PostgreSQL."
270
-
271
- # Generate files
272
- ai-rulez generate
273
- ```
274
-
275
- ## MCP Server Integration
276
-
277
- > **New in v2.3.2**: Improved Codex/Gemini agent compatibility, optional agent test gating, and tighter MCP CLI integrations for smoother non-interactive workflows.
278
-
279
- `ai-rulez` provides seamless **Model Context Protocol (MCP)** integration, automatically configuring both file-based and CLI-based AI tools with your MCP servers.
280
-
281
- ### Automatic CLI Configuration
282
-
283
- When you run `ai-rulez generate`, MCP servers are **automatically configured** for available CLI tools:
125
+ ## Git Hooks & Automation
284
126
 
285
- ```bash
286
- ai-rulez generate
287
- # ✅ Generated 3 file(s) successfully
288
- # ✅ Configured claude MCP server: ai-rulez
289
- # ✅ Configured gemini MCP server: database-tools
290
- ```
291
-
292
- **Supported CLI tools:**
293
- - **Claude CLI**: `claude mcp add` with full env/transport support
294
- - **Gemini CLI**: `gemini mcp add` with automatic configuration
295
-
296
- ### Hybrid Configuration
297
-
298
- `ai-rulez` supports both CLI and file-based configurations simultaneously:
299
-
300
- ```yaml
301
- mcp_servers:
302
- - name: "database-tools"
303
- command: "uvx"
304
- args: ["mcp-server-postgres"]
305
- env:
306
- DATABASE_URL: "postgresql://localhost/mydb"
307
- targets:
308
- - "@claude-cli" # Configure Claude CLI
309
- - "@gemini-cli" # Configure Gemini CLI
310
- - ".cursor/mcp.json" # Generate Cursor config file
311
- ```
127
+ - **Official pre-commit hooks**
312
128
 
313
- This single configuration:
314
- - ✅ Executes `claude mcp add` commands
315
- - Executes `gemini mcp add` commands
316
- - ✅ Generates `.cursor/mcp.json` file
129
+ ```yaml
130
+ repos:
131
+ - repo: https://github.com/Goldziher/ai-rulez
132
+ rev: v2.4.3
133
+ hooks:
134
+ - id: ai-rulez-validate
135
+ - id: ai-rulez-generate
136
+ ```
317
137
 
318
- ### Control Options
319
-
320
- **Default behavior** (recommended):
321
- ```bash
322
- ai-rulez generate
323
- # Configures all available CLI tools + generates files
324
- ```
138
+ - **CLI hook setup** – Run `ai-rulez init --setup-hooks` to auto-configure pre-commit, lefthook, or husky if they are present in your repo.
139
+ - **No-Go requirement** – Hooks use `scripts/pre-commit/run-ai-rulez.sh`, which fetches the correct prebuilt binary on-demand (override with `AI_RULEZ_BINARY` if you already have one installed).
140
+ - **CI/CD examples** – See the [Enforcement guide](https://goldziher.github.io/ai-rulez/enforcement/) for GitHub Actions, pipeline tips, and advanced workflows.
325
141
 
326
- **Disable CLI configuration** when needed:
327
- ```bash
328
- ai-rulez generate --no-configure-cli-mcp
329
- # Only generates files, skips CLI tool configuration
330
- ```
331
-
332
- **Target specific tools:**
333
- ```yaml
334
- mcp_servers:
335
- - name: "github-integration"
336
- command: "npx"
337
- args: ["@modelcontextprotocol/server-github"]
338
- targets: ["@claude-cli"] # Only configure Claude CLI
339
- ```
340
-
341
- ### Built-in MCP Server
342
-
343
- `ai-rulez` includes its own MCP server for configuration management:
344
-
345
- ```bash
346
- # Start the ai-rulez MCP server
347
- ai-rulez mcp
348
-
349
- # Or configure it automatically via your ai-rulez.yaml
350
- mcp_servers:
351
- - name: "ai-rulez"
352
- command: "npx"
353
- args: ["-y", "ai-rulez@latest", "mcp"]
354
- description: "Configuration management server"
355
- ```
356
-
357
- ## AI-Powered Rule Enforcement
358
-
359
- AI-Rulez provides **real-time rule enforcement** using AI agents to automatically detect violations and apply fixes across your codebase.
360
-
361
- <p align="center">
362
- <img src="docs/assets/ai-rulez-enforce-demo.gif" alt="AI-Rulez Enforcement Demo" width="100%">
363
- </p>
364
-
365
- ### Basic Enforcement
366
-
367
- ```bash
368
- # Check for violations (read-only by default)
369
- ai-rulez enforce
370
-
371
- # Automatically apply fixes
372
- ai-rulez enforce --fix
373
-
374
- # Use specific AI agent
375
- ai-rulez enforce --agent gemini --fix
376
- ```
377
-
378
- ### Advanced Enforcement Options
379
-
380
- ```bash
381
- # Enforce with specific level
382
- ai-rulez enforce --level strict --agent claude
383
-
384
- # Review workflow with iterative improvement
385
- ai-rulez enforce --review --review-iterations 3 --review-threshold 85
386
-
387
- # Multi-agent review (different agents for enforcement vs review)
388
- ai-rulez enforce --agent gemini --review --review-agent claude
389
-
390
- # Target specific files and rules
391
- ai-rulez enforce --include-files "src/**/*.js" --only-rules "no-console-output"
392
-
393
- # Output formats for automation
394
- ai-rulez enforce --format json --output violations.json
395
- ai-rulez enforce --format csv --output report.csv
396
- ```
397
-
398
- ### Supported AI Agents
399
-
400
- AI-Rulez integrates with all major AI coding assistants:
401
-
402
- - **Claude** (`claude`) - Anthropic's AI assistant
403
- - **Gemini** (`gemini`) - Google's AI model
404
- - **Cursor** (`cursor`) - AI-powered code editor
405
- - **AMP** (`amp`) - Sourcegraph's AI assistant
406
- - **Codex** (`codex`) - OpenAI's code model
407
- - **Continue.dev** (`continue-dev`) - Open-source coding assistant
408
- - **Junie** (`junie`) - JetBrains AI assistant
409
-
410
- ### Enforcement Levels
411
-
412
- - **`warn`**: Log violations but don't fail (default)
413
- - **`error`**: Fail on violations but don't auto-fix
414
- - **`fix`**: Automatically apply suggested fixes
415
- - **`strict`**: Fail immediately on any violation
416
-
417
- ### Integration with Git Hooks
418
-
419
- Add enforcement to your Git workflow:
420
-
421
- ```yaml
422
- # .lefthook.yml
423
- pre-commit:
424
- commands:
425
- ai-rulez-enforce:
426
- run: ai-rulez enforce --level error --agent gemini
427
- stage_fixed: true
428
- ```
429
-
430
- ```bash
431
- # Or with pre-commit hooks
432
- # .pre-commit-config.yaml
433
- repos:
434
- - repo: local
435
- hooks:
436
- - id: ai-rulez-enforce
437
- name: AI-Rulez Enforcement
438
- entry: ai-rulez enforce --level error
439
- language: system
440
- pass_filenames: false
441
- ```
442
-
443
- ### Review Workflow
444
-
445
- The review system provides iterative code improvement:
446
-
447
- ```bash
448
- # Enable review with quality scoring
449
- ai-rulez enforce --review --review-threshold 80
450
-
451
- # Multiple review iterations
452
- ai-rulez enforce --review --review-iterations 5
453
-
454
- # Auto-approve after reaching threshold
455
- ai-rulez enforce --review --review-auto-approve
456
-
457
- # Require improvement between iterations
458
- ai-rulez enforce --review --require-improvement
459
- ```
460
-
461
- The AI reviewer analyzes:
462
- - ✅ Code quality and adherence to rules
463
- - ✅ Suggested fixes and their appropriateness
464
- - ✅ Overall improvement between iterations
465
- - ✅ Compliance with project standards
466
-
467
- ## 📦 Installation
468
-
469
- Choose your installation method based on your primary use case:
470
-
471
- ### 🚀 Quick Start (No Installation)
472
-
473
- **For Configuration Management** (project setup, file generation):
474
- ```bash
475
- # Node.js - Best for web/JS projects
476
- npx ai-rulez@latest init "My Project" --preset popular
477
- npx ai-rulez@latest generate
478
- ```
479
-
480
- **For Rule Enforcement** (AI-powered validation):
481
- ```bash
482
- # Python - Latest features, fastest updates
483
- uvx ai-rulez@latest enforce --agent claude --fix
484
- uvx ai-rulez@latest enforce --agent gemini --review
485
- ```
486
-
487
- **For Go Projects**:
488
- ```bash
489
- go run github.com/Goldziher/ai-rulez/cmd@latest init
490
- ```
491
-
492
- ### 🔧 Global Installation
493
-
494
- For teams and frequent usage:
495
-
496
- **Homebrew (Recommended for macOS/Linux)**
497
- ```bash
498
- brew install goldziher/tap/ai-rulez
499
- ai-rulez init "My Project"
500
- ai-rulez enforce --agent claude
501
- ```
502
-
503
- **npm (Best for Node.js teams)**
504
- ```bash
505
- npm install -g ai-rulez
506
- ```
507
-
508
- **pip (Best for Python teams)**
509
- ```bash
510
- pip install ai-rulez
511
- ```
512
-
513
- **Go (For Go developers)**
514
- ```bash
515
- go install github.com/Goldziher/ai-rulez/cmd@latest
516
- ```
517
-
518
- ## Pre-commit Hooks
519
-
520
- You can use `ai-rulez` with `pre-commit` to automatically validate and generate your AI configuration files.
142
+ ---
521
143
 
522
- Add the following to your `.pre-commit-config.yaml`:
144
+ ## More to Explore
523
145
 
524
- ```yaml
525
- repos:
526
- - repo: https://github.com/Goldziher/ai-rulez
527
- rev: v2.3.2
528
- hooks:
529
- - id: ai-rulez-validate
530
- - id: ai-rulez-generate
531
- ```
146
+ - [Quick Start](https://goldziher.github.io/ai-rulez/quick-start/) – Guided setup in minutes.
147
+ - [CLI Reference](https://goldziher.github.io/ai-rulez/cli/) – All commands and flags.
148
+ - [Configuration Guide](https://goldziher.github.io/ai-rulez/configuration/) – Advanced YAML features, includes, and presets.
149
+ - [Enforcement Guide](https://goldziher.github.io/ai-rulez/enforcement/) – Multi-agent reviews, automation, and reporting.
150
+ - [Migration Guide](https://goldziher.github.io/ai-rulez/migration-guide/) – Upgrading from v1.x.
532
151
 
533
152
  ---
534
153
 
535
- ## Documentation
536
-
537
- - **[Quick Start Guide](https://goldziher.github.io/ai-rulez/quick-start/)**
538
- - **[Full CLI Reference](https://goldziher.github.io/ai-rulez/cli/)**
539
- - **[Configuration Guide](https://goldziher.github.io/ai-rulez/configuration/)**
540
- - **[Migration Guide](https://goldziher.github.io/ai-rulez/migration-guide/)** - Upgrading from v1.x to v2.0
541
-
542
154
  ## Contributing
543
155
 
544
- Contributions are welcome! Please see the [Contributing Guide](CONTRIBUTING.md) to get started.
156
+ We welcome contributions! Read the [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, coding standards, and release process details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-rulez",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "⚡ One config to rule them all. Centralized AI assistant configuration management - generate rules for Claude, Cursor, Copilot, Windsurf and more from a single YAML file.",
5
5
  "keywords": [
6
6
  "ai",