Rocq build troubleshoot

From formal-land/rocq-of-rust · View interactive version

Rocq build troubleshoot is an AI agent skill from the GitHub repository formal-land/rocq-of-rust. Fast workflow to diagnose and fix Rocq/Coq compile errors in this repository, especially missing imports after links/simulate splits and per-file compile checks.

How to use this skill

Skill file

Rocq Build Troubleshoot

Use this skill when a .v file fails to compile and the goal is a minimal targeted fix.

Scope

Workflow

  1. Reproduce exactly:
coqc -R . RocqOfRust -impredicative-set path/to/file.v
  1. If error references missing module/loadpath:
  1. If error is argument-order/type mismatch in run_* call:
  1. If Range literals fail type inference:
{|
  Range.start := (0 : usize);
  Range.end_ := (0 : usize)
|}
  1. Recompile touched file(s):
coqc -R . RocqOfRust -impredicative-set path/to/file.v
  1. Optional dependency sanity check:
make path/to/file.vo

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.