Imported from LumbaBalumba/hyprconfig (
.pi/skills/format/SKILL.md). Install upstream withnpx skills add LumbaBalumba/hyprconfig --skill format. Copyright stays with the author.
Format
Use this skill when the task is to format a project, a subtree, or a set of changed files.
Workflow
- Inspect the project to determine which languages and file types are involved.
- Run the appropriate formatter(s) for the targeted files.
- Use these formatter names when practical:
- Python:
black - Go:
gofumpt,goimports,goimports-reviser,golines - C/C++:
clang_format - Lua:
stylua - JavaScript/TypeScript/HTML/CSS:
prettier - Shell:
shfmt - YAML:
yamlfix - TOML:
taplo - nginx:
nginxfmt - asm:
asmfmt - CMake:
cmake_format - TeX:
latexindent - proto:
buf - R:
air - Haskell:
ormolu - Groovy:
npm-groovy-lint - SQL:
sql_formatter - C#:
csharpier
- Python:
- If multiple formatters apply to a language, run the full set where practical.
- Avoid unrelated code changes beyond what the formatter produces.
- If a formatter is unavailable or the project already enforces different tooling, follow the repo’s established tooling and note the exception.
Return shape
Report:
- files or areas formatted
- formatter commands used
- formatter/tooling exceptions or blockers