Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

typescript-write — Claude Code skill: strict TypeScript with types

Skill for writing and editing TypeScript and JavaScript code to Metabase standards. Enforces strict typing without any and requires type checking before completion.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add metabase/metabase --skill typescript-write -a claude-code
Open on GitHub

What typescript-write does

typescript-write guides edits to TS/TSX/JS/JSX files in Metabase projects, enforcing internal coding standards. Before any frontend changes—including test-only edits—the skill directs you to read frontend/CLAUDE.md and related docs.

The core rule: no any in new or modified code. The skill requires capturing untyped values as unknown, narrowing types before use. After each TS/TSX change, run bun run type-check-pure to verify types are sound. It favors TypeScript utilities (Partial, Pick, Record, generics) over type casts and models data with precise types—optional fields marked ?, distinguishing absence from undefined.

This is guidance for developers, not automatic refactoring. The skill steers you toward reusing types from metabase-types, using discriminated unions for variant state, and justifying unavoidable casts with comments. Test authoring follows separate rules.

What it helps with

  • Remove implicit any types from TypeScript code
  • Normalize types for API responses and external data
  • Model optionality and absence correctly in type signatures
  • Reduce type casts by fixing function signatures
  • Write typed tests following project standards

Example prompts for the agent

  • Help me write a React component with proper types and no `any`, using types from `metabase-types`
  • Refactor this function to handle `unknown` from JSON instead of `any`
  • Write a typed test for this hook with correct fixtures and assertions

How to install typescript-write

1Skills CLI (Vercel)

npx skills add metabase/metabase --skill typescript-write -a claude-code

2Manually: put the files in place

~/.claude/skills/typescript-write/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/typescript-write/

From the same set3

The whole set →

Similar

visual-design-foundations Seth Hobson This skill helps define typography, color, spacing, and icon rules for a project. Use it when setting up design tokens or bringing an interface into visual consistency. Claude Code CX Codex Cursor 13,566installs baoyu-design JimLiu Generates UI mockups, interactive prototypes, slide decks, and design systems as self-contained HTML. Useful whenever an agent needs to produce interface layouts. Claude Code CX Codex Cursor +1 6,300installs adev-writing-guide angular Guidelines for writing Angular documentation in adev/src/content. It enforces Google Technical Writing standards, Angular markdown extensions, and custom code components. Claude Code CX Codex Cursor +1 912installs web-component-design Seth Hobson This skill helps design reusable components for React, Vue, and Svelte. Use it for UI libraries, design systems, or legacy component refactors. Claude Code CX Codex Cursor 13,167installs threejs nexu-io Guides the agent in building browser 3D scenes, materials, interactive controls, and post-processing with Three.js. Claude Code CX Codex Cursor +1 3,400installs design-brief nexu-io Parses an I-Lang design brief into a concrete spec with palette, typography, density, and constraints. Eliminates ambiguity from phrases like "make it professional." Claude Code CX Codex Cursor +1 3,400installs frontend-design official anthropics This skill guides intentional visual design for new interfaces and redesigns. Use it when a generic generated UI is not enough. Claude Code Claude.ai 1,025,790installs design-taste-frontend Leonxlnx This skill directs the design of public pages and work screens, then checks the result in a browser through screenshots. Use it when an interface feels generic or unfinished. Claude Code CX Codex Cursor +1 673,100installs

Questions about typescript-write

How do I install typescript-write in Claude Code?

Run npx skills add metabase/metabase --skill typescript-write -a claude-code. The skill installs to ~/.claude/skills/typescript-write/SKILL.md.

What does typescript-write do?

The skill guides TypeScript editing in Metabase projects: enforces strict typing, forbids any, teaches proper type modeling, and verifies types via bun run type-check-pure.

Why is type checking required before finishing?

Running bun run type-check-pure catches type errors and ensures any has not leaked into new code. This requirement upholds Metabase's typing standards.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor