code-quality

Installation
SKILL.md

Code quality

Read root package.json and relevant package package.json files before running repository JavaScript, package scripts, or adding functionality. Inspect installed dependencies first and use an existing package where it fits; manifests are source of truth, not a static inventory.

Constraints

  • Prefer TypeScript type over interface.
  • Use runtime validation for genuinely unknown, external, user-controlled, persisted, or unowned API data.
  • Do not hide uncertainty with as any, double casts through unknown, or non-null assertions. Prefer explicit checks or flow-sensitive typing.
  • Use as sparingly. Prefer satisfies, discriminated unions, generics, or flow-sensitive narrowing when TypeScript can express the fact.
  • A targeted as is acceptable at a known boundary where control flow guarantees the type. For example, inside a platform switch, casting message to Message<SlackEvent> or Message<GitHubRawMessage> is better than generic Record<string, unknown> helpers for known adapter fields.
  • Test files and fixtures may use casts for fixture construction, partial mocks, and error paths. Production conventions still apply to non-test code imported by tests.
  • Fix unused values at their cause. Remove dead parameters or code, or use a value accidentally ignored. Prefix with _ only for intentionally unused positional parameters such as (_req, res).

Maintainability guidance

Installs
1
Repository
kilo-org/cloud
GitHub Stars
55
First Seen
Jul 16, 2026
code-quality — kilo-org/cloud