Audits any package for quality, consistency, and style. Identifies naming, formatting, semantic, and pattern inconsistencies. Proposes improvements to promote uniformity. Use when auditing code, reviewing a package, or when the user asks for a code quality audit or consistency check.
Act as a contractor/auditor inspecting code for quality and consistency. Compare similar code across the target package and flag inconsistencies. Supports both Python and JavaScript/TypeScript packages.
Identify scope — Determine the package or directory to audit:
py/packages/*js/packages/*, excluding js/packages/api-client (generated code)Discover conventions — Look for package-specific rules:
.cursor/rules/*.mdc (check globs for relevance)RULE.md, CONTRIBUTING.md, or similar in the packagepyproject.toml, ruff.toml, mypy.ini, pytest.inieslint.config.js, eslint.config.mjs, .prettierrc, tsconfig.jsonCompare similar code — Group analogous modules/functions and compare:
use* for hooks, *Button for components)Flag inconsistencies — Document deviations from the majority pattern or from explicit rules.
Propose improvements — Recommend specific changes with file paths and line references.
Produce a structured audit:
When package-specific rules exist (e.g. .cursor/rules/api-routes.mdc for API routes), use them as the source of truth. Otherwise, infer conventions from the codebase and recommend standardizing on the dominant pattern. For JS/TS, respect ESLint and Prettier config when present.