Skip to main content
command CX Codex

code-quality — Claude Code command: code checks and setup

code-quality reviews TypeScript files in a chosen directory, runs npm checks, and groups findings by severity. Use it before a code change or review.

no license ★ 6,091 updated 2026-01-06

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/code-quality.md
Open on GitHub

What code-quality does

The command searches a target directory for .ts and .tsx files while leaving out tests and generated files. It then runs npm run lint -- $ARGUMENTS and npm run typecheck. The agent also reviews error handling, loading behavior, and empty list states.

Findings are grouped as Critical, Warning, or Suggestion. The checklist covers TypeScript any, onError handlers on mutations, and disabled buttons during async work. The automated checks depend on the project having lint and typecheck npm scripts.

What it helps with

  • inspect .ts and .tsx files in a directory
  • spot TypeScript any usage
  • check error and loading handling
  • find missing empty states in lists
  • sort findings by severity

Example prompts for the agent

  • Run /code-quality <directory> to review the selected folder.
  • Check the TypeScript quality in src and group the findings by severity.
  • Run /code-quality <directory> and inspect mutations, loading states, and empty lists.

How to install code-quality

Manually: put the files in place

.claude/commands/code-quality.md

Call it with /code-quality. For all projects use ~/.claude/commands/

Questions about code-quality

How do I install code-quality in Claude Code?

Create the command file at .claude/commands/code-quality.md.

What does code-quality do?

It finds .ts and .tsx files, runs npm run lint -- $ARGUMENTS and npm run typecheck, then reports findings under Critical, Warning, or Suggestion.

What does the manual review cover?

It checks any, error handling, loading states, empty lists, mutation onError handlers, and button state during async operations.

Similar slash commands

All slash commands for Code review and refactoring →
code-review-and-quality addyosmani code-review-and-quality — a skill for Claude Code and other platforms runs multi-axis code reviews across five quality dimensions. Runs before merging any pull request. CX Codex +1 92,300installs thermo-nuclear-code-quality-review cursor thermo-nuclear-code-quality-review is a Claude Code skill for a strict review of maintainability and code structure. Ask for it to audit changes on the current branch and find ways to simplify them. CX Codex +1 24,700installs improve-code-quality wondelai improve-code-quality — a skill for Claude Code and Codex guides untested code toward production stability. It runs an interactive nine-phase workflow and records every milestone in local markdown files. CX Codex +1 2,700installs nextjs-code-quality-enforcer davila7 nextjs-code-quality-enforcer — a PostToolUse hook that checks every Next.js file you write: App Router structure, Server and Client Component directives, imports, types. It runs right after an edit. 2,249installs pr-feedback-quality-gate nexu-io pr-feedback-quality-gate is a Claude Code skill that tracks pull request feedback, merge conflicts, and checks. It validates fixes and runs a read-only review before follow-up commits or pushes. CX Codex +1 2,000installs code-review-quality proffesor-for-testing code-review-quality is a Claude Code skill for reviewing code changes with attention to bugs, security, and testability. It can guide PR feedback or help set team review practices. CX Codex +1 1,600installs

From the same set11

The whole set →
pr-summary pr-summary reviews the current branch against main and drafts a pull request body with changed files, breaking changes, and a test checklist. CX Codex +1 ★ 6,091repo stars onboard onboard — a command that prepares an agent to work on a project. It explores the codebase, asks clarifying questions, and records context for the next session. CX Codex +1 ★ 6,091repo stars pr-review pr-review inspects pull requests through the GitHub CLI against project standards and posts tiered review notes. CX Codex +1 ★ 6,091repo stars docs-sync docs-sync is a Claude Code command that compares documentation with recent code changes and flags inconsistencies. It catches outdated examples, incorrect API signatures, and mismatched parameter types. CX Codex +1 ★ 6,091repo stars github-workflow github-workflow manages Git branches, Conventional Commits, and pull requests according to team conventions. Helpful for keeping repository history structured and tidy. CX Codex ★ 6,091repo stars ticket Handles the full ticket workflow: fetch task details from JIRA or Linear, explore related code, implement changes, and create a linked PR. Reduces manual sync between issue tracker and repository. CX Codex +1 ★ 6,091repo stars code-reviewer code-reviewer — a subagent for Claude Code that checks newly written or modified code against project standards, TypeScript strict mode, and security patterns. CX Codex ★ 6,091repo stars systematic-debugging systematic-debugging enforces a four-phase troubleshooting protocol rooted in root cause analysis. Ideal for tracking down broken test suites or runtime errors without trial-and-error edits. CX Codex +1 ★ 6,091repo stars

Project sponsors

Companies that keep this analytics open