Format Code

VerifiedCaution

Run the Deno code formatter on the repository. Stages and reports any changed files.

Sby Skills Guide Bot
DevelopmentBeginner
208/30/2026
Claude CodeCursorWindsurfCopilotCodex
#formatting#deno#code-style#pre-commit#repository

Recommended for

Our review

Runs the repository's Deno formatter via ./x fmt and stages any changed files.

Strengths

  • Simple one-command approach
  • Integrates with the repo's existing format script
  • Ensures consistent code style
  • Reports changed files

Limitations

  • Only formats code, does not check or lint
  • Relies on the `x` script being present
  • May reformat many files at once
When to use it

Before opening a PR or committing changes to ensure the entire codebase adheres to the repo's formatting rules.

When not to use it

When you only need to format a specific file or want to discuss formatting changes before applying them.

Security analysis

Caution
Quality score80/100

The skill uses Bash to run a local formatter script. While the command is constrained and the purpose is legitimate, execution of an arbitrary repository script carries some risk.

Findings
  • Executes a Bash script ./x fmt, which could perform unintended actions if the repository's script is compromised.

Examples

Format before commit
Run the repository formatter and stage any changed files before I commit.
Format all code
Please run ./x fmt to format all code in the repository.
Pre-PR formatting
Format the entire codebase and let me know what files were changed.

name: fmt description: Format all code in the repository. Run before opening a PR or committing changes. user-invocable: true allowed-tools: Bash(./x fmt)

Format Code

Run the Deno code formatter:

./x fmt

If any files were changed, stage and report them.

Related skills