Claude-skill-registry code-review-auto

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/code-review-auto" ~/.claude/skills/majiayu000-claude-skill-registry-code-review-auto && rm -rf "$T"
manifest: skills/data/code-review-auto/SKILL.md
source content

Automatic Code Review

Review and fix issues before user sees code.

Review Checklist

Code Quality

  • No unused imports
  • No unused variables
  • No console.log in production
  • Consistent naming conventions
  • No magic numbers (use constants)

Structure

  • Components properly extracted
  • No code duplication
  • Reasonable file sizes (<300 lines)
  • Logical folder organization

Performance

  • No N+1 queries
  • Images optimized
  • Lazy loading where appropriate
  • No blocking operations

Accessibility

  • Alt text on images
  • Proper heading hierarchy
  • Focusable interactive elements
  • Color contrast sufficient

Auto-Fix Rules

IssueFix
Unused importRemove
console.logRemove
Missing alt textGenerate from context
Duplicate codeExtract function
Long functionSplit into smaller

Process

  1. Scan generated code
  2. Identify issues (categorize by severity)
  3. Auto-fix what's possible
  4. Re-run tests to verify fixes don't break
  5. Continue to preview if all good

User Experience

User never sees:

  • Linting errors
  • Initial messy code
  • Intermediate states

User always sees:

  • Clean, reviewed code
  • Working preview
  • ✅ confirmation