pure-borrow: Skill for Codex

.codex/skills/hoogle/SKILL.md

hoogle is a skill for Codex from SoftwareFoundationGroupAtKyotoU/pure-borrow. It costs 41 tokens per session (711 once invoked), scanned A, original, BSD-3-Clause.

A search tool for Haskell programming interfaces. Hoogle can find functions by name or by the kinds of inputs and outputs they accept, then show their documentation and module.

In plain words
What is it for?
Use it to look up Haskell functions, search by type, identify the module that exports a function, and read its package documentation.
Why use it?
It reduces time spent searching package source code when you need an unfamiliar function or type signature.

Skill for Codex

Written for Codex: installed under .codex/. Also seen: reads ~/.codex paths; mentions Codex.

This is SoftwareFoundationGroupAtKyotoU/pure-borrow's own configuration. It tells 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/hoogle/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/SoftwareFoundationGroupAtKyotoU/pure-borrow

Made for: 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 hoogle

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/softwarefoundationgroupatkyotou/pure-borrow/hoogle"><img src="https://agentmods.dev/badge/skills/softwarefoundationgroupatkyotou/pure-borrow/hoogle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 711 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.00041 $0.00711
Opus 5.5 $0.00016 $0.00284
Sonnet 5.5 $0.00008 $0.00142
Haiku 4.5 $0.00004 $0.00071

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

Security

Grade A, and why

hoogle 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.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/hoogle-init-db.sh, scripts/hoogle-remote.sh, scripts/hoogle-search.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/hoogle/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hoogle is a Haskell API search engine. Use it to find functions by name or by type signature.

When To Use Hoogle

Use Hoogle when:

  • Working with Haskell code and needing to find a function.
  • Looking up a type signature.
  • Searching for functions that match a type signature, such as a -> b -> a.
  • Finding which module exports a particular function.
  • Looking up documentation for Haskell functions.

Search Methods

Search by function name:

.codex/skills/hoogle/scripts/hoogle-search.sh "map"

Search by type signature:

.codex/skills/hoogle/scripts/hoogle-search.sh "a -> b -> a"

Search with a package filter:

.codex/skills/hoogle/scripts/hoogle-search.sh "+base map"
.codex/skills/hoogle/scripts/hoogle-search.sh "+containers Data.Map.lookup"

Get detailed information for the first result:

.codex/skills/hoogle/scripts/hoogle-search.sh "foldl" --info

Remote search is available when local search is unavailable or insufficient:

.codex/skills/hoogle/scripts/hoogle-remote.sh "map"

Result Shape

The search scripts return JSON:

{
  "results": [
    {
      "url": "https://hackage.haskell.org/package/base/docs/Prelude.html#v:map",
      "module": { "name": "Prelude", "url": "..." },
      "package": { "name": "base", "url": "..." },
      "item": "map :: (a -> b) -> [a] -> [b]",
      "docs": "..."
    }
  ],
  "query": "map",
  "count": 10
}

Key fields are item, docs, module.name, and package.name.

Database Initialization

Before local searching, ensure the Hoogle database exists:

.codex/skills/hoogle/scripts/hoogle-init-db.sh

For project-specific searches, generate a local database from Haddock docs:

.codex/skills/hoogle/scripts/hoogle-init-db.sh --local /path/to/haddock/docs

Common Search Patterns

Goal Query Example
Find function by name filter
Find by exact type (a -> Bool) -> [a] -> [a]
Find in specific package +lens view
Find class methods Monad m => m a -> m b
Find by partial type Map k v -> k -> Maybe v

Read the full file on GitHub · 113 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 113 lines · 41 tokens per session scan A 84c91ef4cf4c

Subscribe to this mod's changes

hoogle is a skill published in the GitHub repository SoftwareFoundationGroupAtKyotoU/pure-borrow (63 stars, last pushed 1mo ago), licensed BSD-3-Clause. It adds 41 tokens to every session and 711 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

hoogle compared with skills from other repositories

hoogle next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hoogleSoftwareFoundationGroupAtKyotoU/pure-borrowSkill631mo agoBSD-3-ClauseA41Codex
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