[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79BGVF50H5WAPV22268CXC0":3,"skill-same:01M79BGVF50H5WAPV22268CXC0":49},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M79BGVF50H5WAPV22268CXC0","foundry-harness",null,"Foundry test generation for PoC creation, invariant testing, and fuzz testing. Used during verification by the Verifier agent.","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\u002Ffoundry-harness\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: foundry-harness\ndescription: Foundry test generation for PoC creation, invariant testing, and fuzz testing. Used during verification by the Verifier agent.\ntrigger: During verification — when the Verifier needs to reproduce or refute a vulnerability hypothesis.\nagents: [verifier]\n---\n\n# Foundry Harness Skill\n\n> **Trigger**: During verification — when the Verifier builds executable evidence.\n> **Purpose**: Generate Foundry test harnesses for PoC creation, invariant testing, and fuzzing.\n\n---\n\n## Overview\n\nEvery vulnerability claim must be backed by executable evidence. This skill provides\ntemplates and protocols for building Foundry tests that either **confirm** or **refute**\nthe Deep Reasoner's hypotheses.\n\n---\n\n## Test Types\n\n### 1. Exploit PoC (Confirm a Vulnerability)\n\n```solidity\n\u002F\u002F SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"forge-std\u002FTest.sol\";\n\u002F\u002F Import target contracts\n\ncontract TASK_{N}_Exploit is Test {\n    \u002F\u002F Contract instances\n    \u002F\u002F Attacker address\n\n    function setUp() public {\n        \u002F\u002F Option A: Fork mainnet at specific block\n        \u002F\u002F vm.createSelectFork(vm.envString(\"RPC_URL\"), blockNumber);\n\n        \u002F\u002F Option B: Deploy fresh contracts\n        \u002F\u002F target = new TargetContract(params);\n\n        \u002F\u002F Set up attacker\n        \u002F\u002F vm.deal(attacker, 100 ether);\n        \u002F\u002F deal(address(token), attacker, 1_000_000e18);\n    }\n\n    function test_exploit() public {\n        \u002F\u002F Record pre-state\n        uint256 preBalance = token.balanceOf(attacker);\n\n        \u002F\u002F Execute attack sequence\n        vm.startPrank(attacker);\n        \u002F\u002F Step 1: ...\n        \u002F\u002F Step 2: ...\n        \u002F\u002F Step 3: ...\n        vm.stopPrank();\n\n        \u002F\u002F Assert the failure predicate from the task\n        uint256 postBalance = token.balanceOf(attacker);\n        assertGt(postBalance, preBalance, \"Attacker should have profited\");\n    }\n}\n```\n\n### 2. Invariant Test (Prove Safety)\n\n```solidity\ncontract TASK_{N}_Invariant is Test {\n    function setUp() public {\n        \u002F\u002F Deploy contracts, set up initial state\n    }\n\n    function test_invariant_holds() public {\n        \u002F\u002F Execute the path from the task\n        \u002F\u002F Assert the invariant HOLDS\n        assertGe(vault.totalAssets(), vault.totalLiabilities());\n    }\n\n    function test_boundary_values() public {\n        \u002F\u002F Test with: 0, 1, type(uint256).max, dust amounts\n        \u002F\u002F Test with: max array lengths, empty arrays\n    }\n}\n```\n\n### 3. Fuzz Test (Search for Violations)\n\n```solidity\ncontract TASK_{N}_Fuzz is Test {\n    function setUp() public {\n        \u002F\u002F Deploy contracts\n    }\n\n    function testFuzz_invariant(uint256 amount, address user) public {\n        vm.assume(amount > 0 && amount \u003C type(uint128).max);\n        vm.assume(user != address(0));\n\n        \u002F\u002F Execute with fuzzed inputs\n        vm.prank(user);\n        \u002F\u002F ... execute path\n\n        \u002F\u002F Assert invariant\n        assertGe(totalAssets, totalLiabilities);\n    }\n}\n```\n\n---\n\n## Foundry Cheatcodes Reference\n\n### State Manipulation\n```solidity\nvm.prank(address)           \u002F\u002F Next call from address\nvm.startPrank(address)      \u002F\u002F All calls from address until stopPrank\nvm.deal(address, amount)    \u002F\u002F Set ETH balance\ndeal(token, address, amt)   \u002F\u002F Set ERC20 balance (forge-std)\nvm.store(addr, slot, val)   \u002F\u002F Set storage slot directly\nvm.load(addr, slot)         \u002F\u002F Read storage slot\n```\n\n### Time & Block\n```solidity\nvm.warp(timestamp)          \u002F\u002F Set block.timestamp\nvm.roll(blockNumber)        \u002F\u002F Set block.number\nskip(seconds)               \u002F\u002F Advance time\n```\n\n### Forking\n```solidity\nvm.createSelectFork(rpc, block)  \u002F\u002F Fork at block\nvm.createSelectFork(rpc)         \u002F\u002F Fork at latest\n```\n\n### Assertions\n```solidity\nassertEq(a, b)             \u002F\u002F Equality\nassertGe(a, b)             \u002F\u002F a >= b\nassertGt(a, b)             \u002F\u002F a > b\nassertLe(a, b)             \u002F\u002F a \u003C= b\nassertLt(a, b)             \u002F\u002F a \u003C b\n```\n\n### Events & Reverts\n```solidity\nvm.expectRevert(bytes4(selector))  \u002F\u002F Expect revert\nvm.expectEmit(true, true, false, true)  \u002F\u002F Expect event\n```\n\n---\n\n## Execution Commands\n\n```bash\n# Run specific test\nforge test --match-test test_exploit -vvvv\n\n# Run with gas reporting\nforge test --match-test test_exploit -vvvv --gas-report\n\n# Run fuzz tests (increase runs)\nforge test --match-test testFuzz -vvv --fuzz-runs 10000\n\n# Run on fork\nforge test --match-test test_exploit -vvvv --fork-url $RPC_URL --fork-block-number $BLOCK\n```\n\n---\n\n## Output\n\nSave test files to: `specs\u002Fverification\u002FTASK-{N}-poc.t.sol`\nSave results to: `specs\u002Fverification\u002FTASK-{N}-verification.md`\n\n### Verdict Classification\n\n| Verdict | Criteria |\n|---------|---------|\n| **CONFIRMED** | PoC passes, failure predicate satisfied, attack is reproducible |\n| **REFUTED** | PoC fails, protective mechanism verified, invariant proven to hold |\n| **INCONCLUSIVE** | Cannot construct PoC (missing deps, fork issues, gas limits) |\n\n---\n\n## Constraints\n\n- **DO NOT** modify target contracts to make PoC work\n- **DO NOT** use unrealistic attacker capabilities (e.g., admin access)\n- **DO** test at boundary values (0, 1, max, dust)\n- **DO** record the exact forge command and output\n- **DO** explain WHY the test passes\u002Ffails\n","# Foundry Harness Skill\n\n> **Trigger**: During verification — when the Verifier builds executable evidence.\n> **Purpose**: Generate Foundry test harnesses for PoC creation, invariant testing, and fuzzing.\n\n---\n\n## Overview\n\nEvery vulnerability claim must be backed by executable evidence. This skill provides\ntemplates and protocols for building Foundry tests that either **confirm** or **refute**\nthe Deep Reasoner's hypotheses.\n\n---\n\n## Test Types\n\n### 1. Exploit PoC (Confirm a Vulnerability)\n\n```solidity\n\u002F\u002F SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"forge-std\u002FTest.sol\";\n\u002F\u002F Import target contracts\n\ncontract TASK_{N}_Exploit is Test {\n    \u002F\u002F Contract instances\n    \u002F\u002F Attacker address\n\n    function setUp() public {\n        \u002F\u002F Option A: Fork mainnet at specific block\n        \u002F\u002F vm.createSelectFork(vm.envString(\"RPC_URL\"), blockNumber);\n\n        \u002F\u002F Option B: Deploy fresh contracts\n        \u002F\u002F target = new TargetContract(params);\n\n        \u002F\u002F Set up attacker\n        \u002F\u002F vm.deal(attacker, 100 ether);\n        \u002F\u002F deal(address(token), attacker, 1_000_000e18);\n    }\n\n    function test_exploit() public {\n        \u002F\u002F Record pre-state\n        uint256 preBalance = token.balanceOf(attacker);\n\n        \u002F\u002F Execute attack sequence\n        vm.startPrank(attacker);\n        \u002F\u002F Step 1: ...\n        \u002F\u002F Step 2: ...\n        \u002F\u002F Step 3: ...\n        vm.stopPrank();\n\n        \u002F\u002F Assert the failure predicate from the task\n        uint256 postBalance = token.balanceOf(attacker);\n        assertGt(postBalance, preBalance, \"Attacker should have profited\");\n    }\n}\n```\n\n### 2. Invariant Test (Prove Safety)\n\n```solidity\ncontract TASK_{N}_Invariant is Test {\n    function setUp() public {\n        \u002F\u002F Deploy contracts, set up initial state\n    }\n\n    function test_invariant_holds() public {\n        \u002F\u002F Execute the path from the task\n        \u002F\u002F Assert the invariant HOLDS\n        assertGe(vault.totalAssets(), vault.totalLiabilities());\n    }\n\n    function test_boundary_values() public {\n        \u002F\u002F Test with: 0, 1, type(uint256).max, dust amounts\n        \u002F\u002F Test with: max array lengths, empty arrays\n    }\n}\n```\n\n### 3. Fuzz Test (Search for Violations)\n\n```solidity\ncontract TASK_{N}_Fuzz is Test {\n    function setUp() public {\n        \u002F\u002F Deploy contracts\n    }\n\n    function testFuzz_invariant(uint256 amount, address user) public {\n        vm.assume(amount > 0 && amount \u003C type(uint128).max);\n        vm.assume(user != address(0));\n\n        \u002F\u002F Execute with fuzzed inputs\n        vm.prank(user);\n        \u002F\u002F ... execute path\n\n        \u002F\u002F Assert invariant\n        assertGe(totalAssets, totalLiabilities);\n    }\n}\n```\n\n---\n\n## Foundry Cheatcodes Reference\n\n### State Manipulation\n```solidity\nvm.prank(address)           \u002F\u002F Next call from address\nvm.startPrank(address)      \u002F\u002F All calls from address until stopPrank\nvm.deal(address, amount)    \u002F\u002F Set ETH balance\ndeal(token, address, amt)   \u002F\u002F Set ERC20 balance (forge-std)\nvm.store(addr, slot, val)   \u002F\u002F Set storage slot directly\nvm.load(addr, slot)         \u002F\u002F Read storage slot\n```\n\n### Time & Block\n```solidity\nvm.warp(timestamp)          \u002F\u002F Set block.timestamp\nvm.roll(blockNumber)        \u002F\u002F Set block.number\nskip(seconds)               \u002F\u002F Advance time\n```\n\n### Forking\n```solidity\nvm.createSelectFork(rpc, block)  \u002F\u002F Fork at block\nvm.createSelectFork(rpc)         \u002F\u002F Fork at latest\n```\n\n### Assertions\n```solidity\nassertEq(a, b)             \u002F\u002F Equality\nassertGe(a, b)             \u002F\u002F a >= b\nassertGt(a, b)             \u002F\u002F a > b\nassertLe(a, b)             \u002F\u002F a \u003C= b\nassertLt(a, b)             \u002F\u002F a \u003C b\n```\n\n### Events & Reverts\n```solidity\nvm.expectRevert(bytes4(selector))  \u002F\u002F Expect revert\nvm.expectEmit(true, true, false, true)  \u002F\u002F Expect event\n```\n\n---\n\n## Execution Commands\n\n```bash\n# Run specific test\nforge test --match-test test_exploit -vvvv\n\n# Run with gas reporting\nforge test --match-test test_exploit -vvvv --gas-report\n\n# Run fuzz tests (increase runs)\nforge test --match-test testFuzz -vvv --fuzz-runs 10000\n\n# Run on fork\nforge test --match-test test_exploit -vvvv --fork-url $RPC_URL --fork-block-number $BLOCK\n```\n\n---\n\n## Output\n\nSave test files to: `specs\u002Fverification\u002FTASK-{N}-poc.t.sol`\nSave results to: `specs\u002Fverification\u002FTASK-{N}-verification.md`\n\n### Verdict Classification\n\n| Verdict | Criteria |\n|---------|---------|\n| **CONFIRMED** | PoC passes, failure predicate satisfied, attack is reproducible |\n| **REFUTED** | PoC fails, protective mechanism verified, invariant proven to hold |\n| **INCONCLUSIVE** | Cannot construct PoC (missing deps, fork issues, gas limits) |\n\n---\n\n## Constraints\n\n- **DO NOT** modify target contracts to make PoC work\n- **DO NOT** use unrealistic attacker capabilities (e.g., admin access)\n- **DO** test at boundary values (0, 1, max, dust)\n- **DO** record the exact forge command and output\n- **DO** explain WHY the test passes\u002Ffails\n",{"name":5,"agents":24,"trigger":26,"description":7},[25],"verifier","During verification — when the Verifier needs to reproduce or refute a vulnerability hypothesis.","main","39a25d63191d67efe43cdce5b7507069e2307f0f",".agents\u002Fskills\u002Ffoundry-harness","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":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add sahil-kaushik1\u002FAuditing-Workflow --skill foundry-harness",{"tool":41,"command":42},"bunx","bunx skills add sahil-kaushik1\u002FAuditing-Workflow --skill foundry-harness",{"tool":44,"command":45},"pnpm","pnpm dlx skills add sahil-kaushik1\u002FAuditing-Workflow --skill foundry-harness","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffoundry-harness\u002FSKILL.md",true,[],[50,56,62,69,76,83],{"skillNo":51,"name":52,"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":53,"categories":54,"keywords":55,"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":57,"name":58,"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":59,"categories":60,"keywords":61,"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":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"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":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"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":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"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":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"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",[],[]]