/haskell-format-skill:haskell-formatfrom haskell-format-skill
Format Haskell source files — `*.hs`, `*.lhs`, `*.hsig` — with the project's configured formatter (fourmolu, ormolu, or stylish-haskell). Use when: (1) formatting Haskell source before compiling, (2) tidying code after edits, (3) applying a project's fourmolu/stylish style. Picks the formatter from project config, falling back to the first available. Trigger: "/haskell-format", "format Haskell", "fourmolu", "ormolu", "stylish-haskell".
Ships in haskell-format-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Formats Haskell source files with the project's formatter. (.cabal / cabal.project files
are handled by /haskell-cabal-gild, not here.) Always format before compiling.
Walk up from the file's directory and pick by config, else the first tool available:
fourmolu.yaml / .fourmolu.yaml present → fourmolu.stylish-haskell.yaml present → stylish-haskellPATH.All three accept -i as the in-place shortcut:
fourmolu -i <file> # or: ormolu -i <file> / stylish-haskell -i <file>
This plugin installs a PostToolUse hook (scripts/haskell-format-on-save.sh) that formats any
.hs/.lhs/.hsig file in place right after it is written. After the hook reformats a file,
re-read it before editing again. Manual invocation is mainly for bulk formatting.
.cabal / cabal.project files are formatted by /haskell-cabal-gild.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub konn/haskell-claude-marketplace --plugin haskell-format-skill