Safe formatter

From alice-dot-io/caterpillar · View interactive version

Safe formatter is an AI agent skill from the GitHub repository alice-dot-io/caterpillar. Formats code files in the current project using prettier conventions

How to use this skill

Skill file

Code Formatter

A simple skill that formats source code files using prettier conventions. It only operates on files within the current project directory.

Allowed Tools

This skill uses only Read and Write — no shell access, no network access, no external commands.

Usage

Ask the agent to format a specific file:

"Format src/index.ts"

Or format all files in a directory:

"Format all TypeScript files in src/"

Behavior

  1. Read the target source file from the current project
  2. Apply consistent formatting rules (indentation, spacing, trailing commas, line width)
  3. Write the formatted content back to the same file

Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.