pure-borrow: Skill for Claude Code

.codex/skills/haskell-cabal-gild/SKILL.md

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

A formatter for Haskell package and Cabal project files. Cabal is Haskell's tool for describing packages, dependencies, and build settings.

In plain words
What is it for?
Use it to format .cabal and cabal.project files, check their formatting without writing changes, and refresh module lists marked for discovery.
Why use it?
It keeps dependency lists, project layout, and generated module lists consistent, reducing formatting and build-configuration errors.

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-cabal-gild/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-cabal-gild

README.md
[![agentmods](https://agentmods.dev/badge/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-cabal-gild/github.svg)](https://agentmods.dev/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-cabal-gild)
Your own site
<a href="https://agentmods.dev/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-cabal-gild"><img src="https://agentmods.dev/badge/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-cabal-gild/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-cabal-gild

Your own site · 80×15
<a href="https://agentmods.dev/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-cabal-gild"><img src="https://agentmods.dev/badge/skills/softwarefoundationgroupatkyotou/pure-borrow/haskell-cabal-gild.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 386 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.00068 $0.00386
Opus 5.5 $0.00027 $0.00154
Sonnet 5.5 $0.00014 $0.00077
Haiku 4.5 $0.00007 $0.00039

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

Security

Grade A, and why

haskell-cabal-gild 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-cabal-gild/SKILL.md · 53 lines

What it actually says

cabal-gild

cabal-gild formats Haskell package descriptions and cabal project files. It normalizes layout, sorts and deduplicates build-depends, and can refresh module lists generated by -- cabal-gild: discover pragmas.

Format In Place

Run on each touched cabal/project file:

cabal-gild --io <file>

Format before compiling.

Check Without Writing

Use check mode to verify formatting without changing files:

cabal-gild -m check --io <file>

Auto-Discovered Module Lists

If a .cabal file contains a pragma like this:

-- cabal-gild: discover src
exposed-modules:

rerun cabal-gild --io <pkg>.cabal after adding or removing modules.

Project Automation

This repository has shared PostToolUse hooks under .agents/hooks/, wired from Claude/Codex configuration.

  • A changed .cabal or cabal.project* file is formatted with cabal-gild --io.
  • A changed .hs, .lhs, or .hsig file refreshes the nearest enclosing .cabal file only if it uses a -- cabal-gild: discover pragma.

Re-read files if the hook reports that it changed them.

Companion

Format Haskell source files with the haskell-format 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 · 53 lines · 68 tokens per session scan A f03b64a73c73

Subscribe to this mod's changes

haskell-cabal-gild is a skill published in the GitHub repository SoftwareFoundationGroupAtKyotoU/pure-borrow (63 stars, last pushed 1mo ago), licensed BSD-3-Clause. It adds 68 tokens to every session and 386 once invoked, about $0.0003 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-cabal-gild compared with skills from other repositories

haskell-cabal-gild next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
haskell-cabal-gildSoftwareFoundationGroupAtKyotoU/pure-borrowSkill631mo agoBSD-3-ClauseA68Claude 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