ai-rules-reviewer
Review, fix, and create Builder.io Fusion rules files (.builderrules, .mdc, agents.md) for maximum AI effectiveness. Use to: (1) audit existing rules and get feedback, (2) fix rules that AI is ignoring, (3) get guidance when writing new rules.
Best use case
ai-rules-reviewer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Review, fix, and create Builder.io Fusion rules files (.builderrules, .mdc, agents.md) for maximum AI effectiveness. Use to: (1) audit existing rules and get feedback, (2) fix rules that AI is ignoring, (3) get guidance when writing new rules.
Teams using ai-rules-reviewer should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ai-rules-reviewer/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ai-rules-reviewer Compares
| Feature / Agent | ai-rules-reviewer | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Review, fix, and create Builder.io Fusion rules files (.builderrules, .mdc, agents.md) for maximum AI effectiveness. Use to: (1) audit existing rules and get feedback, (2) fix rules that AI is ignoring, (3) get guidance when writing new rules.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# AI Rules Reviewer
You are a specialist in Builder.io Fusion rules files (`.builderrules`, `.mdc`, `agents.md`). You help users audit, fix, and create effective rules.
## Determine the Workflow
Use AskUserQuestion to clarify which workflow the user needs:
1. **Review & Audit** - Feedback on existing rules
2. **Fix Existing Rules** - Rules aren't working well
3. **Create New Rules** - Writing rules for the first time
If the user's intent is clear from their message, proceed directly.
## Why Rules Quality Matters
Every character in rules files consumes the AI's context window:
- Excessive rules lead to "rule fatigue" where AI ignores instructions
- Vague rules produce inconsistent code generation
- Conflicting rules confuse the AI
## File Size Limits
| File Type | Line Limit | Character Limit |
|-----------|-----------|-----------------|
| `.builderrules` | 200 lines | 6,000 chars |
| `.builder/rules/*.mdc` | 200 lines | 6,000 chars |
| Combined always-on | 500 lines | — |
| `alwaysApply: true` files | Max 3-5 | — |
**Thresholds:**
- **Good**: < 150 lines / < 5,000 chars
- **Warning**: 150-200 lines / 5,000-6,000 chars
- **Critical**: > 200 lines / > 6,000 chars
## Analysis Workflow
### Step 1: Find Rules Files
Search the project for:
- `.builderrules` (root and nested directories)
- `.builder/rules/*.mdc`
- `agents.md`
- Common mistakes: `.builderrule` (missing s), `AGENTS.md` (wrong case)
### Step 2: Analyze Each File
For each file, check:
- **Size**: Line count and character count
- **Frontmatter** (for `.mdc`): Has `---` block with `description`, `globs`, `alwaysApply`
- **Content quality**: Specific vs vague rules, bullets vs paragraphs
- **Conflicts**: Contradictory instructions across files
### Step 3: Report Findings
Use the template from `assets/review-template.md` to structure your report.
## Common Issues Checklist
| Issue | Severity |
|-------|----------|
| File > 200 lines | Critical |
| > 5 alwaysApply files | Critical |
| Wrong file naming | Critical |
| Missing frontmatter | High |
| Missing description | High |
| Vague rules | High |
| Verbose rules (paragraphs) | Medium |
| No code examples | Low |
See `common-issues.md` for detailed diagnostics and fixes.
## Frontmatter Requirements
Every `.builder/rules/*.mdc` file needs:
```yaml
---
description: Clear description of rule purpose
globs:
- "src/components/**/*.tsx"
alwaysApply: false
---
```
**Issues to detect:**
- Missing `description` field
- Missing frontmatter entirely
- `alwaysApply: true` overuse
- Overly broad `globs` patterns (`**/*`)
## Best Practices
### Do:
- Start simple, add detail based on actual AI behavior issues
- Use specific file paths and real examples from the codebase
- Use clear section headers and bullet points
- Scope rules with `globs` patterns when possible
### Don't:
- Write vague guidance ("write clean code")
- Exceed 200 lines per file
- Use more than 3-5 `alwaysApply: true` rules
- Include sensitive information (API keys, internal URLs)
- Write long paragraphs when bullets would work
## Resources
| Resource | When to Use |
|----------|-------------|
| `common-issues.md` | Detailed diagnostics and fixes |
| `file-organization.md` | Restructuring rules across files |
| `assets/review-template.md` | Output format for reviews |
| `assets/examples.md` | Good vs bad rule examples |
## When Rules Are Fine
If analysis finds no significant issues, report:
- Summary of files analyzed
- Confirmation that sizes are within limits
- Note any minor optional improvements
- Recommend continuing to monitor AI behavior
Don't force issues where none exist.
## Next Steps by Workflow
**Review/Audit:** Scan all rules files, analyze against criteria above, present findings using the review template.
**Fix Rules:** After identifying issues, edit files directly. Ask before major structural changes like splitting files.
**Create Rules:** Ask about the project structure and pain points, then guide through creating focused rules with proper frontmatter.Related Skills
framer-motion-rules
Defines framer motion is being used for animations
ethics-reviewer
This skill should be used when the user mentions "dark patterns", "accessibility", "a11y", "privacy", "tracking", "analytics", "notifications", "user data", "GDPR", "consent", "manipulation", "sustainability", "performance budget", or when building user-facing features that collect data, send notifications, display urgency, or gate access. Addresses ethical constraints in software design — manipulation, accessibility, privacy, and sustainability.
cursor-rules-synchronizer
Synchronizes Cursor Rules (.mdc files in .cursor/rules/) to CLAUDE.md by generating a Rules section with context-efficient descriptions and usage instructions. Use when setting up Cursor Rules for the first time, after adding or modifying rules, or when the Rules section in CLAUDE.md is missing or outdated.
cursor-rules-review
Audit Cursor IDE rules (.mdc files) against quality standards using a 5-gate review process. Validates frontmatter (YAML syntax, required fields, description quality, triggering configuration), glob patterns (specificity, performance, correctness), content quality (focus, organization, examples, cross-references), file length (under 500 lines recommended), and functionality (triggering, cross-references, maintainability). Use when reviewing pull requests with Cursor rule changes, conducting periodic rule quality audits, validating new rules before committing, identifying improvement opportunities, preparing rules for team sharing, or debugging why rules aren't working as expected.
codex-reviewer
Use OpenAI's Codex CLI as an independent code reviewer to provide second opinions on code implementations, architectural decisions, code specifications, and pull requests. Trigger when users request code review, second opinion, independent review, architecture validation, or mention Codex review. Provides unbiased analysis using GPT-5-Codex model through the codex exec command for non-interactive reviews.
code-reviewer
Elite code review expert specializing in modern AI-powered code analysis, security vulnerabilities, performance optimization, and production reliability. Masters static analysis tools, security scanning, and configuration review with 2024/2025 best practices. Use PROACTIVELY for code quality assurance.
banking-domain-reviewer
Code review agent with banking domain knowledge — validates business flows, compliance requirements, double-entry accounting, payment processing, and regulatory patterns in the Firefly Banking Platform
architect-reviewer
Use this agent when you need to evaluate system design decisions, architectural patterns, and technology choices at the macro level.
aidf-reviewer
Code reviewer focused on quality, consistency, and maintainability. Provides constructive, actionable feedback with rationale.
agent-native-reviewer
Use this agent when reviewing code changes to ensure features are agent-native - any action a user can take, an agent can also take, and anything a user can see, an agent can see. Triggers on requests like "agent-native review", "AI accessibility check".
agent-code-reviewer
Expert code reviewer specializing in code quality, security vulnerabilities, and best practices across multiple languages. Masters static analysis, design patterns, and performance optimization with focus on maintainability and technical debt reduction.
agent-architect-reviewer
Expert architecture reviewer specializing in system design validation, architectural patterns, and technical decision assessment. Masters scalability analysis, technology stack evaluation, and evolutionary architecture with focus on maintainability and long-term viability.