lukehsiao/dotfiles/hegel
Claude Code and agent skill by lukehsiao/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Write property-based tests using Hegel across Rust, Go, C++, TypeScript, Java, and OCaml projects. Use this skill whenever the user asks to write tests, add test coverage, or improve testing for functions, modules, or libraries — especially when the code has properties like round-trips, invariants, or contracts that hold across many inputs. Also triggers on hegel, property-based testing or PBT, and fuzzing or shrinking by name, and when existing tests use proptest, quickcheck, rapid, gopter, ra…
Install
npx vskill@latest install lukehsiao/dotfiles/hegelSKILL.md
The same SKILL.md was published earlier as hegeldev/hegel-skill/hegel.
Hegel: property-based testing
Hegel generates random inputs for your code and shrinks failing cases to minimal counterexamples. Libraries exist for Rust (hegeltest), Go, C++, TypeScript, Java, and OCaml, all integrating with the standard test runner.
Learn the API from, in order: existing hegel tests in this repo, the library's documentation, and the hegel library source available in your environment (vendored or registry copy). Check the exact name and signature of everything you use. Do not guess syntax.
Ground every property in evidence — documented contracts, names and signatures, invariants the code itself asserts, existing tests. An undocumented but ordinary expectation (a round-trip, two equivalent spellings agreeing, a rescaled input giving the same answer) is evidence too: name the expectation, and when such a test fails, judge the failure by whether the behavior is defensible, not by whether anything promised it. Write one property per test, in the project's existing test files.
Techniques
Short, specific guides in this skill's techniques/ directory. Load one when you reach that stage, when you are stuck, or when a result surprises you:
techniques/surfaces.md— choosing what to test: the full public API, sibling entry points, every instantiationtechniques/directions.md— accept- and reject-direction properties; oracles that pin values, not just validitytechniques/generators.md— generators: full domains, hostile inputs, targeted subsetstechniques/scale.md— the scale probe for recursion and complexity bugstechniques/running.md— case counts and run configurationtechniques/triage.md— investigating failures and reporting honestlytechniques/adversarial-review.md— before finishing, a subagent reviews the code for missing properties you cannot see
Before you finish
Three steps, each required; skipping one leaves the job undone.
- Surface coverage. Re-check your surface list (
techniques/surfaces.md) against the library's public API index: every public module, and every sibling entry point and instantiation of a surface you tested, gets a test or a stated reason. Then check each tested surface against the technique menu above — anything unchecked gets a stated reason.
- Adversarial review by a subagent. Launch a separate subagent to find the properties you missed. Give it the implementation and the contract, but not your tests — a reviewer holding your tests inherits your blind spots, which is the whole point of using a fresh agent. Write what it returns as hegel properties, run them, and fix what they catch.
techniques/adversarial-review.mdhas the brief.
- Checklist. Review what you wrote against the
hegel-reviewchecklist.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdot_claude/skills/hegel/SKILL.md
Popularity
- Repository stars
- 8
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lukehsiao/dotfiles/hegel)