From 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".
How this skill is triggered — by the user, by Claude, or both
Slash command
/haskell-format-skill:haskell-formatThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Formats Haskell **source** files with the project's formatter. (`.cabal` / `cabal.project` files
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.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub konn/haskell-claude-marketplace --plugin haskell-format-skill