bump-cabal-index-state

Update Cabal project index-state timestamps and verify with a build.

3|1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/ncaq/konoka --skill bump-cabal-index-state
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bump-cabal-index-state
Source: https://github.com/ncaq/konoka/tree/main/plugins/bump-cabal-index-state/skills/bump-cabal-index-state
Command: npx skills add https://github.com/ncaq/konoka --skill bump-cabal-index-state

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the process of updating a Cabal project's index-state to the most recent timestamp, eliminating manual edits and potential drift in builds.

Core Features & Use Cases

  • Fetches the latest index-state via cabal update and applies it to cabal.project or related files.
  • Creates a dedicated branch, commits the change with a standardized message, and prompts for a PR.
  • Validates the update by performing a build with nix-fast-build or cabal build to ensure compatibility.

Quick Start

Run the update flow to fetch the latest index-state and apply it to cabal.project.

Frequently Asked Questions about bump-cabal-index-state

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update Cabal index-state to the latest timestamp?

To update the Cabal index-state, the skill automates extraction of the latest timestamp from cabal update output and applies it directly to cabal.project files, eliminating manual edits and preventing build drift.

Why does my Haskell build fail due to an outdated index-state?

Haskell builds fail with outdated index-state values due to dependency resolution drift. Refreshing the index-state ensures reliable builds by syncing your project with the most recent package availability.

Can I use this to bump index-state in nix-based Haskell projects?

Yes, you can bump index-state in nix-based Haskell projects. The process updates relevant nix-related configuration files alongside cabal.project and verifies compatibility using nix-fast-build.

What is the best way to automate Cabal project configuration updates?

The best way to automate Cabal project configuration updates is to extract the new index-state from cabal update, apply it to configuration files, create a dedicated branch, and verify the change with a build.

How do I verify a Cabal index-state change doesn't break my build?

To verify a Cabal index-state change doesn't break your build, perform a subsequent build using nix-fast-build or cabal build. This validation step ensures compatibility after updating the configuration.