agentleFS
mysteryon88mysteryon88/skills/web3-universalmutator/SKILL.md

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.

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
  1. Distinctive:

    Do not use this skill for non-Web3 Universal Mutator runs, pure fuzzing, input generation, or standalone Web3 audit workflows unless the …

    line 10
  2. Distinctive:

    If the repository is Rust, Go, Python, Java, Swift, R, Fortran, TypeScript-only, or another non-Web3 codebase, stop after detection and say …

    line 17
  3. Distinctive:

    When running from outside the skill directory, keep skill and target repo paths explicit:

    line 47
  4. Distinctive:

    Default Web3 mutation campaigns are entrypoint-first.

    line 58
  5. Very specific:

    Always enumerate shared dependency files such as messages, storage, errors, fees, constants, utils, libraries, interfaces, and include …

    line 60
  6. Very specific:

    Do not describe an entrypoint-focused campaign as full directory coverage.

    line 62
  7. Distinctive:

    Read references/safety.md before any run that might swap source files, write mutant directories, or reuse a dirty tree.

    line 66
  8. Distinctive:

    Verify the installed Universal Mutator commands, language support, and local flag surface before writing language-specific commands.

    line 68
  9. Very specific:

    Treat planned mutate and analyze_mutants commands as templates until scripts/detect_um_capabilities.py confirms the command, language, and …

    line 75
  10. Distinctive:

    Run the generated preflight steps.

    line 76
  11. Very specific:

    Do not run mutate or analyze_mutants in parallel inside the same project checkout.

    line 77
  12. Distinctive:

    Run the initial mutate command first so Universal Mutator performs its default compile check.

    line 79
  13. Very specific:

    If the default compile check fails because direct language compilers such as tolk-js, tact, func-js, or Solidity tooling are missing or not …

    line 80
  14. Very specific:

    Create or update mutants/REPORT.md after mutation generation with the target, commands, total mutants, and non-compiling mutants.

    line 81
  15. Very specific:

    Run analyze_mutants only after mutation generation produces compilable mutants, using the planned narrow test command rather than the whole …

    line 82
  16. Very specific:

    Update mutants/REPORT.md after analysis with killed, survived, timeout, compile-error, and flaky counts, then add survivor interpretation …

    line 83
  17. Very specific:

    Read references/safety.md before mutation runs in a live repository, especially when analyze_mutants may temporarily swap mutated files …

    line 87
  18. Distinctive:

    Read references/project-detection.md first when the repository type is unclear.

    line 88
  19. Distinctive:

    Read references/command-templates.md when you need preflight, smoke, full-run, survivor-rerun, or timeout-triage command scaffolds.

    line 89
  20. Very specific:

    Read references/cli.md for Web3 Universal Mutator commands, documented flags, output handling, --swap, and concurrent-run recipes.

    line 90
  21. Distinctive:

    Read references/ton.md when the repository appears to be TON, Acton, Blueprint, FunC, Tolk, Tact, or a TypeScript-based TON wrapper project.

    line 91
  22. Distinctive:

    Read references/evm.md when the repository appears to be Foundry, Hardhat, Truffle, Solidity, Vyper, Fe, or a mixed EVM monorepo.

    line 92
  23. Distinctive:

    Read references/ton-contract-checklists.md when survivors need contract-type-specific test ideas for jettons, wallets, bridges, governance, …

    line 93
  24. Distinctive:

    Read references/evm-contract-checklists.md when EVM survivors need contract-type-specific test ideas for tokens, vaults, access control, …

    line 94
  25. Very specific:

    Read references/mutation-rules.md when the task is about which mutation families exist, which rule files are loaded for a language, how to …

    line 95
  26. Distinctive:

    Read references/custom-rule-syntax.md, references/custom-rule-examples-evm.md, or references/custom-rule-examples-ton.md when generating or

    line 96
  27. Very specific:

    Read references/analysis.md after analyze_mutants, show_mutants, or any triage pass over surviving mutants.

    line 97
  28. Very specific:

    Read references/result-file-formats.md when you need to interpret killed.txt, notkilled.txt, prefixed variants, logs, or helper-script JSON …

    line 98
  29. Distinctive:

    Read references/troubleshooting.md when commands are missing, TON language support is unclear, tests are flaky, or timeouts and compile …

    line 99
  30. Distinctive:

    Read references/fuzzing-vs-mutation.md when the user mentions fuzzing, input generation, or a combined fuzzing-plus-mutation workflow.

    line 100
  31. Distinctive:

    Read references/helper-scripts.md when reproducibility matters and the bundled helper scripts can save time.

    line 101
  32. Distinctive:

    Use the CLI reference for supported Web3 projects.

    line 103
  33. Very specific:

    Do not assume the public PyPI universalmutator supports TON.

    line 107
  34. Distinctive:

    If TON support is not verified, say: “Your installed universalmutator may not support TON directly.

    line 111
  35. Very specific:

    When local capability is unknown, phrase commands as templates, not facts: “If your installed mutate --help confirms <flag/language>, use...

    line 112
  36. Very specific:

    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 …

    line 113
  37. Distinctive:

    Never invent CLI flags. Classify every flag as one of:

    line 114
  38. Very specific:

    Treat --showRules, --printStat, and --only as locally verified or fork-specific until the installed mutate --help confirms them.

    line 119
  39. Very specific:

    Do not call a survivor equivalent unless the diff has been inspected and no observable assertion can distinguish it.

    line 121
  40. Distinctive:

    Do not claim mutation score proves contract security.

    line 122
  41. Distinctive:

    Do not confuse mutation testing with fuzzing.

    line 123
  42. Distinctive:

    Do not generalize this skill to non-Web3 source languages even if the installed Universal Mutator has rules for them.

    line 124
  43. Distinctive:

    Prefer documented file- or contract-level workflows.

    line 129
  44. Distinctive:

    Default Web3 mutation campaigns are entrypoint-first.

    line 130
  45. Distinctive:

    Treat the bundled references in this skill as the command baseline for Web3 CLI usage, TON usage, EVM usage, and result interpretation.

    line 131
  46. Very specific:

    Treat the local rule files under universalmutator/static/ and universalmutator/comby/ plus the current genmutants.py selection logic as the …

    line 132
  47. Very specific:

    Treat custom .rules files as optional campaign extensions.

    line 133
  48. Distinctive:

    Treat references/command-templates.md as scaffolding, not proof that every installed CLI exposes every flag.

    line 134
  49. Distinctive:

    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 …

    line 135
  50. Very specific:

    Do not advise a command or flag unless scripts/detect_um_capabilities.py confirms it, local help confirms it, or the relevant reference …

    line 136
  51. Distinctive:

    Keep mutation and analysis sequential inside one project checkout.

    line 137
  52. Distinctive:

    Before analysis require an isolated worktree/copy.

    line 138
  53. Very specific:

    Never suggest commands containing rm, git clean, or other destructive cleanup shortcuts as part of a mutation workflow.

    line 139
  54. Distinctive:

    Verify that one target completes the full mutate plus analyze cycle before considering isolated parallel runs.

    line 140
  55. Very specific:

    After mutation generation and after analysis, write or update mutants/REPORT.md.

    line 141
  56. Distinctive:

    Prefer a narrow compile or test command for a single target when it is trustworthy.

    line 142
  57. Very specific:

    Treat --noCheck as a last-resort noise tradeoff, because it can generate a much larger and less actionable mutant set.

    line 143
  58. Very specific:

    Prefer expanding package scripts into explicit build + narrow test commands when mutation testing generated-contract projects.

    line 144
  59. Distinctive:

    Use the bundled helper scripts when they improve consistency:

    line 145
  60. Distinctive:

    When a user asks what mutants exist for a language, answer in terms of loaded rule layers first, then the most important mutation families, …

    line 153
  61. Very specific:

    Use the canonical final report shape from references/analysis.md: Target, Scope, Commands, Results, Survivors, Likely gaps, Recommended …

    line 154
  62. Very specific:

    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 …

    line 155
  63. Distinctive:

    After a TON run, translate surviving mutants into missing message, storage, deploy, opcode, and negative-test coverage suggestions rather …

    line 156

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 markdown

