typescript-write

Enforce Metabase TypeScript and JavaScript coding standards during development.

4|2|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/PeterFile/my-common-skills --skill typescript-write-peterfile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-write
Source: https://github.com/PeterFile/my-common-skills/tree/main/typescript-write
Command: npx skills add https://github.com/PeterFile/my-common-skills --skill typescript-write-peterfile

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers write TypeScript and JavaScript code that adheres to Metabase coding standards and best practices, reducing bugs and ensuring consistency across projects.

Core Features & Use Cases

  • Enforces Metabase-style TypeScript/JavaScript patterns and conventions
  • Provides templates, linting guidance, and refactoring helpers to improve code quality
  • Use Case: When starting a new TS/JS module or refactoring legacy code, apply this skill to align with Metabase standards

Quick Start

Use the typescript-write skill to scaffold a new TS/JS module that follows Metabase standards or to refactor an existing function for better type-safety.

Frequently Asked Questions about typescript-write

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce TypeScript coding standards when creating new modules?

To enforce TypeScript coding standards when creating new modules, apply Metabase-approved patterns, linting rules, and type safety checks. This ensures consistent code quality and reduces bugs across your TypeScript and JavaScript projects from the initial scaffold.

What is the best way to refactor legacy JavaScript code for type safety?

The best way to refactor legacy JavaScript code for type safety is to apply canonical templates and best practices that enforce strict typing. This process aligns existing functions with standard patterns, improving overall code reliability and maintainability.

Can I use this approach for both TypeScript and JavaScript code review?

Yes, you can use this approach for both TypeScript and JavaScript code review. It enforces Metabase-style conventions and provides refactoring helpers that guide developers in checking type safety and standard patterns across both languages.

Do I need specific linting tools to apply Metabase coding standards?

You do not need external linting tools to apply Metabase coding standards, as the skill provides built-in linting guidance and canonical templates. It directly guides developers in meeting type safety checks and standard conventions during development.

When do I need to apply canonical Metabase templates during development?

You need to apply canonical Metabase templates during development when starting a new TS/JS module or refactoring existing code. This ensures your codebase adheres to approved best practices, standard patterns, and required type safety checks.

Why does my refactored TypeScript code still fail type safety checks?

Refactored TypeScript code may fail type safety checks if it does not align with Metabase-approved standard patterns and canonical templates. Applying the correct coding standards and linting guidance ensures your refactored functions pass required type checks.