hs-to-rocq: Command for Claude Code

.claude/commands/ci.md

ci is a command for Claude Code from plclub/hs-to-rocq. It costs 12 tokens per session (3,302 once invoked), scanned A, original, MIT.

A local command that runs the project's build and test checks in the same order as its GitHub Actions workflow. GitHub Actions is a service that automatically runs checks for code changes.

In plain words
What is it for?
It is for running the build job and Coq test jobs locally, then reporting which steps passed or failed.
Why use it?
It helps catch failures on a developer's machine before code is sent to the shared repository or CI system.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

This is plclub/hs-to-rocq's own configuration. It tells Claude Code how to work on hs-to-rocq 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 hs-to-rocq configures →

Reuse

Borrowing it

Nothing to install: this file belongs to plclub/hs-to-rocq. 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/plclub/hs-to-rocq/master/.claude/commands/ci.md
Clone the repo
git clone --depth 1 https://github.com/plclub/hs-to-rocq

Made for: Claude Code.

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 ci

README.md
[![agentmods](https://agentmods.dev/badge/commands/plclub/hs-to-rocq/ci/github.svg)](https://agentmods.dev/commands/plclub/hs-to-rocq/ci)
Your own site
<a href="https://agentmods.dev/commands/plclub/hs-to-rocq/ci"><img src="https://agentmods.dev/badge/commands/plclub/hs-to-rocq/ci/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 ci

Your own site · 80×15
<a href="https://agentmods.dev/commands/plclub/hs-to-rocq/ci"><img src="https://agentmods.dev/badge/commands/plclub/hs-to-rocq/ci.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,302 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.00012 $0.03302
Opus 5.5 $0.00005 $0.01321
Sonnet 5.5 $0.00002 $0.00660
Haiku 4.5 $0.00001 $0.00330

Measured today against content hash b4899e811782, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ci 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 today.

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.

.claude/commands/ci.md · 242 lines

How it starts

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

Run the checks from .github/workflows/hs-to-rocq.yml locally and report their results. This file is the shared command catalog for /ci and /ci-fix. Read the current workflow, .github/actions/setup-hs-to-rocq/action.yml, and the root CLAUDE.md before running it. The commands reproduce the job checks, not Docker setup, permissions, or caching.

Run from the workspace root using relative paths. /ci reports failures; use /ci-fix when repairs are requested.

The argument is: $ARGUMENTS

Select jobs

An empty argument or all selects all seven jobs in this order. Otherwise, select the named workflow job or its legacy alias. If the name is not listed, ask for a valid job name.

Workflow job Local alias Requires build-haskell to pass first
hlint No
build-haskell build No
test-coq-files test-coq No
tests Yes
test-rocq9 Yes
test-rocq9-translation Yes
test-translation Yes

For a single job, also run its prerequisite unless it already passed for the current source state. Report that prerequisite separately. Run jobs sequentially in this checkout: regeneration and compilation share output directories. In particular, never run Rocq tests alongside a Rocq clean or regeneration.

Stop a job at its first failed command and record the command and exit status. Continue independent selected jobs, but mark jobs with failed prerequisites as BLOCKED. Run multi-command blocks in fail-fast Bash as shown; keep nonzero statuses visible.

Verify prerequisites and protect local work

Inspect git status --short, git diff, and git diff --cached before running checks. Builds write artifacts, and clean/regeneration steps remove or replace output trees. Before those steps, inspect the relevant Makefile's clean rule and all affected paths, including untracked files. If they contain user work, stop that job and ask how to preserve it. Leave unrelated changes and the index intact; do not automatically stash, reset, stage, or commit.

Read the full file on GitHub · 242 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. today Changed · +96 lines · +1 tokens per session b4899e811782
  2. 1mo ago First seen · 146 lines · 11 tokens per session scan A 295044cdde0e

Subscribe to this mod's changes

ci is a command published in the GitHub repository plclub/hs-to-rocq (96 stars, last pushed yesterday), licensed MIT. It adds 12 tokens to every session and 3,302 once invoked, about $0.0000 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-09-01.