fmt

sachitv's avatarfrom sachitv

Format TypeScript sources using Deno formatter

⭐1stars🔀0forks📁View on GitHub🕐Updated Jan 4, 2026

When & Why to Use This Skill

This Claude skill automates TypeScript code formatting using the Deno formatter, ensuring consistent coding standards and style across your repository. It integrates seamlessly into development workflows by applying rules from deno.jsonc to individual files or the entire codebase, helping developers maintain clean and readable code effortlessly.

Use Cases

  • Pre-commit automation: Automatically format all tracked TypeScript files to ensure style compliance before committing changes.
  • Pull Request preparation: Standardize code formatting across the repository before submitting a PR to reduce noise in code reviews.
  • On-demand formatting: Quickly reformat specific TypeScript source files after manual edits or refactoring to match project-wide configuration.
  • CI/CD integration: Use as part of a standard pre-commit workflow to enforce consistent code style across a distributed development team.
namefmt
descriptionFormat TypeScript sources using Deno formatter
licenseMIT
compatibilityopencode
workflowdeno

What I do

  • Run deno fmt to format all tracked TypeScript files in the repository
  • Can also format a single file using deno fmt <filename>
  • Ensures consistent code formatting before committing or submitting a pull request
  • Automatically follows the formatter rules configured in deno.jsonc

When to use me

Use this when you want to ensure code is properly formatted:

  • Before committing changes
  • Before creating a pull request
  • After modifying any TypeScript files in the codebase

Notes

  • The formatter is configured by Deno and applies to the entire codebase
  • This is part of the standard pre-commit workflow defined in scripts/pre-commit.sh