TypeScript/JavaScript Development Skill
Before frontend edits, including test-only changes, read frontend/AGENTS.md, docs/developers-guide/frontend.md, and the shared references below. For new or edited tests, follow Test authoring.
@./../_shared/development-workflow.md
@./../_shared/typescript-commands.md
@./../_shared/react-redux-patterns.md
No any — hard rule
- New, moved, or otherwise edited code must not contain
any, explicit or implicit. Noanyannotations, noas any/as unknown as, no untyped parameters or returns that inferany, no implicitly-anydestructures or array/object literals. - Stop untyped values at the boundary. Use canonical types, typed wrappers, or
unknownwith validation or narrowing. Check library defaults and inferred types: a passing type-check does not guarantee thatanyhasn't propagated into your code. For example, capture untypedJSON.parseand response.json()results asunknown; narrow or validate before accessing fields or passing to typed callers. - Type the captured value, not only its eventual result. A return annotation doesn't change the inferred types of parameters or destructured bindings. Capture untyped data as
unknown, then narrow or validate before destructuring or accessing fields. - Mandatory type verification. Before finishing a TS/TSX change, run
bun run type-check-pure. If TypeScript LSP tools are available, also inspect changed symbols with hover and go-to-definition; otherwise skip LSP check.
Type tightening
Installs: 2.1K | GitHub stars: 50.6K | First seen: Jan 20, 2026


