What problem does it solve?
After implementing changes, codebases often drift in style and accumulate lint issues that slow reviews and increase defects, especially when formatting and static checks are forgotten.
Core Features & Use Cases
- Formatter selection by project config: Runs Prettier when supported, otherwise runs Biome formatting when
biome.json is present.
- Deterministic linting and fixes: Applies ESLint autofixes when ESLint config exists, otherwise runs Biome lint with apply; falls back to TypeScript type-checking via
tsc --noEmit when only tsconfig.json is available.
- DB schema formatting for Prisma: Formats
prisma/schema.prisma to keep schema style consistent.
- Use Case: After pushing feature code to a JavaScript/TypeScript repository, invoke this skill to automatically format files and apply safe lint/type/schema fixes before review.
Quick Start
Ask your agent to run the clean-code skill to format and lint the repository based on the detected tool configuration files.