Skip to content

typescript-write

Write or modify TypeScript and JavaScript code, including tests and test helpers, following Metabase coding standards. Use before editing any TS/TSX/JS/JSX

— (0 ratings) 2.1K downloads metabase
$ npx skills add https://github.com/metabase/metabase --skill typescript-write

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

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. No any annotations, no as any / as unknown as, no untyped parameters or returns that infer any, no implicitly-any destructures or array/object literals.
  • Stop untyped values at the boundary. Use canonical types, typed wrappers, or unknown with validation or narrowing. Check library defaults and inferred types: a passing type-check does not guarantee that any hasn't propagated into your code. For example, capture untyped JSON.parse and response .json() results as unknown; 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

Related skills

New

Coding & dev tools

hyperframes-cli

CLI toolkit for scaffolding, validating, previewing, and rendering HyperFrames video compositions.

New • 1.8M
New

Testing

grill-me

Relentless interviewing skill that stress-tests plans and designs through systematic questioning.

New • 1.6M
New

Testing

grill-with-docs

Relentless design interrogation that stress-tests plans against your domain model and sharpens terminology inline.

New • 1.4M