move-smith-fuzzer
БесплатноБез исполняемых скриптовНе проверенMove Smith Fuzzer Skill
от plurigrid★ 73 звезды на GitHubОб этом скилле
move-smith-fuzzer Skill
"Find bugs before they find your users. Fuzzing as validation."
Overview
Move Smith Fuzzer implements property-based testing and fuzzing for Move smart contracts. Uses MoveSmith's differential testing against multiple Move VMs to find consensus-breaking bugs.
GF(3) Role
| Aspect | Value |
|---|---|
| Trit | -1 (MINUS) |
| Role | VALIDATOR |
| Function | Validates Move contracts via fuzz testing |
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ MOVE SMITH FUZZER │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Contract Source Generator Fuzzer Report │
│ (+1 GEN) (0 COORD) (-1 VAL) (output) │
│ │ │ │ │ │
│ ▼ ▼ ▼ ▼ │
│ ┌───────┐ ┌────────┐ ┌──────────┐ ┌─────────┐ │
│ │ Parse │───────►│Generate│───►│ Execute │──►│ Report │ │
│ │ AST │ │ Inputs │ │ & Compare│ │ Bugs │ │
│ └───────┘ └────────┘ └──────────┘ └─────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────┐ │
│ │ Differential │ │
│ │ Testing │ │
│ └──────────────┘ │
│ │ │
│ ┌────────────┼────────────┐ │
│ ▼ ▼ ▼ │
│ Move VM 1 Move VM 2 Move VM 3 │
│ │
└─────────────────────────────────────────────────────────────────┘
MoveSmith Integration
class MoveSmithFuzzer:
"""
MoveSmith-based differential fuzzer for Move.
Reference: "MoveSmith: Compiler Bug Isolation via Compilation
Result Consistency Checking for Move"
"""
TRIT = -1 # VALIDATOR role
def __init__(self, vms: list[MoveVM]):
self.vms = vms # Multiple VMs for differential testing
self.mutator = MoveMutator()
self.oracle = DifferentialOracle()
def fuzz(self, contract: str, iterations: int = 10000) -> list:
"""
Fuzz a Move contract for bugs.
Strategy:
1. Generate random valid Move programs
2. Execute on all VMs
3. Compare results (differential testing)
4. Report discrepancies
"""
bugs = []
for i in range(iterations):
# Generate or mutate
if random.random() < 0.3:
program = self.generate_random_program()
else:
program = self.mutator.mutate(contract)
# Execute on all VMs
results = {}
for vm in self.vms:
try:
results[vm.name] = vm.execute(program)
except Exception as e:
results[vm.name] = ('error', str(e))
# Differential testing
if not self.oracle.consistent(results):
bugs.append({
'program': program,
'results': results,
'type': 'differential',
'iteration': i
})
return bugs
class MoveMutator:
"""Mutates Move programs to find edge cases."""
def mutate(self, program: str) -> str:
"""Apply random mutations."""
mutations = [
self.mutate_integers,
self.mutate_addresses,
self.mutate_vectors,
self.mutate_structs,
self.swap_operations,
]
mutated = program
for _ in range(random.randint(1, 5)):
mutation = random.choice(mutations)
mutated = mutation(mutated)
return mutated
def mutate_integers(self, program: str) -> str:
"""Replace integers with edge cases."""
edges = [0, 1, 255, 256, 2**64-1, 2**128-1]
# Find and replace integer literals
return re.sub(r'\b(\d+)\b',
lambda m: str(random.choice(edges)),
program)
Prover-Fuzzer Synergy
class ProverFuzzerHybrid:
"""
Combine Move Prover with fuzzing.
Prover: Proves properties hold for ALL inputs
Fuzzer: Finds counterexamples for SOME inputs
Together: Maximum coverage
"""
def verify_contract(self, contract: str) -> dict:
# First: Prover for formal guarantees
prover_result = move_prover.verify(contract)
# Second: Fuzzer for edge
Установить move-smith-fuzzer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл move-smith-fuzzer?
Move Smith Fuzzer Skill
Как установить скилл move-smith-fuzzer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл move-smith-fuzzer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic