Skip to content

08 / 11Building and checkingDev pack

scan-reward-hacking

Scan TypeScript for shortcuts that make the checks pass without fixing type safety.

In the dev pack

Run the Catalyst installer to add or refresh both packs. See The skills packs for update and manual install options.

curl -fsSL https://staging.catalystcloud.dev/install.sh | sh

Then type /scan-reward-hacking in your coding agent, or describe the task and the agent picks the skill up.

Sourcecoalesce-labs/catalyst-dev-skills › scan-reward-hacking

Scans TypeScript code for reward hacking: shortcuts that make the type checker, linter or tests pass without actually fixing type safety. Say “scan for hacks”, “check for type cheats”, “verify no shortcuts”, or run it after fix-typescript.

Carries a 12-pattern checklist with severity tuned for libraries and apps: as any and as unknown as, @ts-ignore and its cousins, non-null assertions, forEach(async, void tricks, disabled lint rules, skipped tests, and a loosened or excluding tsconfig.

  • Before trusting a green typecheck you did not watch turn green.
  • After any agent session that fixed types: agents optimise for the check passing; this catches the optimisation.

Each pattern found, with its severity and location. Clean means no forbidden pattern in the scanned scope.