fizz-convert
Convert English-language properties in PROPERTIES.md (produced by the Fizz skill) into Solidity assertions inside the existing fuzz harness, then flip their…
Reconcile an existing Fizz harness with a changed source tree. Detects added/removed/changed contract functions, quarantines stale properties, regenerates drifted handler stubs, and refreshes the snapshot. Trigger on "fizz-sync", "resync fuzzing", "sync fuzz harness", "refresh
$ npx -y skills add pashov/skills --skill fizz-sync --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/fizz-syncContext preview
The summary Claude sees to decide when to auto-load this skill.
Reconcile an existing Fizz harness with a changed source tree. Detects added/removed/changed contract functions, quarantines stale properties, regenerates drifted handler stubs, and refreshes the snapshot. Trigger on "fizz-sync", "resync fuzzing", "sync fuzz harness", "refresh
name: fizz-sync description: Reconcile an existing Fizz harness with a changed source tree. Detects added/removed/changed contract functions, quarantines stale properties, regenerates drifted handler stubs, and refreshes the snapshot. Trigger on "fizz-sync", "resync fuzzing", "sync fuzz harness", "refresh fuzzing properties", "fuzzing drift check".
Reconcile a project previously processed by the **Fizz** skill with a changed source tree. This is the re-use entry point: after the user modifies Solidity sources, `fizz-sync` detects drift, quarantines stale properties, regenerates drifted handler stubs, and refreshes the snapshot — WITHOUT re-running the full 11-step pipeline.
The default (no flags) runs a dry-run drift report.
---
The snapshot diff compares against `contracts.json` and `entry-point-selection.json`. Those files reflect the state from the last `fizz` run, NOT the current source tree. You must refresh them first.
Run sequentially:
1. `cd {PROJECT_ROOT} && forge build --skip 'test/**/*.sol'`
The `--skip` flag is critical: if the user's source change broke downstream call sites in `test/`, a plain `forge build` will fail on the harness code — which is exactly the drift fizz-sync is supposed to fix. Skipping `test/` means we only validate that the SOURCE compiles cleanly, which is all we need to refresh the ABI.
If the build still fails with `--skip 'test/**/*.sol'`, the source itself has a compile error. Stop and report it. Fuzz-sync cannot proceed without valid source artifacts.
2. `node {SKILL_PATH}/../../scripts/extract_abis.js {PROJECT_ROOT} --meta-dir {META_DIR}`
This refreshes `contracts.json` from the latest artifacts. It overwrites the old file in place.
3. **Do NOT re-run `select_functions.js` automatically.** The existing `entry-point-selection.json` encodes the user's prior tier assignments and selection choices. fizz-sync treats it as the source of truth for what's "in scope" and diffs only within that scope.
If new contracts have been added that the user probably wants to fuzz, the drift report will surface them and the user can manually add them to `entry-point-selection.json` and re-run fizz-sync.
---
If the user passed `--init`:
1. Run:
node {SKILL_PATH}/../../scripts/fizz_sync.js {PROJECT_ROOT} --init2. If the script reports the snapshot already exists, ask the user whether they want to overwrite with `--force` (they usually do NOT — it would erase drift history).
3. Report the number of contracts and properties captured, then stop. No further steps.
---
Run:
node {SKILL_PATH}/../../scripts/fizz_sync.js {PROJECT_ROOT}The script:
If exit 0 and no drift, stop and tell the user the harness is already in sync.
Read the JSON report:
{PROJECT_ROOT}/{META_DIR}/sync-report.jsonThe JSON schema is:
{
"generatedAt": "...",
"hasDrift": true,
"contracts": {
"added": [{"name":"...", "sourcePath":"...", "functions":[{"signature":"...", "tier":"primary"}]}],
"removed": [{"name":"...", "handlerFile":"...Handler.sol"}],
"changed": [{"name":"...", "functionsAdded":[...], "functionsRemoved":[...], "functionsChanged":[{"oldSignature":"...","newSignature":"...","handlerMethodName":"..."}], "tierChanged":[...]}],
"sourcesChanged": [{"name":"...", "sourcePath":"..."}]
},
"handlers": {
"orphan": [{"file":"...", "contract":"..."}],
"modified": [{"file":"..."}],
"missing": [{"file":"..."}]
},
"properties": {
"referencingRemoved": [{"file":"...", "reference":"lender_oldMethod", "reason":"..."}],
"fromSnapshot": [{"id":"GL-01", "checkbox":"x", "functionName":"property_..."}]
}
}Use this object as the canonical work list for the rest of the skill.
---
Regardless of whether `--apply` was passed, print a concise summary to the user that mirrors the report:
fizz-sync drift r
AI-powered Solidity security skills — built by Pashov Audit Group. Supported AI Platforms:
Repo: 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…