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.
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.mdcode-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)
MUST BE USED PROACTIVELY after writing or modifying any code. Reviews against project standards, TypeScript strict mode, and coding conventions. Checks for anti-patterns, security issues, and performance problems.
Git workflow agent for commits, branches, and PRs. Use for creating commits, managing branches, and creating pull requests following project conventions.
Check if documentation is in sync with code
Review a pull request using project standards
Generate a summary for the current branch changes
Work on a JIRA/Linear ticket end-to-end
Core component library and design system patterns. Use when building UI, using design tokens, or working with the component library.
Formik form handling with validation patterns. Use when building forms, implementing validation, or handling form submission.