web3-universalmutator
Skill0 starsChanged 17 days agoMITView on GitHub
Use when the user specifically wants Web3 smart-contract mutation testing with Universal Mutator for TON or EVM projects: TON/Blueprint/Acton using Tact, Tolk, FunC; Solidity/EVM using Solidity, Vyper, Fe with Foundry, Hardhat, Truffle, or source-level workflows. Do not use for pure fuzzing, input generation, standalone Web3 audits, or generic non-Web3 Universal Mutator runs unless comparing fuzzing with mutation testing.
In this repository10 other files it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
63 rules. About 0 are common, 36 are distinctive, and 27 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈36
Distinctive · estimate
This author's own choices. Worth a look.
27
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Do not use this skill for non-Web3 Universal Mutator runs, pure fuzzing, input generation, or standalone Web3 audit workflows unless the …
- Distinctive: line 17
If the repository is Rust, Go, Python, Java, Swift, R, Fortran, TypeScript-only, or another non-Web3 codebase, stop after detection and say …
- Distinctive: line 47
When running from outside the skill directory, keep skill and target repo paths explicit:
- Distinctive: line 58
Default Web3 mutation campaigns are entrypoint-first.
- Very specific: line 60
Always enumerate shared dependency files such as messages, storage, errors, fees, constants, utils, libraries, interfaces, and include …
- Very specific: line 62
Do not describe an entrypoint-focused campaign as full directory coverage.
- Distinctive: line 66
Read references/safety.md before any run that might swap source files, write mutant directories, or reuse a dirty tree.
- Distinctive: line 68
Verify the installed Universal Mutator commands, language support, and local flag surface before writing language-specific commands.
- Very specific: line 75
Treat planned mutate and analyze_mutants commands as templates until scripts/detect_um_capabilities.py confirms the command, language, and …
- Distinctive: line 76
Run the generated preflight steps.
- Very specific: line 77
Do not run mutate or analyze_mutants in parallel inside the same project checkout.
- Distinctive: line 79
Run the initial mutate command first so Universal Mutator performs its default compile check.
- Very specific: line 80
If the default compile check fails because direct language compilers such as tolk-js, tact, func-js, or Solidity tooling are missing or not …
- Very specific: line 81
Create or update mutants/REPORT.md after mutation generation with the target, commands, total mutants, and non-compiling mutants.
- Very specific: line 82
Run analyze_mutants only after mutation generation produces compilable mutants, using the planned narrow test command rather than the whole …
- Very specific: line 83
Update mutants/REPORT.md after analysis with killed, survived, timeout, compile-error, and flaky counts, then add survivor interpretation …
- Very specific: line 87
Read references/safety.md before mutation runs in a live repository, especially when analyze_mutants may temporarily swap mutated files …
- Distinctive: line 88
Read references/project-detection.md first when the repository type is unclear.
- Distinctive: line 89
Read references/command-templates.md when you need preflight, smoke, full-run, survivor-rerun, or timeout-triage command scaffolds.
- Very specific: line 90
Read references/cli.md for Web3 Universal Mutator commands, documented flags, output handling, --swap, and concurrent-run recipes.
- Distinctive: line 91
Read references/ton.md when the repository appears to be TON, Acton, Blueprint, FunC, Tolk, Tact, or a TypeScript-based TON wrapper project.
- Distinctive: line 92
Read references/evm.md when the repository appears to be Foundry, Hardhat, Truffle, Solidity, Vyper, Fe, or a mixed EVM monorepo.
- Distinctive: line 93
Read references/ton-contract-checklists.md when survivors need contract-type-specific test ideas for jettons, wallets, bridges, governance, …
- Distinctive: line 94
Read references/evm-contract-checklists.md when EVM survivors need contract-type-specific test ideas for tokens, vaults, access control, …
- Very specific: line 95
Read references/mutation-rules.md when the task is about which mutation families exist, which rule files are loaded for a language, how to …
- Distinctive: line 96
Read references/custom-rule-syntax.md, references/custom-rule-examples-evm.md, or references/custom-rule-examples-ton.md when generating or
- Very specific: line 97
Read references/analysis.md after analyze_mutants, show_mutants, or any triage pass over surviving mutants.
- Very specific: line 98
Read references/result-file-formats.md when you need to interpret killed.txt, notkilled.txt, prefixed variants, logs, or helper-script JSON …
- Distinctive: line 99
Read references/troubleshooting.md when commands are missing, TON language support is unclear, tests are flaky, or timeouts and compile …
- Distinctive: line 100
Read references/fuzzing-vs-mutation.md when the user mentions fuzzing, input generation, or a combined fuzzing-plus-mutation workflow.
- Distinctive: line 101
Read references/helper-scripts.md when reproducibility matters and the bundled helper scripts can save time.
- Distinctive: line 103
Use the CLI reference for supported Web3 projects.
- Very specific: line 107
Do not assume the public PyPI universalmutator supports TON.
- Distinctive: line 111
If TON support is not verified, say: “Your installed universalmutator may not support TON directly.
- Very specific: line 112
When local capability is unknown, phrase commands as templates, not facts: “If your installed mutate --help confirms <flag/language>, use...
- Very specific: line 113
Do not state that UM_TACT_CMD, UM_TOLK_CMD, UM_FUNC_CMD, mutate contracts/X.tact tact, or similar TON-specific invocation patterns will …
- Distinctive: line 114
Never invent CLI flags. Classify every flag as one of:
- Very specific: line 119
Treat --showRules, --printStat, and --only as locally verified or fork-specific until the installed mutate --help confirms them.
- Very specific: line 121
Do not call a survivor equivalent unless the diff has been inspected and no observable assertion can distinguish it.
- Distinctive: line 122
Do not claim mutation score proves contract security.
- Distinctive: line 123
Do not confuse mutation testing with fuzzing.
- Distinctive: line 124
Do not generalize this skill to non-Web3 source languages even if the installed Universal Mutator has rules for them.
- Distinctive: line 129
Prefer documented file- or contract-level workflows.
- Distinctive: line 130
Default Web3 mutation campaigns are entrypoint-first.
- Distinctive: line 131
Treat the bundled references in this skill as the command baseline for Web3 CLI usage, TON usage, EVM usage, and result interpretation.
- Very specific: line 132
Treat the local rule files under universalmutator/static/ and universalmutator/comby/ plus the current genmutants.py selection logic as the …
- Very specific: line 133
Treat custom .rules files as optional campaign extensions.
- Distinctive: line 134
Treat references/command-templates.md as scaffolding, not proof that every installed CLI exposes every flag.
- Distinctive: line 135
If a flag, exit-code meaning, or dry-run mode is not confirmed by the bundled references or the current repository source, mark it as not …
- Very specific: line 136
Do not advise a command or flag unless scripts/detect_um_capabilities.py confirms it, local help confirms it, or the relevant reference …
- Distinctive: line 137
Keep mutation and analysis sequential inside one project checkout.
- Distinctive: line 138
Before analysis require an isolated worktree/copy.
- Very specific: line 139
Never suggest commands containing rm, git clean, or other destructive cleanup shortcuts as part of a mutation workflow.
- Distinctive: line 140
Verify that one target completes the full mutate plus analyze cycle before considering isolated parallel runs.
- Very specific: line 141
After mutation generation and after analysis, write or update mutants/REPORT.md.
- Distinctive: line 142
Prefer a narrow compile or test command for a single target when it is trustworthy.
- Very specific: line 143
Treat --noCheck as a last-resort noise tradeoff, because it can generate a much larger and less actionable mutant set.
- Very specific: line 144
Prefer expanding package scripts into explicit build + narrow test commands when mutation testing generated-contract projects.
- Distinctive: line 145
Use the bundled helper scripts when they improve consistency:
- Distinctive: line 153
When a user asks what mutants exist for a language, answer in terms of loaded rule layers first, then the most important mutation families, …
- Very specific: line 154
Use the canonical final report shape from references/analysis.md: Target, Scope, Commands, Results, Survivors, Likely gaps, Recommended …
- Very specific: line 155
Treat the tool as cross-platform for Windows and Linux, but treat --comby as a Linux or WSL workflow on Windows because the external comby …
- Distinctive: line 156
After a TON run, translate surviving mutants into missing message, storage, deploy, opcode, and negative-test coverage suggestions rather …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
web3-universalmutator
Use this skill to run, troubleshoot, and analyze Web3-focused Universal Mutator workflows without guessing undocumented behavior. It is intentionally not a general Universal Mutator skill: use it only for supported Web3 smart-contract languages and frameworks. Keep SKILL.md as the control surface and load only the reference file that matches the repository and task.
For snapshot-based multi-agent/background campaigns, use the coordinator when present; read campaign integration. The focused standalone helpers remain independently usable in an already isolated disposable checkout. A live dirty/non-Git checkout requires explicit --allow-dirty; this flag does not create isolation.
Do not use this skill for non-Web3 Universal Mutator runs, pure fuzzing, input generation, or standalone Web3 audit workflows unless the task is explicitly comparing fuzzing with mutation testing.
Supported Web3 Languages
- TON: Tact (
.tact), Tolk (.tolk), FunC (.fc,.func) - EVM: Solidity (
.sol), Vyper (.vy), Fe (.fe)
If the repository is Rust, Go, Python, Java, Swift, R, Fortran, TypeScript-only, or another non-Web3 codebase, stop after detection and say this skill is out of scope. Do not use this skill for non-Web3 Universal Mutator runs.
Quick Workflows
Manual workflow:
python scripts/detect_project.py <repo>
python scripts/detect_um_capabilities.py --format markdown
python scripts/plan_mutation_run.py <repo> --target <target> --format markdownAutonomous workflow:
python scripts/run_campaign.py <repo> --target <target> --mode smoke
python scripts/run_campaign.py <repo> --target <target> --mode full
python scripts/run_campaign.py <repo> --target contracts --all-entrypoints --mode smokeCustom rule workflow:
python scripts/propose_custom_rules.py <repo> --target <target>
python scripts/propose_custom_rules.py <repo> --target <target> --write mutants/custom-rules/<slug>.rules
python scripts/validate_custom_rules.py <repo> --target <target> --rules mutants/custom-rules/<slug>.rules
python scripts/validate_custom_rules.py <repo> --target <target> --rules mutants/custom-rules/<slug>.rules --dry-run-mutants
python scripts/run_campaign.py <repo> --target <target> --custom-rules write-and-useWhen running from outside the skill directory, keep skill and target repo paths explicit:
SKILL_DIR="/path/to/web3-universalmutator"
REPO="/path/to/project"
python "$SKILL_DIR/scripts/detect_project.py" "$REPO"
python "$SKILL_DIR/scripts/run_campaign.py" "$REPO" --target contracts/Vault.sol --mode smokeCampaign Scope Policy
Default Web3 mutation campaigns are entrypoint-first. If the user provides a contract directory, mutate the main deployable or callable contract entrypoints by default, not every supported source file in that directory. Do not mutate every shared source file in a contract directory by default.
Always enumerate shared dependency files such as messages, storage, errors, fees, constants, utils, libraries, interfaces, and include files. Mark them as "Shared dependency files observed but not mutated by default" unless the user explicitly requests a shared-dependency pass or a survivor points to that layer.
Do not describe an entrypoint-focused campaign as full directory coverage. Use a scope label such as entrypoint-focused-not-full-directory when a directory contains shared files that were intentionally left unmutated.
Follow This Workflow
- Read references/safety.md before any run that might swap source files, write mutant directories, or reuse a dirty tree.
- Determine the project type and confirm it is a supported Web3 smart-contract project.
- Verify the installed Universal Mutator commands, language support, and local flag surface before writing language-specific commands.
- Find the relevant supported source files or contracts, classify entrypoints separately from shared dependencies, and keep the default scope entrypoint-first.
- Review the default rule stack for the selected language using references/mutation-rules.md.
- Offer an optional custom mutation-rules pass when source-specific invariants might benefit from extra mutants. Explain that default mutation campaigns still work without custom rules.
- If the user explicitly requested autonomous custom-rule generation, write custom rule files under
mutants/custom-rules/and report what was written. Otherwise ask the user before writing a custom.rulesfile. Use custom rules as extra positional files inmutate; do not replace defaults unless the user asks for a focused custom-only experiment. - For manual planning, run
scripts/plan_mutation_run.py <repo> --target <optional-contract-or-file>to choose the target,mutants/<safe-target-path>output directory, compile fallback, and narrow test command. - For autonomous requests, prefer
scripts/run_campaign.py <repo> --target <target> --mode smokefirst; use--mode fullonly after the smoke path and baseline command are trustworthy. - Treat planned
mutateandanalyze_mutantscommands as templates untilscripts/detect_um_capabilities.pyconfirms the command, language, and flag surface. - Run the generated preflight steps. Run the baseline test command immediately after tooling verification. Do not start mutation generation if the baseline tests fail.
- Do not run
mutateoranalyze_mutantsin parallel inside the same project checkout. Within an already isolated disposable checkout, keep execution sequential; isolate parallel targets in separate worktrees or copies such as.tmp/um-runs/<target-slug>. - Warn the user that mutation analysis can take a long time because the test command may run once per mutant and can look stuck while a slow test is executing.
- Run the initial mutate command first so Universal Mutator performs its default compile check.
- If the default compile check fails because direct language compilers such as
tolk-js,tact,func-js, or Solidity tooling are missing or not enough for the project, inspect the failure and rerun with the firstfallback_mutate_commandsentry. - Create or update
mutants/REPORT.mdafter mutation generation with the target, commands, total mutants, and non-compiling mutants. - Run
analyze_mutantsonly after mutation generation produces compilable mutants, using the planned narrow test command rather than the whole suite when a mapped test exists. - Update
mutants/REPORT.mdafter analysis with killed, survived, timeout, compile-error, and flaky counts, then add survivor interpretation and recommended tests.
Load The Right Reference
- Read references/safety.md before mutation runs in a live repository, especially when
analyze_mutantsmay temporarily swap mutated files into place. - Read references/project-detection.md first when the repository type is unclear.
- Read references/command-templates.md when you need preflight, smoke, full-run, survivor-rerun, or timeout-triage command scaffolds.
- Read references/cli.md for Web3 Universal Mutator commands, documented flags, output handling,
--swap, and concurrent-run recipes. - Read references/ton.md when the repository appears to be TON, Acton, Blueprint, FunC, Tolk, Tact, or a TypeScript-based TON wrapper project.
- Read references/evm.md when the repository appears to be Foundry, Hardhat, Truffle, Solidity, Vyper, Fe, or a mixed EVM monorepo.
- Read references/ton-contract-checklists.md when survivors need contract-type-specific test ideas for jettons, wallets, bridges, governance, or other TON patterns.
- Read references/evm-contract-checklists.md when EVM survivors need contract-type-specific test ideas for tokens, vaults, access control, upgradeability, markets, bridges, governance, signatures, fees, rounding, or decimals.
- Read references/mutation-rules.md when the task is about which mutation families exist, which rule files are loaded for a language, how to ideate optional custom
.rulesfiles, or how to explain a surviving mutant in terms of its originating rule stack. - Read references/custom-rule-syntax.md, references/custom-rule-examples-evm.md, or references/custom-rule-examples-ton.md when generating or reviewing project-specific custom rules.
- Read references/analysis.md after
analyze_mutants,show_mutants, or any triage pass over surviving mutants. - Read references/result-file-formats.md when you need to interpret
killed.txt,notkilled.txt, prefixed variants, logs, or helper-script JSON and markdown output. - Read references/troubleshooting.md when commands are missing, TON language support is unclear, tests are flaky, or timeouts and compile failures dominate the run.
- Read references/fuzzing-vs-mutation.md when the user mentions fuzzing, input generation, or a combined fuzzing-plus-mutation workflow.
- Read references/helper-scripts.md when reproducibility matters and the bundled helper scripts can save time.
Use the CLI reference for supported Web3 projects; use the TON reference when the target is Tact, Tolk, or FunC, and the EVM reference when the target is Solidity, Vyper, or Fe. Explicit target paths override repository-family detection.
Anti-Hallucination Rules
- Do not assume the public PyPI universalmutator supports TON. Before using
tact,tolk, orfuncas language arguments, verify one of:mutate --helplists the language;- installed package contains
static/tact.rules,static/tolk.rules, orstatic/func.rules; - the user explicitly says they use a TON-enabled fork/build.
- If TON support is not verified, say: “Your installed universalmutator may not support TON directly. I can still help design a mutation workflow, but these TON-specific commands require verification or a TON-enabled fork.”
- When local capability is unknown, phrase commands as templates, not facts: “If your installed
mutate --helpconfirms<flag/language>, use... Otherwise first verify or install the TON-enabled build.” - Do not state that
UM_TACT_CMD,UM_TOLK_CMD,UM_FUNC_CMD,mutate contracts/X.tact tact, or similar TON-specific invocation patterns will work unless local help, installed rule files, or the user confirms a TON-enabled build. - Never invent CLI flags. Classify every flag as one of:
- confirmed by local
--help - confirmed by bundled reference
- project-local/fork-specific
- unconfirmed; do not use without verification
- confirmed by local
- Treat
--showRules,--printStat, and--onlyas locally verified or fork-specific until the installedmutate --helpconfirms them. --timeout,--fromFile, and--noShufflemust be treated as locally verifiedanalyze_mutantsflags. Runanalyze_mutants --helpbefore using them.- Do not call a survivor
equivalentunless the diff has been inspected and no observable assertion can distinguish it. - Do not claim mutation score proves contract security. Mutation testing measures test sensitivity to injected changes; it is not an audit.
- Do not confuse mutation testing with fuzzing. Universalmutator mutates source code; fuzzers generate inputs/messages.
- Do not generalize this skill to non-Web3 source languages even if the installed Universal Mutator has rules for them.
- Explicit target paths override project-family detection. A
.sol,.vy, or.fetarget must use the EVM route even in a mixed TON repository; a.tact,.tolk,.fc, or.functarget must use the TON route.
Operating Rules
- Prefer documented file- or contract-level workflows. Do not assume undocumented directory-wide mutation support.
- Default Web3 mutation campaigns are entrypoint-first. Do not mutate every shared source file in a contract directory by default, and do not describe an entrypoint-focused campaign as full directory coverage.
- Treat the bundled references in this skill as the command baseline for Web3 CLI usage, TON usage, EVM usage, and result interpretation.
- Treat the local rule files under
universalmutator/static/anduniversalmutator/comby/plus the currentgenmutants.pyselection logic as the primary source for which mutation families actually exist. - Treat custom
.rulesfiles as optional campaign extensions. Do not write or run them unless the user asks for them or accepts the optional custom-rules pass. - Treat references/command-templates.md as scaffolding, not proof that every installed CLI exposes every flag. Verify locally before locking in a command.
- If a flag, exit-code meaning, or dry-run mode is not confirmed by the bundled references or the current repository source, mark it as not confirmed instead of inventing behavior.
- Do not advise a command or flag unless
scripts/detect_um_capabilities.pyconfirms it, local help confirms it, or the relevant reference explicitly marks it as version-dependent. - Keep mutation and analysis sequential inside one project checkout. Parallel mutation or analysis in the same checkout can corrupt swapped files, shared build artifacts, generated wrappers, compile caches, or test state.
- Before analysis require an isolated worktree/copy; a clean original checkout alone does not preserve it during source swaps.
- Never suggest commands containing
rm,git clean, or other destructive cleanup shortcuts as part of a mutation workflow. - Verify that one target completes the full mutate plus analyze cycle before considering isolated parallel runs.
- After mutation generation and after analysis, write or update
mutants/REPORT.md; this report is the durable handoff, not an optional chat-only summary. - Prefer a narrow compile or test command for a single target when it is trustworthy; fall back to a broader command when integration behavior matters.
- Treat
--noCheckas a last-resort noise tradeoff, because it can generate a much larger and less actionable mutant set. - Prefer expanding package scripts into explicit build + narrow test commands when mutation testing generated-contract projects. Do not stop at
yarn test:basewithout checking whether it rebuilds generated contract output and whether Jest runs in-band. - Use the bundled helper scripts when they improve consistency:
scripts/detect_um_capabilities.pyfor checking whether the installed Universal Mutator environment actually exposes the expected commands, mutate flags,analyze_mutantsflags, and TON language supportscripts/detect_project.pyfor layout and command hintsscripts/plan_mutation_run.pyfor autopilot routing from project detection toinitial_mutate_command,fallback_mutate_commands,mutants/<safe-target-path>, and narrowanalyze_mutantsscripts/run_campaign.pyfor autonomous smoke/full campaigns that writemutants/<campaign-slug>/plan.json,manifest.json,commands.sh,capabilities.json,artifacts.json,run.log,summary.md, and updatemutants/REPORT.mdscripts/propose_custom_rules.pyandscripts/validate_custom_rules.pyfor project-specific custom rule generation, match analysis, and optional temporary dry-run validationscripts/collect_mutation_artifacts.pyfor artifact inventoryscripts/summarize_results.pyfor canonical report scaffolding
- When a user asks what mutants exist for a language, answer in terms of loaded rule layers first, then the most important mutation families, then any repository-local exhaustive tables if they are available.
- Use the canonical final report shape from references/analysis.md:
Target,Scope,Commands,Results,Survivors,Likely gaps,Recommended tests,Next commands. - Treat the tool as cross-platform for Windows and Linux, but treat
--combyas a Linux or WSL workflow on Windows because the externalcombybinary should not be assumed to work natively there. - After a TON run, translate surviving mutants into missing message, storage, deploy, opcode, and negative-test coverage suggestions rather than only restating filenames, and use references/ton-contract-checklists.md when the contract class matters.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