Autonomous 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 smoke

Custom 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-use

When 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 smoke

Campaign 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

  1. Read references/safety.md before any run that might swap source files, write mutant directories, or reuse a dirty tree.
  2. Determine the project type and confirm it is a supported Web3 smart-contract project.
  3. Verify the installed Universal Mutator commands, language support, and local flag surface before writing language-specific commands.
  4. Find the relevant supported source files or contracts, classify entrypoints separately from shared dependencies, and keep the default scope entrypoint-first.
  5. Review the default rule stack for the selected language using references/mutation-rules.md.
  6. 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.
  7. 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 .rules file. Use custom rules as extra positional files in mutate; do not replace defaults unless the user asks for a focused custom-only experiment.
  8. 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.
  9. For autonomous requests, prefer scripts/run_campaign.py <repo> --target <target> --mode smoke first; use --mode full only after the smoke path and baseline command are trustworthy.
  10. Treat planned mutate and analyze_mutants commands as templates until scripts/detect_um_capabilities.py confirms the command, language, and flag surface.
  11. Run the generated preflight steps. Run the baseline test command immediately after tooling verification. Do not start mutation generation if the baseline tests fail.
  12. Do not run mutate or analyze_mutants in 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>.
  13. 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.
  14. Run the initial mutate command first so Universal Mutator performs its default compile check.
  15. 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 first fallback_mutate_commands entry.
  16. Create or update mutants/REPORT.md after mutation generation with the target, commands, total mutants, and non-compiling mutants.
  17. Run analyze_mutants only after mutation generation produces compilable mutants, using the planned narrow test command rather than the whole suite when a mapped test exists.
  18. Update mutants/REPORT.md after 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_mutants may 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 .rules files, 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, or func as language arguments, verify one of:
    1. mutate --help lists the language;
    2. installed package contains static/tact.rules, static/tolk.rules, or static/func.rules;
    3. 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 --help confirms <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
  • Treat --showRules, --printStat, and --only as locally verified or fork-specific until the installed mutate --help confirms them.
  • --timeout, --fromFile, and --noShuffle must be treated as locally verified analyze_mutants flags. Run analyze_mutants --help before using them.
  • Do not call a survivor equivalent unless 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 .fe target must use the EVM route even in a mixed TON repository; a .tact, .tolk, .fc, or .func target 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/ and universalmutator/comby/ plus the current genmutants.py selection logic as the primary source for which mutation families actually exist.
  • Treat custom .rules files 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.py confirms 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 --noCheck as 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:base without 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.py for checking whether the installed Universal Mutator environment actually exposes the expected commands, mutate flags, analyze_mutants flags, and TON language support
    • scripts/detect_project.py for layout and command hints
    • scripts/plan_mutation_run.py for autopilot routing from project detection to initial_mutate_command, fallback_mutate_commands, mutants/<safe-target-path>, and narrow analyze_mutants
    • scripts/run_campaign.py for autonomous smoke/full campaigns that write mutants/<campaign-slug>/plan.json, manifest.json, commands.sh, capabilities.json, artifacts.json, run.log, summary.md, and update mutants/REPORT.md
    • scripts/propose_custom_rules.py and scripts/validate_custom_rules.py for project-specific custom rule generation, match analysis, and optional temporary dry-run validation
    • scripts/collect_mutation_artifacts.py for artifact inventory
    • scripts/summarize_results.py for 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 --comby as a Linux or WSL workflow on Windows because the external comby binary 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.