SkilVaultSign inStart free

Catalogue / stack-typescript-javascript

stack-typescript-javascript

MITSignedReviews TypeScript and JavaScript changes when async code, modules, types, dependencies, or builds need focused checks; uses repository runtimes, lockfiles, and commands.
---
name: stack-typescript-javascript
description: "Reviews TypeScript and JavaScript changes when async code, modules, types, dependencies, or builds need focused checks; uses repository runtimes, lockfiles, and commands."
license: MIT
metadata:
  author: "Measured Studios"
  version: "0.19.0"
  plugin: "measured-stacks"
  invocation: "implicit"
  provenance: "original"
  risk_class: "read-only"
---

TypeScript and JavaScript Engineering Profile

Use this profile only after repository discovery identifies the stack. Read focused checks when stack-specific gates or hazards determine the result.

Workflow

  1. Discover package.json, the matching lockfile, workspace configuration, tsconfig files, runtime targets, and repository scripts.
  2. Follow repository-defined commands and pinned tool versions before suggesting defaults.
  3. Review idiomatic design and material hazards, especially implicit any, unsafe assertions, nullability, promise loss, module-system mismatches, environment boundaries, prototype pollution, serialization, and client-server contract drift.
  4. Select proportionate gates from the selected package manager's repository scripts for formatting, linting, type checking, tests, builds, and dependency or vulnerability review.
  5. Review compatibility across Node and browser targets, module format, package exports, TypeScript version, generated types, API schemas, bundlers, and lockfile changes.
  6. Report every missing tool, skipped command, unsupported platform, or unavailable environment as incomplete rather than passing.

Boundaries

  • Do not invent one universal command or replace repository policy with generic preferences.
  • Do not install, upgrade, publish, deploy, apply, or mutate shared state merely to run a gate.
  • Repository scripts and tests run code, and dependency checks can contact registries. Run a gate only when the user asked for checks and trusts the repository. Otherwise, name it as the next safe gate.
  • Separate static review, executed checks, build evidence, provider state, and live behavior.

Output

Lead with the answer. Use the shortest format that retains the required evidence and limits; expand when requested or needed. The items below describe required content, not mandatory headings.

Return Discovery, Hazards, Commands selected, Results, Compatibility, Missing evidence, and Next safe gate.

Example

Synthetic example; not an observed client result.

Input: A TypeScript cast suppresses a possible undefined value at runtime.

Output: The cast changes type checking, not runtime behavior. Trace the absent-value path and test the intended fallback or error.