safe-skill
A simple code formatting skill. Reformats code to follow project conventions. Use when the user asks to "format code", "clean up formatting", or "fix style".
Files1
View on GitHubSKILL.mdtests/fixtures/safe-skill/SKILL.md
GitHubCode Formatter
Reformat the specified file(s) to match the project's code style conventions.
Rules
- Use consistent indentation (detect from existing code: tabs or spaces)
- Normalize trailing whitespace
- Ensure files end with a single newline
- Align object properties when they're on consecutive lines
- Sort imports alphabetically within each group
When to Use
- User asks to format or clean up a file
- As a final step after refactoring
When NOT to Use
- During a code review (formatting changes obscure logic changes)
- On generated files (formatters can break generated code)