bump-cabal-index-state

bump-cabal-index-state is a skill for Claude Code from ncaq/konoka. It costs 30 tokens per session (1,199 once invoked), scanned A, original, Apache-2.0.

A procedure for updating a Cabal project's index-state, which pins the package repository to a specific snapshot in time. Cabal is the build and package-management tool for Haskell projects.

In plain words
What is it for?
Use it when a Haskell project's Cabal index-state needs a newer timestamp. The procedure includes creating a branch, running cabal update, changing the project setting, and building or checking the project.
Why use it?
An old package snapshot can prevent a project from using current dependencies or matching the intended build state. Updating it keeps the project index reference current.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it when a Haskell project's Cabal index-state needs a newer timestamp. The procedure includes creating a branch, running cabal update, changing the project setting, and building or checking the project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ncaq/konoka/bump-cabal-index-state
View source ↗ ncaq/konoka
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.

Any agent
npx skills add ncaq/konoka --skill bump-cabal-index-state
Clone the repo
git clone --depth 1 https://github.com/ncaq/konoka

Made for: Claude Code.

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 bump-cabal-index-state

README.md
[![agentmods](https://agentmods.dev/badge/skills/ncaq/konoka/bump-cabal-index-state/github.svg)](https://agentmods.dev/skills/ncaq/konoka/bump-cabal-index-state)
Your own site
<a href="https://agentmods.dev/skills/ncaq/konoka/bump-cabal-index-state"><img src="https://agentmods.dev/badge/skills/ncaq/konoka/bump-cabal-index-state/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 bump-cabal-index-state

Your own site · 80×15
<a href="https://agentmods.dev/skills/ncaq/konoka/bump-cabal-index-state"><img src="https://agentmods.dev/badge/skills/ncaq/konoka/bump-cabal-index-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,199 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.00030 $0.01199
Opus 5.5 $0.00012 $0.00480
Sonnet 5.5 $0.00006 $0.00240
Haiku 4.5 $0.00003 $0.00120

Measured 5d ago against content hash 4579b14084ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bump-cabal-index-state 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 5d 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/bump-cabal-index-state/SKILL.md · 132 lines

How it starts

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

cabalプロジェクトのindex-stateを最新に更新します。 動作確認が成功したらコミットし、GitHubを利用している場合はプルリクエストも作成します。

ブランチの作成

プルリクエストの作成に備えてブランチを作成します。

git switch -c bump-cabal-index-state

cabal updateの実行

cabal update

出力のThe index-state is set toの行から、最新のindex-stateのタイムスタンプを取得します。

Downloading the latest package list from hackage.haskell.org
Package list of hackage.haskell.org is up to date.
The index-state is set to 2026-01-11T09:48:01Z.

index-stateの更新

index-stateは通常はcabal.projectにindex-state: YYYY-MM-DDTHH:mm:ssZの形式で書かれています。 この日時を、取得したタイムスタンプに書き換えます。

index-state:と日時の間に、hackage.haskell.orgのようなドメインの指定が入っていることも稀にあります。

cabal.projectに書かれていない場合は、 cabal.project.localやflake.nixなどに書かれていることがあるので、探して更新します。

動作確認

Nixを使用しているプロジェクトでは、以下のコマンドを実行します。

nix flake check

Nixを使用していないプロジェクトでは、以下のコマンドを実行します。

cabal build --disable-optimization --enable-tests all

haskell.nixを使用している場合の遅れへの対応

haskell.nixは最新のindex-stateへの対応が遅れるので、 最新のindex-stateを指定すると以下のようなエラーになることがあります。

> Error: [Cabal-7159]
> Latest known index-state for 'hackage.haskell.org' (2026-01-05T23:03:18Z) is older than the requested index-state (2026-01-11T18:45:48Z).
> Run 'cabal update' or set the index-state to a value at or before 2026-01-05T23:03:18Z.

このエラーが出た場合は、エラーメッセージに表示されている、 haskell.nixが認識している最新の値(この例では2026-01-05T23:03:18Z)にindex-stateを書き換えて、 もう一度動作確認を行います。

コミット

動作確認が成功したらコミットします。 成功しなかった場合は、コミットせずに完了報告へ進みます。

コミットメッセージのタイトルはbuild(deps): cabalのindex-stateを更新です。 本文は以下のテンプレートから作ります。

`cabal.project`の`index-state`を`YYYY-MM-DDTHH:mm:ssZ`に更新しました。
  • cabal.projectは、実際に更新したファイル名に置き換えます。
  • YYYY-MM-DDTHH:mm:ssZは、新しいindex-stateに置き換えます。
  • ドメインの指定がある場合は、index-stateの前に、 更新したドメイン(hackage.haskell.orgなど)をスペースで囲んで追加します。

プルリクエストの作成

以下のコマンドで、GitHubを利用しているかを確認します。 GitHubを利用していない場合は、この手順を飛ばします。

git remote --verbose

GitHubを利用している場合は、リモートリポジトリにプッシュしてから、プルリクエストを作成します。

git push --verbose --set-upstream origin

Read the full file on GitHub · 132 lines

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. 5d ago Changed · -19 lines 4579b14084ee
  2. 14d ago Changed · +18 lines 8c88c6a4355d
  3. 3mo ago First seen · 133 lines · 30 tokens per session scan A a1bfabf3e09b

Subscribe to this mod's changes

bump-cabal-index-state is a skill published in the GitHub repository ncaq/konoka (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 30 tokens to every session and 1,199 once invoked, about $0.0001 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-08-31.

Related

bump-cabal-index-state compared with skills from other repositories

bump-cabal-index-state next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bump-cabal-index-statencaq/konokaSkill3yesterdayApache-2.0A30Claude Code
better-authsecondsky/claude-skillsSkill2573d agoMITA53Claude Code
hono-routingsecondsky/claude-skillsSkill2573d agoMITA41Claude Code
bun-bundlersecondsky/claude-skillsSkill2573d agoMITA90Claude Code
bun-hot-reloadingsecondsky/claude-skillsSkill2573d agoMITA42Claude Code
bun-ffisecondsky/claude-skillsSkill2573d agoMITA56Claude Code
cloudflare-workers-multi-langsecondsky/claude-skillsSkill2573d agoMITA45Claude Code