Code Quality · 3 plugins
Regressions visible before merge.
Three plugins cover the full cycle: pre-commit gate, code review on changeset, architectural analysis in CI. Each works standalone — or together as one pipeline.
Unified pipeline
From commit to merge.
1. Lint
kb-devkit run lintESLint across all packages in dependency order. Only changed packages re-lint.2. Type-checkkb-devkit run type-checktsc --noEmit with project references. Type errors in dependencies surface first.3. AI Reviewpnpm kb review runLLM review of the diff. Finds logic errors, security issues, and anti-patterns.Static analysis
Lint and type-check — fast, every change.
ESLint and TypeScript run in dependency order across all packages. Only changed packages re-run. Cache restores in ~1ms for unchanged outputs.
kb-devkit run lintLint all packages in dependency order.kb-devkit run lint --affectedLint only changed packages and dependents.kb-devkit run type-checkTypeScript check with project references.kb-devkit gateCheck staged files only. For pre-commit hooks.AI code review
LLM review on every diff — architecture-aware.
The review plugin sends your diff to the configured LLM with your architecture as context. Finds logic errors, security issues, and anti-patterns that linters miss. Runs as a gated workflow step.
pnpm kb review runReview current diff against HEAD.pnpm kb review run --pr 42Review a specific PR by number.pnpm kb review configShow active model and prompt configuration.pnpm kb review historyList past reviews with verdict and timestamp.QA trends
Track quality over time — catch regressions before they ship.
The QA plugin runs recurring checks on every change and tracks results by package over time. Surfaces trend degradation — a package that was 95% passing last week and is 80% today gets flagged before it ships.
pnpm kb qa runRun QA checks on the current workspace.pnpm kb qa run --affectedRun only on changed packages.pnpm kb qa trendsShow quality trend per package over last N runs.pnpm kb qa reportExport structured QA report with pass/fail history.Install
Three plugins. Full quality cycle.
bash
kb marketplace install @kb-labs/qa-entry
kb marketplace install @kb-labs/quality-entry
kb marketplace install @kb-labs/review-entry