bump-cabal-index-state

bump-cabal-index-state is a skill for Claude Code from ncaq/konoka. It costs 30 tokens per session (1,169 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,169 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.01169
Opus 5 $0.00015 $0.00584
Sonnet 5 $0.00006 $0.00234
Haiku 4.5 $0.00003 $0.00117

Measured 11d ago against content hash a1bfabf3e09b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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 · 133 lines

How it starts

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

cabalプロジェクトのindex-stateを最新に更新します。

手順

ブランチの作成

PR作成に備えてブランチを作成します。

git switch -c bump-cabal-index-state

cabal updateの実行

cabal update

cabal updateの出力から最新の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の更新

通常はcabal.projectファイルに書かれているindex-stateを更新します。

フォーマット: index-state: YYYY-MM-DDTHH:mm:ssZ

index-stateと日時の間にURLが入っていることも稀にあります。

もしcabal.projectに書いていないなら、 cabal.project.localflake.nixなどに書かれている場合があります。 探して更新してください。

動作確認

プロジェクトのビルドシステムに応じて動作確認を行います。

Nixを使用している場合は以下のコマンドを実行してください。

nix flake check

Nixを使用していない場合は以下のコマンドを実行してください。

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

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

haskell.nixは最新のindex-stateへの対応に遅れがあります。 そのため最新の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.

このエラーが出た場合は、 エラーメッセージに記載されている最新の値を使用してください。

変更した後に再度動作確認を行ってください。

Gitにコミット

動作確認が成功したらGitにコミットしてください。 動作確認が成功しなければコミットは行わないで完了報告に進んでください。

コミットメッセージのタイトルは、 build(deps): cabalのindex-stateを更新 です。

本文は以下のテンプレートに従ってください。

`cabal.project`の`index-state`を`YYYY-MM-DDTHH:mm:ssZ`に更新しました。

このテンプレートを置き換えて本文を作成してください。

cabal.projectは実際に更新したファイル名に置き換えてください。 大抵はcabal.projectそのままです。

YYYY-MM-DDTHH:mm:ssZは実際の新しいindex-stateに置き換えてください。

ドメイン指定がある場合はindex-stateの前にスペースで囲んで、 hackage.haskell.orgのように更新したドメインを追加してください。

GitHubにプルリクエストを作成する

まずGitHubを利用しているか確認してください。 GitHubを利用していない場合はこの手順をスキップしてください。

GitHubを利用している場合は以下のGitコマンドでリモートリポジトリにプッシュしてください。

git push --verbose --set-upstream origin

Read the full file on GitHub · 133 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. 11d 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 today), licensed Apache-2.0. It adds 30 tokens to every session and 1,169 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

better-auth

Skill for integrating Better Auth - comprehensive TypeScript authentication framework for Cloudflare D1, Next.js, Nuxt, and 15+ frameworks. Use when adding auth, encountering D1 adapter errors, or implementing OAuth/2FA/RBAC features.

secondsky/claude-skills · 53 tokens

bun-bundler

This skill should be used when the user asks about "bun build", "Bun.build", "bundling with Bun", "code splitting", "tree shaking", "minification", "sourcemaps", "bundle optimization", "esbuild alternative", "building for production", "bundling TypeScript", "bundling for browser", "bundling for Node", or…

secondsky/claude-skills · 90 tokens

bun-ffi

This skill should be used when the user asks about "bun:ffi", "foreign function interface", "calling C from Bun", "native libraries", "dlopen", "shared libraries", "calling native code", or integrating C/C++ libraries with Bun.

secondsky/claude-skills · 56 tokens

bun-hot-reloading

Use when implementing hot reloading with Bun (--hot, --watch), HMR, or automatic code reloading during development. Covers watch mode, hot mode, and HTTP server reload.

secondsky/claude-skills · 42 tokens

cloudflare-workers-multi-lang

Multi-language Workers development with Rust, Python, and WebAssembly. Use when building Workers in languages other than JavaScript/TypeScript, or when integrating WASM modules for performance-critical code.

secondsky/claude-skills · 45 tokens

test-driven-development

Strict red-green-refactor TDD workflow for implementing features, fixing bugs, or changing behavior in Rails applications. Enforces the discipline of writing a failing test before any production code. Use whenever you want to implement with TDD — whether a new feature, a bugfix, a refactor, or any behavior change.

thoughtbot/rails-consultant · 68 tokens