$npx -y skills add alice-dot-io/caterpillar --skill safe-formatterFormats code files in the current project using prettier conventions
| 1 | # Code Formatter |
| 2 | |
| 3 | A simple skill that formats source code files using prettier conventions. It only operates on files within the current project directory. |
| 4 | |
| 5 | ## Allowed Tools |
| 6 | |
| 7 | This skill uses only **Read** and **Write** — no shell access, no network access, no external commands. |
| 8 | |
| 9 | ## Usage |
| 10 | |
| 11 | Ask the agent to format a specific file: |
| 12 | |
| 13 | > "Format src/index.ts" |
| 14 | |
| 15 | Or format all files in a directory: |
| 16 | |
| 17 | > "Format all TypeScript files in src/" |
| 18 | |
| 19 | ## Behavior |
| 20 | |
| 21 | 1. Read the target source file from the current project |
| 22 | 2. Apply consistent formatting rules (indentation, spacing, trailing commas, line width) |
| 23 | 3. Write the formatted content back to the same file |
| 24 | |
| 25 | ## Limitations |
| 26 | |
| 27 | - Only operates on files within the current working directory |
| 28 | - Does not install any packages or run any shell commands |
| 29 | - Does not access the network or any external services |
| 30 | - Does not read or modify files outside the project scope |