lang-ts

Standardize TypeScript codebases with Google style, strict typing, and test tooling.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/dragoscirjan/opencode-config --skill lang-ts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lang-ts
Source: https://github.com/dragoscirjan/opencode-config/tree/main/skills/lang-ts
Command: npx skills add https://github.com/dragoscirjan/opencode-config --skill lang-ts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill gives teams a consistent TypeScript standard so code stays readable, type-safe, and easier to maintain across projects.

Core Features & Use Cases

  • Style Guidance: Follows the Google TypeScript Style Guide for naming, structure, and code organization.
  • Tooling Direction: Recommends practical tools for formatting, linting, and testing with Prettier, typescript-eslint, and Vitest or Jest.
  • Type-Safe Practices: Promotes strict mode, explicit return types, discriminated unions, and using unknown instead of any.
  • Use Case: Use this Skill when starting a new TypeScript service, reviewing team conventions, or aligning an existing codebase with safer patterns.

Quick Start

Ask for the TypeScript standards and conventions to apply to your current project or code review.

Frequently Asked Questions about lang-ts

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

FAQPage Schema
What is the best way to standardize TypeScript code style across a team?

Standardizing TypeScript code style involves applying the Google TypeScript Style Guide alongside strict compiler settings, Prettier formatting, and typescript-eslint linting to enforce consistent naming, structure, and type safety.

How do I configure strict typing and reliable tests in a new TypeScript project?

Configuring strict typing and reliable tests requires enabling strict mode, explicit return types, and discriminated unions, paired with testing tools like Vitest or Jest. This Skill outlines these type-safe design conventions and tooling directions for setup.

Does this Skill work with existing codebases or only new TypeScript services?

This Skill works for both new TypeScript services and existing codebases. You can use it when starting a new service, reviewing team conventions, or aligning an existing project with safer patterns like using unknown instead of any.

Why should I use unknown instead of any in TypeScript?

Using unknown instead of any in TypeScript enforces type safety by requiring type checking before performing operations on the variable. This practice is promoted by this Skill to keep code readable, type-safe, and easier to maintain across projects.

What testing tools does this Skill recommend for TypeScript development?

For TypeScript development, this Skill recommends using Vitest or Jest as testing tools, combined with Prettier for formatting and typescript-eslint for linting, ensuring reliable tests and consistent code standards.

When do I need to apply TypeScript code standards and conventions?

You need to apply TypeScript code standards when you want code to stay readable, type-safe, and easier to maintain across projects. This is useful when starting a new TypeScript service, reviewing team conventions, or aligning an existing codebase.