pure-borrow: Skill for Claude Code

.codex/skills/haskell-format/SKILL.md

haskell-format is a skill for Claude Code, Codex from SoftwareFoundationGroupAtKyotoU/pure-borrow. It costs 53 tokens per session (344 once invoked), scanned A, original, BSD-3-Clause.

A formatting workflow for Haskell source files, using the formatter configured by the project. Haskell is a programming language, and formatting makes its source code follow a consistent layout.

In plain words
What is it for?
Use it to format .hs, .lhs, and .hsig files with Fourmolu, Ormolu, or Stylish Haskell according to project settings.
Why use it?
It avoids hand-formatting disagreements and keeps changed source files aligned with the repository's style before compilation.

Skill for Claude CodeCodex

Written for Claude Code and Codex: PostToolUse hook event, but also installed under .codex/. Also seen: mentions Codex.

This is SoftwareFoundationGroupAtKyotoU/pure-borrow's own configuration. It tells Claude Code and Codex how to work on pure-borrow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pure-borrow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SoftwareFoundationGroupAtKyotoU/pure-borrow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SoftwareFoundationGroupAtKyotoU/pure-borrow/main/.codex/skills/haskell-format/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/SoftwareFoundationGroupAtKyotoU/pure-borrow

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for haskell-format

README.md
[![agentmods](https://agentmods.dev/badge/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-format/github.svg)](https://agentmods.dev/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-format)
Your own site
<a href="https://agentmods.dev/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-format"><img src="https://agentmods.dev/badge/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-format/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for haskell-format

Your own site · 80×15
<a href="https://agentmods.dev/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-format"><img src="https://agentmods.dev/badge/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-format.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 344 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00344
Opus 5.5 $0.00021 $0.00138
Sonnet 5.5 $0.00011 $0.00069
Haiku 4.5 $0.00005 $0.00034

Measured 1mo ago against content hash 6862c4932964, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

haskell-format scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex/skills/haskell-format/SKILL.md · 40 lines

What it actually says

Format Haskell Source

Format Haskell source files with the project's formatter. .cabal and cabal.project* files are handled by the haskell-cabal-gild skill. Always format before compiling.

Choosing The Formatter

Walk up from the file's directory and choose by project config:

  1. fourmolu.yaml or .fourmolu.yaml selects fourmolu.
  2. .stylish-haskell.yaml selects stylish-haskell.
  3. Otherwise use the first available command in this order: fourmolu, ormolu, stylish-haskell.

This project has fourmolu.yaml, so prefer fourmolu when available.

Format In Place

All supported formatters accept -i:

fourmolu -i <file>
ormolu -i <file>
stylish-haskell -i <file>

Project Automation

This repository has shared PostToolUse hooks under .agents/hooks/, wired from Claude/Codex configuration. The Haskell formatting hook formats changed .hs, .lhs, and .hsig files. Re-read files if the hook reports that it changed them.

Companion

Format .cabal and cabal.project* files with the haskell-cabal-gild skill.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 40 lines · 53 tokens per session scan A 6862c4932964

Subscribe to this mod's changes

haskell-format is a skill published in the GitHub repository SoftwareFoundationGroupAtKyotoU/pure-borrow (63 stars, last pushed 1mo ago), licensed BSD-3-Clause. It adds 53 tokens to every session and 344 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.

Related

haskell-format compared with skills from other repositories

haskell-format next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
haskell-formatSoftwareFoundationGroupAtKyotoU/pure-borrowSkill631mo agoBSD-3-ClauseA53Claude Code, Codex
erlang-otp-behaviorsbenchflow-ai/skillsbenchSkill1.9k2d agoApache-2.0A52Claude Code, Codex
omh-rustrlaope/oh-my-hermesSkill5.2kyesterdayMITA74Claude Code, Codex
axiom-concurrencyCharlesWiltgen/AxiomSkill1.3kyesterdayMITA49Claude Code
tddcodewithmukesh/dotnet-claude-kitSkill8052d agoMITA81Claude Code
splitting-oversized-modulesPostHog/posthogSkill41kyesterdaynoneA197Claude Code, Codex
precisemicroprediction/preciseSkill3385d agoMITA76Claude Code, Codex