[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79BH10YQRSCBKTM2VY1SEQM":3,"skill-same:01M79BH10YQRSCBKTM2VY1SEQM":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M79BH10YQRSCBKTM2VY1SEQM","fuzzing-integration",null,"Integration patterns for Echidna, Medusa, and Halmos fuzzing tools. Used by the Verifier when a task's phase field is 5 (medusa-fuzz), 6 (echidna), or 7 (halmos). Provides setup templates, config files, and decision guide for which tool to use when.","sahil-kaushik1\u002FAuditing-Workflow","sahil-kaushik1","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F143880923?v=4","01M79BEEK3947RQYD3WC00K9W3","Sahil Kaushik","01M79BEEKVHPFPTNBDB0GFXBHE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffuzzing-integration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: fuzzing-integration\ndescription: >\n  Integration patterns for Echidna, Medusa, and Halmos fuzzing tools.\n  Used by the Verifier when a task's phase field is 5 (medusa-fuzz),\n  6 (echidna), or 7 (halmos). Provides setup templates, config files,\n  and decision guide for which tool to use when.\ntrigger: When task.phase is 5-medusa-fuzz, 6-echidna, or 7-halmos.\nagents: [verifier, sast-integrator]\n---\n\n# Fuzzing Integration Skill\n\n## Tool Selection Guide\n\n| Scenario | Best Tool | Why |\n|---------|-----------|-----|\n| Multi-step state transitions (5+ txs) | Medusa | Better at long sequences |\n| Arithmetic invariants, overflow, rounding | Echidna | Faster at numeric property testing |\n| Mathematical proof of safety (no counterexample) | Halmos | Symbolic, exhaustive within bounds |\n| Single-transaction exploits | Foundry unit PoC | Simpler, faster |\n| Accounting invariants (totalAssets, totalShares) | Foundry stateful invariants | Direct and readable |\n| Unknown vulnerability type | Medusa → Echidna (sequence then property) | Broad coverage |\n\n## Phase 5: Medusa Long-Sequence Fuzzing\n\n### Setup\n\n```json\n\u002F\u002F medusa.json — place at project root\n{\n  \"fuzzing\": {\n    \"workers\": 10,\n    \"timeout\": 300,\n    \"testLimit\": 100000,\n    \"callSequenceLength\": 100,\n    \"deploymentOrder\": [\"TargetContract\"],\n    \"corpusDirectory\": \"specs\u002Fverification\u002FTASK-{N}-medusa\u002Fcorpus\",\n    \"testing\": {\n      \"stopOnFailedTest\": true,\n      \"stopOnFailedCallSequence\": false,\n      \"traceAll\": false,\n      \"assertionTesting\": {\n        \"enabled\": true\n      },\n      \"propertyTesting\": {\n        \"enabled\": true,\n        \"testPrefixes\": [\"property_\"]\n      }\n    }\n  },\n  \"compilation\": {\n    \"platform\": \"foundry\"\n  }\n}\n```\n\n### Property Contract Template\n\n```solidity\n\u002F\u002F SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"forge-std\u002FTest.sol\";\nimport \"..\u002Fsrc\u002FTargetContract.sol\";\n\ncontract TASK_{N}_MedusaProperties {\n    TargetContract target;\n    address attacker = address(0x1337);\n\n    constructor() {\n        target = new TargetContract();\n        \u002F\u002F Setup initial state\n    }\n\n    \u002F\u002F Medusa calls this sequence of functions then checks property_*\n    function property_totalAssets_gte_totalLiabilities() public returns (bool) {\n        return target.totalAssets() >= target.totalLiabilities();\n    }\n\n    function property_share_price_non_decreasing() public returns (bool) {\n        \u002F\u002F Implement invariant check\n        return true;\n    }\n}\n```\n\n### Run\n\n```bash\nmedusa fuzz --config medusa.json --target TASK_{N}_MedusaProperties\n# Output corpus to: specs\u002Fverification\u002FTASK-{N}-medusa\u002F\n```\n\n## Phase 6: Echidna Property Fuzzing\n\n### Config\n\n```yaml\n# echidna.yaml — place at project root\ntestLimit: 50000\nworkers: 4\nshrinkLimit: 5000\nseqLen: 100\ntestMode: property\ncorpusDir: \"specs\u002Fverification\u002FTASK-{N}-echidna\u002Fcorpus\"\ncontractAddr: \"0x00a329c0648769A73afAc7F9381E08FB43dBEA72\"\ndeployer: \"0x30000\"\nsender:\n  - \"0x10000\"   # user 1\n  - \"0x20000\"   # user 2\n  - \"0x30000\"   # attacker\n```\n\n### Property Contract Template\n\n```solidity\n\u002F\u002F SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"..\u002Fsrc\u002FTargetContract.sol\";\n\ncontract TASK_{N}_EchidnaProperties {\n    TargetContract target;\n\n    constructor() {\n        target = new TargetContract();\n    }\n\n    \u002F\u002F Echidna checks functions prefixed with \"echidna_\"\n    function echidna_solvency() public returns (bool) {\n        return target.totalAssets() >= target.totalLiabilities();\n    }\n\n    function echidna_no_free_shares() public returns (bool) {\n        return target.totalShares() == 0 || target.totalAssets() > 0;\n    }\n}\n```\n\n### Run\n\n```bash\nechidna . --contract TASK_{N}_EchidnaProperties --config echidna.yaml\n```\n\n### Interpreting Results\n\n```\nPASSED: Property holds for all sequences tried (not a proof — increase testLimit for confidence)\nFAILED: Echidna found a counterexample — extract the call sequence for the PoC\n  The failing sequence will be printed. Convert it to a Foundry test for the final PoC.\n```\n\n## Phase 7: Halmos Symbolic Proof\n\nHalmos proves invariants symbolically — it either finds a counterexample or proves\nthe property holds for all inputs within the specified bounds.\n\n### Setup\n\n```bash\n# Install\npip install halmos\n\n# Verify\nhalmos --version\n```\n\n### Symbolic Test Template\n\n```solidity\n\u002F\u002F SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"forge-std\u002FTest.sol\";\nimport \"halmos-cheatcodes\u002FSymTest.sol\";\nimport \"..\u002Fsrc\u002FTargetContract.sol\";\n\ncontract TASK_{N}_HalmosCheck is SymTest, Test {\n    TargetContract target;\n\n    function setUp() public {\n        target = new TargetContract();\n    }\n\n    \u002F\u002F Halmos checks functions prefixed with \"check_\"\n    function check_share_price_monotonic(\n        uint256 depositAmount,\n        uint256 withdrawAmount\n    ) public {\n        \u002F\u002F Symbolic inputs: Halmos tries ALL possible values\n        vm.assume(depositAmount > 0 && depositAmount \u003C type(uint128).max);\n        vm.assume(withdrawAmount > 0 && withdrawAmount \u003C= depositAmount);\n\n        uint256 priceBefore = target.sharePrice();\n        target.deposit(depositAmount, address(this));\n        target.withdraw(withdrawAmount, address(this), address(this));\n        uint256 priceAfter = target.sharePrice();\n\n        \u002F\u002F This assertion must hold for ALL inputs\n        assert(priceAfter >= priceBefore);\n    }\n}\n```\n\n### Run\n\n```bash\nhalmos --function check_share_price_monotonic --loop 3 --solver-timeout 60\n```\n\n### Interpreting Results\n\n```\n✓ Proved: No counterexample found within bounds → Safety argument supported\n✗ Counterexample found: {symbolic values} violate the property → Convert to Foundry PoC\n? Timeout: Increase --solver-timeout or simplify the property\n```\n\n## Converting Fuzzer Output to Foundry PoC\n\nWhen Echidna\u002FMedusa finds a counterexample, convert the call sequence:\n\n```\nEchidna output:\n  Counterexample:\n    Call 1: deposit(100)\n    Call 2: withdraw(99)\n    Call 3: deposit(1)\n    Property violated: echidna_solvency()\n\nConvert to:\n  function test_exploit_from_fuzzer() public {\n      target.deposit(100);\n      target.withdraw(99);\n      target.deposit(1);\n      assertGe(target.totalAssets(), target.totalLiabilities()); \u002F\u002F should FAIL\n  }\n```\n\nRun the converted test with `forge test -vvvv` to get the full trace for the report.\n","# Fuzzing Integration Skill\n\n## Tool Selection Guide\n\n| Scenario | Best Tool | Why |\n|---------|-----------|-----|\n| Multi-step state transitions (5+ txs) | Medusa | Better at long sequences |\n| Arithmetic invariants, overflow, rounding | Echidna | Faster at numeric property testing |\n| Mathematical proof of safety (no counterexample) | Halmos | Symbolic, exhaustive within bounds |\n| Single-transaction exploits | Foundry unit PoC | Simpler, faster |\n| Accounting invariants (totalAssets, totalShares) | Foundry stateful invariants | Direct and readable |\n| Unknown vulnerability type | Medusa → Echidna (sequence then property) | Broad coverage |\n\n## Phase 5: Medusa Long-Sequence Fuzzing\n\n### Setup\n\n```json\n\u002F\u002F medusa.json — place at project root\n{\n  \"fuzzing\": {\n    \"workers\": 10,\n    \"timeout\": 300,\n    \"testLimit\": 100000,\n    \"callSequenceLength\": 100,\n    \"deploymentOrder\": [\"TargetContract\"],\n    \"corpusDirectory\": \"specs\u002Fverification\u002FTASK-{N}-medusa\u002Fcorpus\",\n    \"testing\": {\n      \"stopOnFailedTest\": true,\n      \"stopOnFailedCallSequence\": false,\n      \"traceAll\": false,\n      \"assertionTesting\": {\n        \"enabled\": true\n      },\n      \"propertyTesting\": {\n        \"enabled\": true,\n        \"testPrefixes\": [\"property_\"]\n      }\n    }\n  },\n  \"compilation\": {\n    \"platform\": \"foundry\"\n  }\n}\n```\n\n### Property Contract Template\n\n```solidity\n\u002F\u002F SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"forge-std\u002FTest.sol\";\nimport \"..\u002Fsrc\u002FTargetContract.sol\";\n\ncontract TASK_{N}_MedusaProperties {\n    TargetContract target;\n    address attacker = address(0x1337);\n\n    constructor() {\n        target = new TargetContract();\n        \u002F\u002F Setup initial state\n    }\n\n    \u002F\u002F Medusa calls this sequence of functions then checks property_*\n    function property_totalAssets_gte_totalLiabilities() public returns (bool) {\n        return target.totalAssets() >= target.totalLiabilities();\n    }\n\n    function property_share_price_non_decreasing() public returns (bool) {\n        \u002F\u002F Implement invariant check\n        return true;\n    }\n}\n```\n\n### Run\n\n```bash\nmedusa fuzz --config medusa.json --target TASK_{N}_MedusaProperties\n# Output corpus to: specs\u002Fverification\u002FTASK-{N}-medusa\u002F\n```\n\n## Phase 6: Echidna Property Fuzzing\n\n### Config\n\n```yaml\n# echidna.yaml — place at project root\ntestLimit: 50000\nworkers: 4\nshrinkLimit: 5000\nseqLen: 100\ntestMode: property\ncorpusDir: \"specs\u002Fverification\u002FTASK-{N}-echidna\u002Fcorpus\"\ncontractAddr: \"0x00a329c0648769A73afAc7F9381E08FB43dBEA72\"\ndeployer: \"0x30000\"\nsender:\n  - \"0x10000\"   # user 1\n  - \"0x20000\"   # user 2\n  - \"0x30000\"   # attacker\n```\n\n### Property Contract Template\n\n```solidity\n\u002F\u002F SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"..\u002Fsrc\u002FTargetContract.sol\";\n\ncontract TASK_{N}_EchidnaProperties {\n    TargetContract target;\n\n    constructor() {\n        target = new TargetContract();\n    }\n\n    \u002F\u002F Echidna checks functions prefixed with \"echidna_\"\n    function echidna_solvency() public returns (bool) {\n        return target.totalAssets() >= target.totalLiabilities();\n    }\n\n    function echidna_no_free_shares() public returns (bool) {\n        return target.totalShares() == 0 || target.totalAssets() > 0;\n    }\n}\n```\n\n### Run\n\n```bash\nechidna . --contract TASK_{N}_EchidnaProperties --config echidna.yaml\n```\n\n### Interpreting Results\n\n```\nPASSED: Property holds for all sequences tried (not a proof — increase testLimit for confidence)\nFAILED: Echidna found a counterexample — extract the call sequence for the PoC\n  The failing sequence will be printed. Convert it to a Foundry test for the final PoC.\n```\n\n## Phase 7: Halmos Symbolic Proof\n\nHalmos proves invariants symbolically — it either finds a counterexample or proves\nthe property holds for all inputs within the specified bounds.\n\n### Setup\n\n```bash\n# Install\npip install halmos\n\n# Verify\nhalmos --version\n```\n\n### Symbolic Test Template\n\n```solidity\n\u002F\u002F SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"forge-std\u002FTest.sol\";\nimport \"halmos-cheatcodes\u002FSymTest.sol\";\nimport \"..\u002Fsrc\u002FTargetContract.sol\";\n\ncontract TASK_{N}_HalmosCheck is SymTest, Test {\n    TargetContract target;\n\n    function setUp() public {\n        target = new TargetContract();\n    }\n\n    \u002F\u002F Halmos checks functions prefixed with \"check_\"\n    function check_share_price_monotonic(\n        uint256 depositAmount,\n        uint256 withdrawAmount\n    ) public {\n        \u002F\u002F Symbolic inputs: Halmos tries ALL possible values\n        vm.assume(depositAmount > 0 && depositAmount \u003C type(uint128).max);\n        vm.assume(withdrawAmount > 0 && withdrawAmount \u003C= depositAmount);\n\n        uint256 priceBefore = target.sharePrice();\n        target.deposit(depositAmount, address(this));\n        target.withdraw(withdrawAmount, address(this), address(this));\n        uint256 priceAfter = target.sharePrice();\n\n        \u002F\u002F This assertion must hold for ALL inputs\n        assert(priceAfter >= priceBefore);\n    }\n}\n```\n\n### Run\n\n```bash\nhalmos --function check_share_price_monotonic --loop 3 --solver-timeout 60\n```\n\n### Interpreting Results\n\n```\n✓ Proved: No counterexample found within bounds → Safety argument supported\n✗ Counterexample found: {symbolic values} violate the property → Convert to Foundry PoC\n? Timeout: Increase --solver-timeout or simplify the property\n```\n\n## Converting Fuzzer Output to Foundry PoC\n\nWhen Echidna\u002FMedusa finds a counterexample, convert the call sequence:\n\n```\nEchidna output:\n  Counterexample:\n    Call 1: deposit(100)\n    Call 2: withdraw(99)\n    Call 3: deposit(1)\n    Property violated: echidna_solvency()\n\nConvert to:\n  function test_exploit_from_fuzzer() public {\n      target.deposit(100);\n      target.withdraw(99);\n      target.deposit(1);\n      assertGe(target.totalAssets(), target.totalLiabilities()); \u002F\u002F should FAIL\n  }\n```\n\nRun the converted test with `forge test -vvvv` to get the full trace for the report.\n",{"name":5,"agents":24,"trigger":27,"description":28},[25,26],"verifier","sast-integrator","When task.phase is 5-medusa-fuzz, 6-echidna, or 7-halmos.","Integration patterns for Echidna, Medusa, and Halmos fuzzing tools. Used by the Verifier when a task's phase field is 5 (medusa-fuzz), 6 (echidna), or 7 (halmos). Provides setup templates, config files, and decision guide for which tool to use when.\n","main","39a25d63191d67efe43cdce5b7507069e2307f0f",".agents\u002Fskills\u002Ffuzzing-integration","https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow","https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1","https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1Te4TcrpgcN4j8DsYqVdjPl4QXVbs5XXo\u002Fview?usp=drive_link","Web3 security researcher \u002F developer","2026-10-18 15:17:21",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add sahil-kaushik1\u002FAuditing-Workflow --skill fuzzing-integration",{"tool":43,"command":44},"bunx","bunx skills add sahil-kaushik1\u002FAuditing-Workflow --skill fuzzing-integration",{"tool":46,"command":47},"pnpm","pnpm dlx skills add sahil-kaushik1\u002FAuditing-Workflow --skill fuzzing-integration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffuzzing-integration\u002FSKILL.md",true,[],[52,58,64,71,78,85],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M79BSEAG0SS9CC2EN1S51K2X","stripe-patterns","https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsync\u002Frendertrust\u002F.claude\u002Fskills\u002Fstripe-patterns\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79BSBAZXQBWCPKYJP38A35B","payment-patterns","https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsync\u002Fkeryk-ai\u002F.claude\u002Fskills\u002Fpayment-patterns\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M79BS8PKZXFGBNQBS2GHNXZW","testing-patterns","Testing patterns for Jest and Playwright. Use when writing tests, setting up test fixtures, or validating RLS enforcement. Routes to existing test conventions.","https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002F.gemini\u002Fskills\u002Ftesting-patterns\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M79BS3PR92A4QNEJAFNDKB2G","team-coordination","Agent Teams orchestration patterns for multi-agent SAFe workflows. Use when spawning agent teams, coordinating teammates, enforcing quality gates via task dependencies, or orchestrating the 11-agent SAFe pipeline. Covers team creation, messaging, shared task lists, and SAFe gate enforcement. Do NOT use for single-agent or simple subagent workflows.","https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002F.gemini\u002Fskills\u002Fteam-coordination\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M79BRZ422QD8D5QHQMXAVPWZ","task-compilation","Compile broad audit goals into structured proof obligations with 9 mandatory fields. Used after decomposition by the Threat Modeler agent.","https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002F.gemini\u002Fskills\u002Ftask-compilation\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M79BRV2MK2AJZBNSE2BETP28","storage-layout-analysis","Proxy patterns, slot collisions, upgrade safety. Used during decomposition to identify storage-related vulnerabilities in upgradeable contracts.","https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002F.gemini\u002Fskills\u002Fstorage-layout-analysis\u002FSKILL.md",[],[]]