Skip to content

Structured review workflow covering linting, TypeScript strictness, component size, DRY, and dependency injection checks for Flows apps.

CCM score
56 of 100
skills.sh installs
2K
GitHub stars
6
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the review in ordered steps: lint and strict TypeScript baseline, type safety, component size, duplicate logic, dependency injection, and coding patterns
  • Includes grep and node commands to find any usage, flag-bag state types, oversized .tsx files over 150 lines, and direct CDF client construction
  • Enforces zero any in src/ and requires discriminated unions and derived types over manually duplicated shapes
  • Designed for reviewing a Flows app before a PR review or after a feature is complete

Install

$ npx -y skills add cognitedata/builder-skills --skill code-quality -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Code Quality Review

Review $ARGUMENTS (or the whole app if no argument is given) for code quality issues. Work through every step below in order and report all findings with file paths and line numbers.


Step 1 — Run the linter first

Before reading any code manually, get a baseline from the automated tools:

pnpm run lint

List every error and warning. Fix all errors before proceeding — lint errors are not negotiable. Warnings should be reviewed and resolved unless there is a documented exception.

Also run the TypeScript compiler in strict mode to surface any hidden type issues:

pnpm exec tsc --noEmit

List every type error. These must be fixed.


Step 2 — TypeScript type safety

2a — Eliminate any types

Search for any usage across the codebase:

grep -rn --include="*.ts" --include="*.tsx" -E ": any|as any|<any>" src/

For each hit, replace with the correct type. Common substitutions:

Details

Repository
github.com/cognitedata/builder-skills
Categories
Code Review & Quality, Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the code-quality skill do?

The code-quality skill reviews a Flows app for code quality, maintainability, and clean code issues, such as any types, naming, dead code, duplication, and component size. It starts by running the linter and the TypeScript compiler in strict mode, then works through the review steps and reports findings with file paths and line numbers.

How do I install the code-quality skill?

Run npx -y skills add cognitedata/builder-skills --skill code-quality -y in your project to install the code-quality skill. Once installed, the code-quality skill lets your agent review a Flows app, a single file, or a PR branch for code quality issues.

Which skills lead the Code Review & Quality category, and how does code-quality compare?

Code-quality sits in the Code Review & Quality category next to improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Unlike those, the code-quality skill focuses on Flows app code quality, including eliminating any types, enforcing dependency injection, and checking TypeScript strict mode.

Is code-quality the right skill for a certification code review of a Flows app?

The code-quality skill covers maintainability and clean code checks for a Flows app, while the flows-code-review skill in the same repository is the technical review runner used in the certification flow. The code-quality skill is a good fit when you want focused cleanup of types, duplication, and component structure before that review.

More from cognitedata/builder-skills

All 25

Similar to Code Quality

More Code Review & Quality