Agent skill

Add Cheatcode

by runtimeverification in runtimeverification/kontrol

Add a new Foundry cheatcode to Kontrol (K rules, selector, Solidity test, CI registration).

BSD-3-ClauseAuto-check passedBackend & APIs

Install Add Cheatcode

skills CLI
$ npx skills add runtimeverification/kontrol --skill add-cheatcode -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install runtimeverification/kontrol add-cheatcode --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/runtimeverification/kontrol.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-cheatcode .claude/skills/add-cheatcode && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-cheatcode
GitHub stars
125
Token cost
~903 tokens
SKILL.md length
366 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Add a new Foundry cheatcode to Kontrol (K rules, selector, Solidity test, CI registration).

  • Works in 8 steps: Add the cheatcode section in… → Add the selector rule in the implemented… → Extend the subconfiguration (at the top… → …
  • Implementing a new vm
  • Calls make
  • Tasks that involve Smart contracts

What it does

Add Cheatcode is an agent skill from runtimeverification/kontrol. Add a new Foundry cheatcode to Kontrol (K rules, selector, Solidity test, CI registration). Use when implementing a new vm. or Kontrol-proprietary cheatcode.

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Smart contracts. It works with Solidity. The licence is BSD-3-Clause.

When your agent uses it

  • Implementing a new vm
  • Tasks that involve Smart contracts

Example prompts

  • “/add-cheatcode”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Add the cheatcode section in src/kontrol/kdist/cheatcodes.md, in the appropriate location among the other cheatcode rules.
  2. Add the selector rule in the implemented selectors list
  3. Extend the subconfiguration (at the top of cheatcodes.md) if the implementation requires storing new state across calls.
  4. Add Solidity tests in src/tests/integration/test-data/test/.
  5. Register tests in src/tests/integration/test-data/
  6. Rebuild using the /build skill, then run the new tests under the end-to-end suite
  7. If this is a Kontrol-proprietary cheatcode (not a standard Foundry vm.* cheatcode): notify the user that the cheatcode interface must also…
  8. Update CLAUDE.md: add a row for the new cheatcode in the appropriate table (Foundry cheatcodes or Kontrol-proprietary cheatcodes) under…

What it can do on your machine

Read from SKILL.md and the folder at commit 1649663. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Cheatcode loads about 903 tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 366 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~903

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from runtimeverification/kontrol at commit 1649663, republished under its BSD-3-Clause licence (© runtimeverification). 366 words, ~903 tokens.

Download SKILL.mdSave it as .claude/skills/add-cheatcode/SKILL.md (or your agent's skills folder).
name
add-cheatcode
description
Add a new Foundry cheatcode to Kontrol (K rules, selector, Solidity test, CI registration). Use when implementing a new vm.* or Kontrol-proprietary cheatcode.
argument-hint
<cheatcode_signature>

Add a new Foundry cheatcode to Kontrol. The cheatcode to implement is: $ARGUMENTS

Follow these steps:

  1. Add the cheatcode section in src/kontrol/kdist/cheatcodes.md, in the appropriate location among the other cheatcode rules. Follow the documentation style of adjacent sections (header, Solidity signature block, prose explanation, K rule).

    K rule template:

    k
        rule [cheatcode.call.<name>]:
             <k> #cheatcode_call SELECTOR ARGS => .K ... </k>
             <output> _ => #bufStrict(32, /* result */) </output>
          requires SELECTOR ==Int selector ( "<cheatcode_signature>" )
          [preserves-definedness]

    ABI-encoded ARGS: each parameter occupies 32 bytes. As example, #asWord(#range(ARGS, N*32, 32)) for the Nth argument (0-indexed). If the cheatcode writes state instead of returning a value, omit <output> and write to the appropriate configuration cell.

  2. Add the selector rule in the implemented selectors list:

    k
    rule ( selector ( "<cheatcode_signature>" ) => <computed_selector_int> )

    Compute the decimal selector with ./scripts/selector "<cheatcode_signature>". If the cheatcode was previously in the non-implemented list, move it instead of duplicating it.

  3. Extend the subconfiguration (at the top of cheatcodes.md) if the implementation requires storing new state across calls. Document any new cell with a comment explaining its purpose.

  4. Add Solidity tests in src/tests/integration/test-data/test/. Check first whether a test already exists. Naming: <CheatcodeName>.t.sol, contract <CheatcodeName>Test.

    Choose the test strategy based on what the cheatcode affects:

    • Assertion-testable (effect visible at Solidity level): use assert* calls directly. Example: computeCreateAddress can predict a value and assert it matches.
    • KCFG-testable (effect is on proof structure, not a runtime value): use a golden expected-output file in test-data/show/. Examples: forgetBranch (removes a branch), symbolic variable renaming (changes KCFG node labels), console.log (emits output not visible to assertions). Add the test to end-to-end-prove-show so the snapshot is captured and compared on each run.
  5. Register tests in src/tests/integration/test-data/:

    • Add passing signatures to end-to-end-prove-all
    • Add expected-failure signatures to foundry-fail (if any)
    • Remove from end-to-end-prove-skip if present
  6. Rebuild using the /build skill, then run the new tests under the end-to-end suite:

    bash
    make test-integration TEST_ARGS="-k 'test_kontrol_end_to_end and <TestClass>'"
  7. If this is a Kontrol-proprietary cheatcode (not a standard Foundry vm.* cheatcode): notify the user that the cheatcode interface must also be added to the runtimeverification/kontrol-cheatcodes repository, and that this must be done as a separate PR there.

  8. Update CLAUDE.md: add a row for the new cheatcode in the appropriate table (Foundry cheatcodes or Kontrol-proprietary cheatcodes) under the ## Cheatcodes: Foundry vs Kontrol-proprietary section. Follow the format of existing rows: | \signature` | purpose |`.

Show full SKILL.md (12 more words)Show less

After all steps, summarise what was added and which files were changed.

© runtimeverification, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/add-cheatcode of runtimeverification/kontrol.

Open the folder on GitHubat commit 1649663

Compare with similar skills

Add Cheatcode next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Cheatcode compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Cheatcode this skillruntimeverification/kontrol125—~903Automated safety check: PassBSD-3-Clause
Fizz Convertpashov/skills1.2k2 repos~3.7kAutomated safety check: PassMIT
Feynman Auditor0xiehnnkta/nemesis-auditor2441 repos~11kAutomated safety check: PassMIT
Smart Contract Auditgreatpie/smart-contract-audit-skill101—~1.1kAutomated safety check: PassNone
RadarAuditware/radar154—~2.1kAutomated safety check: PassGPL-3.0
Solidity AuditorGabson0x/bountyforge443—~3.7kAutomated safety check: PassNone

Similar skills

  • Fizz Convert

    pashov/skills

    Convert English-language properties in PROPERTIES.md (produced by the Fizz skill) into Solidity assertions inside the existing fuzz harness, then flip their checkboxes.

    1.2k GitHub starsUsed in 2 repos~3.7k tokens
    Backend & APIsAuto-check passed
  • Feynman Auditor

    0xiehnnkta/nemesis-auditor

    Deep business logic bug finder using the Feynman technique. An agent skill from 0xiehnnkta/nemesis-auditor.

    244 GitHub starsUsed in 1 repo~11k tokens
    Backend & APIsAuto-check passed
  • Smart Contract Audit

    greatpie/smart-contract-audit-skill

    Script-backed, out-of-box auditing workflow for Solidity/EVM repositories based on EVMbench detect/patch/exploit methodology.

    101 GitHub stars~1.1k tokensUpdated 7 mo ago
    Backend & APIsAuto-check passed
  • Radar

    Auditware/radar

    Use radar for smart contract security analysis, AST generation, and detection template development.

    154 GitHub stars~2.1k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Solidity Auditor

    Gabson0x/bountyforge

    Security audit of Solidity code while you develop. An agent skill from Gabson0x/bountyforge.

    443 GitHub stars~3.7k tokensUpdated 20 days ago
    Backend & APIsAuto-check passed
  • Add Explorer

    lidofinance/diffyscan

    Adds or repairs Diffyscan explorer API routing and response adapters for a new host, chain or payload format.

    142 GitHub stars~1k tokensUpdated yesterday
    Backend & APIsAuto-check passed

More from runtimeverification/kontrol

  • Writing Kontrol Lemmas

    runtimeverification/kontrol

    A skill your agent uses when kontrol prove leaves pending leaves in the KCFG, times out during simplification, or fails to reduce bitwise, keccak, Map, or bool2Word terms — and the fix needs a new K…

    125 GitHub stars~5.2k tokensUpdated 2 days ago
    Auto-check passed
  • Update Expected Output

    runtimeverification/kontrol

    Update expected output golden files for integration test suites.

    125 GitHub stars~275 tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Add Cheatcode

What does Add Cheatcode do?

Add a new Foundry cheatcode to Kontrol (K rules, selector, Solidity test, CI registration). Add Cheatcode is an agent skill from runtimeverification/kontrol. Add a new Foundry cheatcode to Kontrol (K rules, selector, Solidity test, CI registration).

When should I use Add Cheatcode?

Add Cheatcode fits situations like: implementing a new vm; tasks that involve Smart contracts.

How do I install Add Cheatcode in Claude Code?

Run `npx skills add runtimeverification/kontrol --skill add-cheatcode -a claude-code`. Or copy the skill folder (.claude/skills/add-cheatcode in runtimeverification/kontrol) into .claude/skills/add-cheatcode in your project. Claude Code loads it when a task matches its description.

How do I install Add Cheatcode in Codex?

Run `npx skills add runtimeverification/kontrol --skill add-cheatcode -a codex`. Or copy the skill folder (.claude/skills/add-cheatcode in runtimeverification/kontrol) into .agents/skills/add-cheatcode in your project. Codex loads it when a task matches its description.

Can I use Add Cheatcode in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add runtimeverification/kontrol --skill add-cheatcode -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-cheatcode, .gemini/skills/add-cheatcode, .github/skills/add-cheatcode and .opencode/skills/add-cheatcode in your project.

What does Add Cheatcode need to run?

Going by SKILL.md and its folder, Add Cheatcode needs the command-line tools its instructions call (make).

Does Add Cheatcode access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Add Cheatcode safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add Cheatcode use?

Add Cheatcode is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Cheatcode use?

About 903 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Cheatcode?

Skills that share tags, products or a category with Add Cheatcode: Fizz Convert (pashov/skills, 1.2k stars), Feynman Auditor (0xiehnnkta/nemesis-auditor, 244 stars), Smart Contract Audit (greatpie/smart-contract-audit-skill, 101 stars) and Radar (Auditware/radar, 154 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Cheatcode?

runtimeverification (a GitHub organization) maintains it in runtimeverification/kontrol, which has 125 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 5, 2026.

Source: runtimeverification/kontrol on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.