bracket

bracket is a skill for Claude Code, Codex from ncaq/konoka. It costs 37 tokens per session (240 once invoked), scanned A, original, Apache-2.0.

A Haskell coding guide for using bracket-style resource handling. The bracket pattern acquires a resource, uses it, and releases it even when an exception occurs.

In plain words
What is it for?
Use it when writing or reviewing Haskell code that opens files, starts asynchronous work, or manages other resources that must be released.
Why use it?
It prevents cleanup code from being skipped and keeps acquisition and release logic together. It also recommends library functions built around the same pattern when available.

Skill for Claude CodeCodex

Part of the haskell-tasuke plugin — 19 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ncaq/konoka/bracket
Any agent
npx skills add ncaq/konoka --skill bracket
Clone the repo
git clone --depth 1 https://github.com/ncaq/konoka

Made for: Claude Code, Codex.

Or install haskell-tasuke, the plugin that ships this one along with the rest of its 19 skills.

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 bracket

README.md
[![agentmods](https://agentmods.dev/badge/skills/ncaq/konoka/bracket.svg)](https://agentmods.dev/skills/ncaq/konoka/bracket)
Your own site
<a href="https://agentmods.dev/skills/ncaq/konoka/bracket"><img src="https://agentmods.dev/badge/skills/ncaq/konoka/bracket.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 240 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00037 $0.00240
Opus 5 $0.00018 $0.00120
Sonnet 5 $0.00007 $0.00048
Haiku 4.5 $0.00004 $0.00024

Measured 3d ago against content hash aef08609a5b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bracket 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 3d 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.

plugins/haskell-tasuke/skills/bracket/SKILL.md · 31 lines

What it actually says

bracketによるリソース管理

bracketで書ける時はそれを使う

bracketを使うと、 例外が発生した場合でもリソースの解放を確実に行えます。

bracketでリソースの解放処理が書ける時はそちらを使ってください。

わざわざバラバラのdoブロックで書かないでください。

出来る限りwithパターンの関数を使う

ライブラリにはbracket関数の特化型である関数がしばしば存在します。

例えば、

withAsync :: MonadUnliftIO m => m a -> (Async a -> m b) -> m b

などの関数です。

存在するならばそれを優先します。

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. 3d ago First seen · 31 lines · 37 tokens per session scan A aef08609a5b0

Subscribe to this mod's changes

bracket is a skill published in the GitHub repository ncaq/konoka (3 stars, last pushed 5d ago), licensed Apache-2.0. It adds 37 tokens to every session and 240 once invoked, about $0.0002 per session on Opus 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-08-31.

Related

Other skills, from other repositories

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens

plano-agent-orchestration

Improve multi-agent orchestration in Plano. Use for agent registration, agent listener wiring, and capability-focused agent descriptions for accurate routing.

katanemo/plano · 33 tokens

plano-filter-guardrails

Harden Plano filter chains and guardrails. Use for MCP filter setup, prompt guard responses, and safe filter ordering.

katanemo/plano · 31 tokens

veo-3.2-prompter

Expert prompt engineering for Google Veo 3.2 (Artemis engine). Use when the user wants to generate a video with Veo 3.2, needs help crafting cinematic prompts, or mentions Veo, Google video generation, or Artemis engine.

pexoai/pexo-skills · 63 tokens

ads-linkedin

Audit LinkedIn Ads measurement, Insight Tag and conversions, professional audiences, lead generation, ABM, creative, bidding, budgets, pacing, automation, and policy. Use for LinkedIn Ads, Campaign Manager, Insight Tag, Lead Gen Forms, Thought Leader Ads, ABM campaigns, or B2B paid media.

AgriciDaniel/claude-ads · 68 tokens

ads-launch

Draft or explicitly apply a paid-ad campaign launch through Claude Ads capability-gated adapters. Use for campaign creation, launch plans, publishing ads, activating campaigns, uploading creative, or requests to push a campaign live.

AgriciDaniel/claude-ads · 45 tokens