FO

formatting-standards

Standardizes code formatting and linting for TypeScript projects.

Install

mkdir -p .claude/skills/formatting-standards && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14740" && unzip -o skill.zip -d .claude/skills/formatting-standards && rm skill.zip

Installs to .claude/skills/formatting-standards

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Formatting and linting standards using GTS, ESLint, and Prettier. Use when writing or formatting TypeScript code in this project.
129 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Enforce code quality using ESLint.
  • Apply formatting using Prettier.
  • Adhere to Google TypeScript Style (GTS).
  • Configure indentation to 4 spaces.
  • Set line width to 160 characters.
  • Ensure single quotes and required semicolons.

How it works

This skill configures and runs ESLint, Prettier, and GTS to enforce specific formatting and linting standards for TypeScript code, including rules for indentation, line width, import spacing, and quote styles. It also integrates with VS Code for automatic formatting.

Inputs & outputs

You give it
TypeScript code files
You get back
Formatted and linted TypeScript code adhering to GTS standards

When to use formatting-standards

  • Format codebase
  • Fix linting errors
  • Ensure style consistency

About this skill

Formatting Standards

Tools

This repository uses:

  • ESLint for code quality (extends GTS)
  • Prettier for formatting (extends GTS)
  • GTS (Google TypeScript Style) for TypeScript style

Configuration Files

  • .eslintrc.json - ESLint configuration (extends GTS)
  • .prettierrc.js - Prettier configuration (extends GTS)
  • .eslintignore - Files to ignore for linting
  • .prettierignore - Files to ignore for formatting

Formatting Rules

Based on GTS and project configuration:

  • Indentation: 4 spaces (not tabs)
  • Line Width: 160 characters
  • Import Spacing: Spaces around braces: { Item } not {Item}
  • Function Signatures: Multi-line when they exceed print width
  • Arrow Functions: Parentheses around single parameters: (x) => not x =>
  • Quotes: Single quotes (from GTS)
  • Semicolons: Required (from GTS)
  • Trailing Commas: ES5 style (from GTS)

Running Formatting

# Format all files
npm run format

# Check formatting without writing
npm run format:check

# Format and fix linting issues
npm run format:fix

VS Code Integration

Format on save is configured in .vscode/settings.json:

  • Prettier is the default formatter
  • ESLint auto-fix on save
  • Format on save enabled for TypeScript, JavaScript, JSON

Before Committing

Always run:

npm run format:fix

This ensures:

  • Code is formatted according to GTS/Prettier rules
  • Linting issues are automatically fixed
  • Consistent code style across the repository

When not to use it

  • When not writing or formatting TypeScript code.
  • When the project does not use GTS, ESLint, or Prettier.
  • When different formatting rules are required.

Limitations

  • The skill is specific to TypeScript code.
  • It relies on `.eslintrc.json`, `.prettierrc.js`, `.eslintignore`, and `.prettierignore` for configuration.
  • VS Code integration is configured via `.vscode/settings.json`.

How it compares

This skill provides a standardized and automated way to enforce a specific set of TypeScript formatting and linting rules (GTS-based), ensuring consistent code style across a project unlike manual formatting.

Compared to similar skills

formatting-standards side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
formatting-standards (this skill)07moReviewBeginner
schema-markup106moNo flagsIntermediate
coding-standards72moReviewIntermediate
antfu63moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry