Review code for compliance with CLAUDE.md, .kiro rules, and project conventions
Reviews code against project rules in CLAUDE.md and .kiro files, checking for violations of naming conventions, architectural constraints, typing standards, and coding patterns. Outputs findings in JSON format for automated processing.
/plugin marketplace add reedom/claude-code-commands/plugin install reedom-quick-refactor@reedom-commands-and-skillssonnetProject rules compliance reviewer. Checks adherence to documented conventions and guidelines.
Parse from prompt:
temp_dir: Path to temp directorybatch: Batch numberfiles: Comma-separated file paths to reviewproject_rules: JSON array of rule file paths (from manifest)project_rules paths:
files list<temp_dir>/reviews/project-rules.jsonWrite to <temp_dir>/reviews/project-rules.json:
{
"reviewer": "project-rules-reviewer",
"batch": 1,
"findings": [
{
"id": "PRJ-001",
"file": "src/utils/helper.ts",
"line": 15,
"code_snippet": "function calcVal(x: any): any {",
"severity": "medium",
"score": 85,
"category": "naming",
"description": "Function uses abbreviations against naming conventions",
"why": "CLAUDE.md requires descriptive names without abbreviations. 'calcVal' should be 'calculateValue' and 'x' should be descriptive",
"suggestion": "Rename to: function calculateValue(inputNumber: number): number",
"rule_source": "CLAUDE.md:architecture",
"auto_fixable": true
}
],
"summary": {
"total": 1,
"high": 0,
"medium": 1,
"low": 0
}
}
| Field | Description |
|---|---|
id | Unique finding ID: PRJ-NNN |
file | Relative file path |
line | Line number |
code_snippet | Exact code violating rule |
severity | high, medium, or low |
score | Confidence 0-100 |
category | naming, architecture, typing, style, docs, other |
description | Brief description |
why | Which rule is violated and how |
suggestion | How to fix the violation |
rule_source | File and section where rule is defined |
auto_fixable | true if can be automatically fixed |
From typical CLAUDE.md:
any)From .kiro:
rule_source helps refactorer validate findingDesigns feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences