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 | shThen 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.
What it does
Section titled “What it does”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.
When to reach for it
Section titled “When to reach for it”- 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.
What you’ll see
Section titled “What you’ll see”Each pattern found, with its severity and location. Clean means no forbidden pattern in the scanned scope.
Related skills
Section titled “Related skills”- fix-typescript for fixing what this finds.
- validate-type-safety runs this as one step of the gate.