commandby nacorga

Fix

Auto-fix all lint and format issues with verification

Installs: 0
Used in: 1 repos
Updated: 2d ago
$npx ai-builder add command nacorga/fix

Installs to .claude/commands/fix.md

# Auto-Fix Code Quality Issues

Automatically fix lint and format issues across the codebase.

## Run Auto-Fix

!npm run fix

## Verify Fixes

!npm run check
!npm run type-check
!npm run build:all
!npm run test:unit
!npm run test:coverage

## Report Format

```
๐Ÿ”ง Auto-Fix Results

=== FIXES APPLIED ===

Lint Fixes:
- Files modified: X
- Issues fixed: Y
- Auto-fix succeeded: [โœ…/โŒ]

Format Fixes:
- Files formatted: X
- Formatting applied: [โœ…/โŒ]

=== VERIFICATION ===

Running acceptance criteria checks...

Lint Status: [โœ… PASSED | โŒ ERRORS REMAIN]
Format Status: [โœ… PASSED | โŒ ERRORS REMAIN]
Type Check Status: [โœ… PASSED | โŒ ERRORS REMAIN]
Build Status: [โœ… PASSED | โŒ ERRORS REMAIN]
Test Status: [โœ… PASSED | โŒ ERRORS REMAIN]

[If all passed:]
โœ… All acceptance criteria met
โœ… Codebase passes all quality checks

[If errors remain:]
โš ๏ธ Remaining Issues:

Manual fixes required:
- [List issues that couldn't be auto-fixed]

Action Required:
- Review remaining issues
- Apply manual fixes
- Re-run /fix command

=== FILES MODIFIED ===

[List of modified files]

=== NEXT STEPS ===

[If passed:]
โœ… Ready to commit changes
Run: git add . && git commit -m "chore: fix lint and format issues"

[If errors:]
โš ๏ธ Manual review needed
Fix remaining issues before committing
```

## What Gets Fixed

**Lint (ESLint)**:
- Unused variables/imports
- Missing semicolons
- Incorrect spacing
- Import order
- Prettier conflicts

**Format (Prettier)**:
- Indentation (2 spaces)
- Line length (100 chars)
- Quote style (single quotes)
- Trailing commas
- Bracket spacing

## Notes

- Auto-fix is safe for most issues
- Some issues require manual intervention
- Always review changes before committing
- Re-run verification after manual fixes

## IMPORTANT RESTRICTIONS

**NEVER modify CHANGELOG.md**:
- CHANGELOG.md is automatically updated via CI/CD workflows
- Any changes to CHANGELOG.md will be overwritten
- Do not include CHANGELOG.md in any auto-fix operations

Quick Install

$npx ai-builder add command nacorga/fix

Details

Type
command
Author
nacorga
Slug
nacorga/fix
Created
6d ago