Skip to main content
ClaudeWave
Slash Command6k estrellas del repoactualizado 5mo ago

code-quality

The code-quality command analyzes TypeScript and TypeScript React files in a specified directory by running npm lint and typecheck commands, then manually reviewing code against a checklist including type safety, error handling, loading states, and async operation management. Use this command when you need to audit a codebase for quality issues before deployment or during code review processes.

Instalar en Claude Code
Copiar
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/ChrisWiles/claude-code-showcase/HEAD/.claude/commands/code-quality.md -o ~/.claude/commands/code-quality.md
Después abre una sesión nueva de Claude Code; el slash command carga automáticamente.

code-quality.md

# Code Quality Review

Review code quality in: $ARGUMENTS

## Instructions

1. **Identify files to review**:
   - Find all `.ts` and `.tsx` files in the directory
   - Exclude test files and generated files

2. **Run automated checks**:
   ```bash
   npm run lint -- $ARGUMENTS
   npm run typecheck
   ```

3. **Manual review checklist**:
   - [ ] No TypeScript `any` types
   - [ ] Proper error handling
   - [ ] Loading states handled correctly
   - [ ] Empty states for lists
   - [ ] Mutations have onError handlers
   - [ ] Buttons disabled during async operations

4. **Report findings** organized by severity:
   - Critical (must fix)
   - Warning (should fix)
   - Suggestion (could improve)