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.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ai-rules-reviewer" with this command: npx skills add jthoms1/builder-skills/jthoms1-builder-skills-ai-rules-reviewer

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 TypeLine LimitCharacter Limit
.builderrules200 lines6,000 chars
.builder/rules/*.mdc200 lines6,000 chars
Combined always-on500 lines
alwaysApply: true filesMax 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

IssueSeverity
File > 200 linesCritical
> 5 alwaysApply filesCritical
Wrong file namingCritical
Missing frontmatterHigh
Missing descriptionHigh
Vague rulesHigh
Verbose rules (paragraphs)Medium
No code examplesLow

See common-issues.md for detailed diagnostics and fixes.

Frontmatter Requirements

Every .builder/rules/*.mdc file needs:

---
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

ResourceWhen to Use
common-issues.mdDetailed diagnostics and fixes
file-organization.mdRestructuring rules across files
assets/review-template.mdOutput format for reviews
assets/examples.mdGood 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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

agents-md-generator

No summary provided by upstream source.

Repository SourceNeeds Review
Security

compliance-evidence-assembler

把审计所需证据整理成目录、清单和缺失项,便于后续评审。;use for compliance, evidence, audit workflows;do not use for 伪造证据, 替代正式审计结论.

Archived SourceRecently Updated
Security

skillguard-hardened

Security guard for OpenClaw skills, developed and maintained by rose北港(小红帽 / 猫猫帽帽). Audits installed or incoming skills with local rules plus Zenmux AI intent review, then recommends pass, warn, block, or quarantine.

Archived SourceRecently Updated
Security

api-contract-auditor

审查 API 文档、示例和字段定义是否一致,输出 breaking change 风险。;use for api, contract, audit workflows;do not use for 直接改线上接口, 替代契约测试平台.

Archived SourceRecently Updated