[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79BNVAF39X1ERNH6NB6X1QT":3,"skill-same:01M79BNVAF39X1ERNH6NB6X1QT":50},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M79BNVAF39X1ERNH6NB6X1QT","task-compilation",null,"Compile broad audit goals into structured proof obligations with 9 mandatory fields. Used after decomposition by the Threat Modeler 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.claude\u002Fskills\u002Ftask-compilation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: task-compilation\ndescription: Compile broad audit goals into structured proof obligations with 9 mandatory fields. Used after decomposition by the Threat Modeler agent.\ntrigger: After decomposition is complete and passes the Decomposition Gate.\nagents: [threat-modeler, judge]\n---\n\n# Task Compilation Skill\n\n> **Trigger**: After decomposition completes and passes the Judge's Decomposition Gate.\n> **Purpose**: Transform decomposition artifacts into precise, executable proof obligations.\n\n---\n\n## Overview\n\nA task is NOT a checklist item. It is a **proof obligation** — a contract between the system\nand the Deep Reasoner that defines exactly what to examine, where to look, what would prove\ndanger, and what would prove safety. This skill enforces the protocol for creating high-quality\ntasks that maximize reasoning efficiency.\n\n---\n\n## The 9 Mandatory Fields\n\nEvery task MUST contain all 9 fields. No exceptions. No \"TBD\" values.\n\n### Field 1: Target\n**What**: The exact contract + function(s) under examination.\n**Quality Bar**: Must be a specific function, not a vague area.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| `PnlAccounting.updateState()` | \"The accounting system\" |\n| `Vault.withdraw(uint256, address, address)` | \"Vault withdrawal flow\" |\n| `Router.swap() → Pool.execute()` | \"Check the router\" |\n\n### Field 2: Execution Path\n**What**: The specific call chain being analyzed.\n**Quality Bar**: Must trace through specific functions, not hand-wave.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| `withdraw → _burn → _convertToAssets → totalAssets()` | \"The withdrawal path\" |\n| `deposit → _mint → _convertToShares → previewDeposit` | \"How deposits work\" |\n\n### Field 3: Relevant State\n**What**: All state variables, storage slots, and external dependencies that matter.\n**Quality Bar**: Specific variable names with types.\n\n```markdown\n- `totalAssets` (uint256) — cached total assets value\n- `_balances[msg.sender]` (uint256) — user's share balance\n- `lastUpdateTime` (uint256) — timestamp of last oracle update\n```\n\n### Field 4: Attacker Capabilities\n**What**: What the attacker can realistically do.\n**Quality Bar**: Specific about resources and permissions.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| \"Can flash-loan up to 100M USDC. Can call all non-admin external functions. Can frontrun in the same block.\" | \"An attacker\" |\n| \"Owns governance tokens but below quorum threshold. Can propose but not pass.\" | \"Has some governance power\" |\n\n### Field 5: Invariant\n**What**: The property that MUST hold true. State as a formal condition.\n**Quality Bar**: Must be mathematically precise or logically unambiguous.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| `totalSupply * pricePerShare == totalAssets ± 1 wei` | \"Prices should be correct\" |\n| `balanceOf(vault) >= sum(userDeposits) - sum(userWithdrawals)` | \"Vault should be solvent\" |\n\n### Field 6: Failure Predicate\n**What**: The EXACT condition that proves the invariant is broken.\n**Quality Bar**: Must be **falsifiable** — you can write a test that checks this.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| `totalAssets \u003C totalLiabilities achievable by non-privileged caller in single tx` | \"System might become insolvent\" |\n| `shares_received == 0 when assets_deposited > 0` | \"Deposits might not give shares\" |\n\n### Field 7: Required Witness\n**What**: What concrete evidence is needed to prove the issue.\n**Quality Bar**: Specific about the form of evidence.\n\n```markdown\n# Good witness requirements:\n\"Concrete calldata sequence (function calls + parameters + ordering) starting\nfrom a valid protocol state that causes totalAssets \u003C totalLiabilities.\"\n\n\"A specific (amount, timestamp) pair where withdraw() reverts for a user\nwho should be able to withdraw.\"\n```\n\n### Field 8: Completion Contract\n**What**: Binary condition — what counts as DONE. No ambiguity.\n**Quality Bar**: Must be binary (done or not done).\n\n```markdown\n# Template:\n\"COMPLETE when EITHER:\n(a) A concrete witness is produced that satisfies the failure predicate, OR\n(b) Safety is proven with path-exhaustive evidence showing the invariant holds\n    on all reachable states along this execution path.\"\n```\n\n### Field 9: Drift Anchors\n**What**: 3-5 keywords that anchor the reasoner. The Judge checks output against these.\n**Quality Bar**: Specific to this task, not generic.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| `[\"share inflation\", \"first depositor\", \"rounding\"]` | `[\"security\", \"vulnerability\"]` |\n| `[\"oracle staleness\", \"price deviation\", \"TWAP\"]` | `[\"price\", \"attack\"]` |\n\n---\n\n## Task Generation Protocol\n\n### Step 1: Identify Invariants from Decomposition\n\nRead `specs\u002Fdecomposition\u002Finvariant-decomposition.md` and extract all formal invariants.\n\n### Step 2: Map Invariants to Paths\n\nFor each invariant, identify which execution paths can affect it:\n- Which entrypoints modify the relevant state?\n- Which external calls introduce external dependencies?\n- Which state transitions touch the invariant's variables?\n\n### Step 3: Generate Tasks (Invariant × Path)\n\nFor each (invariant, path) pair where violation seems possible:\n1. Fill all 9 fields\n2. Assign priority: Critical \u002F High \u002F Medium \u002F Low\n3. Assign reasoning depth: Deep \u002F Fast\n\n### Step 4: Cross-Contract Tasks (CRITICAL)\n\nGenerate tasks for multi-contract flows:\n- **Mint path A + burn path B**: Can different contracts desync accounting?\n- **Oracle contract A used by contracts B and C**: Consistent consumption?\n- **Liquidation across contracts**: Bad debt creation?\n- **Multi-step user journeys**: State corruption across txs?\n\n### Step 5: Deduplication\n\nCheck for heavily overlapping tasks. Two tasks overlap if they:\n- Target the same function AND the same invariant\n- Differ only in attacker capabilities (merge them)\n- Are sub-paths of another task (keep the broader one)\n\n---\n\n## Quality Checklist (Judge Uses This)\n\nPer task:\n- [ ] All 9 fields present and non-empty\n- [ ] Target is a specific function, not a vague area\n- [ ] Failure predicate is falsifiable\n- [ ] Completion contract is binary\n- [ ] Drift anchors are specific (not \"security\" or \"vulnerability\")\n- [ ] Required witness is concrete\n- [ ] Attacker capabilities are realistic\n\nPer task set:\n- [ ] No heavily overlapping tasks\n- [ ] Business-flow tasks present (cross-contract)\n- [ ] Coverage across all identified invariants\n- [ ] Priority distribution is reasonable (not everything is Critical)\n\n---\n\n## Common Anti-Patterns\n\n| Anti-Pattern | Why It Fails | Fix |\n|-------------|-------------|-----|\n| \"Check for reentrancy\" | No target path, no invariant | Specify exact function, call chain, and what state must be consistent |\n| \"Look for access control issues\" | No failure predicate | Define what unauthorized action specifically could occur |\n| \"There may be a risk with X\" | Not a task, it's a hypothesis | Convert to a 9-field task or discard |\n| Overlapping tasks | Wastes reasoning budget | Merge or pick the broader one |\n| Missing business-flow tasks | Cross-contract bugs are missed | Generate tasks for multi-step user journeys |\n| Generic drift anchors | Reasoner will drift | Use task-specific keywords |\n\n---\n\n## Output\n\nSave tasks to: `specs\u002Ftasks\u002FTASK-{number}-{short-name}.md`\nSave index to: `specs\u002Ftasks\u002FINDEX.md`\n","# Task Compilation Skill\n\n> **Trigger**: After decomposition completes and passes the Judge's Decomposition Gate.\n> **Purpose**: Transform decomposition artifacts into precise, executable proof obligations.\n\n---\n\n## Overview\n\nA task is NOT a checklist item. It is a **proof obligation** — a contract between the system\nand the Deep Reasoner that defines exactly what to examine, where to look, what would prove\ndanger, and what would prove safety. This skill enforces the protocol for creating high-quality\ntasks that maximize reasoning efficiency.\n\n---\n\n## The 9 Mandatory Fields\n\nEvery task MUST contain all 9 fields. No exceptions. No \"TBD\" values.\n\n### Field 1: Target\n**What**: The exact contract + function(s) under examination.\n**Quality Bar**: Must be a specific function, not a vague area.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| `PnlAccounting.updateState()` | \"The accounting system\" |\n| `Vault.withdraw(uint256, address, address)` | \"Vault withdrawal flow\" |\n| `Router.swap() → Pool.execute()` | \"Check the router\" |\n\n### Field 2: Execution Path\n**What**: The specific call chain being analyzed.\n**Quality Bar**: Must trace through specific functions, not hand-wave.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| `withdraw → _burn → _convertToAssets → totalAssets()` | \"The withdrawal path\" |\n| `deposit → _mint → _convertToShares → previewDeposit` | \"How deposits work\" |\n\n### Field 3: Relevant State\n**What**: All state variables, storage slots, and external dependencies that matter.\n**Quality Bar**: Specific variable names with types.\n\n```markdown\n- `totalAssets` (uint256) — cached total assets value\n- `_balances[msg.sender]` (uint256) — user's share balance\n- `lastUpdateTime` (uint256) — timestamp of last oracle update\n```\n\n### Field 4: Attacker Capabilities\n**What**: What the attacker can realistically do.\n**Quality Bar**: Specific about resources and permissions.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| \"Can flash-loan up to 100M USDC. Can call all non-admin external functions. Can frontrun in the same block.\" | \"An attacker\" |\n| \"Owns governance tokens but below quorum threshold. Can propose but not pass.\" | \"Has some governance power\" |\n\n### Field 5: Invariant\n**What**: The property that MUST hold true. State as a formal condition.\n**Quality Bar**: Must be mathematically precise or logically unambiguous.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| `totalSupply * pricePerShare == totalAssets ± 1 wei` | \"Prices should be correct\" |\n| `balanceOf(vault) >= sum(userDeposits) - sum(userWithdrawals)` | \"Vault should be solvent\" |\n\n### Field 6: Failure Predicate\n**What**: The EXACT condition that proves the invariant is broken.\n**Quality Bar**: Must be **falsifiable** — you can write a test that checks this.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| `totalAssets \u003C totalLiabilities achievable by non-privileged caller in single tx` | \"System might become insolvent\" |\n| `shares_received == 0 when assets_deposited > 0` | \"Deposits might not give shares\" |\n\n### Field 7: Required Witness\n**What**: What concrete evidence is needed to prove the issue.\n**Quality Bar**: Specific about the form of evidence.\n\n```markdown\n# Good witness requirements:\n\"Concrete calldata sequence (function calls + parameters + ordering) starting\nfrom a valid protocol state that causes totalAssets \u003C totalLiabilities.\"\n\n\"A specific (amount, timestamp) pair where withdraw() reverts for a user\nwho should be able to withdraw.\"\n```\n\n### Field 8: Completion Contract\n**What**: Binary condition — what counts as DONE. No ambiguity.\n**Quality Bar**: Must be binary (done or not done).\n\n```markdown\n# Template:\n\"COMPLETE when EITHER:\n(a) A concrete witness is produced that satisfies the failure predicate, OR\n(b) Safety is proven with path-exhaustive evidence showing the invariant holds\n    on all reachable states along this execution path.\"\n```\n\n### Field 9: Drift Anchors\n**What**: 3-5 keywords that anchor the reasoner. The Judge checks output against these.\n**Quality Bar**: Specific to this task, not generic.\n\n| ✅ Good | ❌ Bad |\n|---------|--------|\n| `[\"share inflation\", \"first depositor\", \"rounding\"]` | `[\"security\", \"vulnerability\"]` |\n| `[\"oracle staleness\", \"price deviation\", \"TWAP\"]` | `[\"price\", \"attack\"]` |\n\n---\n\n## Task Generation Protocol\n\n### Step 1: Identify Invariants from Decomposition\n\nRead `specs\u002Fdecomposition\u002Finvariant-decomposition.md` and extract all formal invariants.\n\n### Step 2: Map Invariants to Paths\n\nFor each invariant, identify which execution paths can affect it:\n- Which entrypoints modify the relevant state?\n- Which external calls introduce external dependencies?\n- Which state transitions touch the invariant's variables?\n\n### Step 3: Generate Tasks (Invariant × Path)\n\nFor each (invariant, path) pair where violation seems possible:\n1. Fill all 9 fields\n2. Assign priority: Critical \u002F High \u002F Medium \u002F Low\n3. Assign reasoning depth: Deep \u002F Fast\n\n### Step 4: Cross-Contract Tasks (CRITICAL)\n\nGenerate tasks for multi-contract flows:\n- **Mint path A + burn path B**: Can different contracts desync accounting?\n- **Oracle contract A used by contracts B and C**: Consistent consumption?\n- **Liquidation across contracts**: Bad debt creation?\n- **Multi-step user journeys**: State corruption across txs?\n\n### Step 5: Deduplication\n\nCheck for heavily overlapping tasks. Two tasks overlap if they:\n- Target the same function AND the same invariant\n- Differ only in attacker capabilities (merge them)\n- Are sub-paths of another task (keep the broader one)\n\n---\n\n## Quality Checklist (Judge Uses This)\n\nPer task:\n- [ ] All 9 fields present and non-empty\n- [ ] Target is a specific function, not a vague area\n- [ ] Failure predicate is falsifiable\n- [ ] Completion contract is binary\n- [ ] Drift anchors are specific (not \"security\" or \"vulnerability\")\n- [ ] Required witness is concrete\n- [ ] Attacker capabilities are realistic\n\nPer task set:\n- [ ] No heavily overlapping tasks\n- [ ] Business-flow tasks present (cross-contract)\n- [ ] Coverage across all identified invariants\n- [ ] Priority distribution is reasonable (not everything is Critical)\n\n---\n\n## Common Anti-Patterns\n\n| Anti-Pattern | Why It Fails | Fix |\n|-------------|-------------|-----|\n| \"Check for reentrancy\" | No target path, no invariant | Specify exact function, call chain, and what state must be consistent |\n| \"Look for access control issues\" | No failure predicate | Define what unauthorized action specifically could occur |\n| \"There may be a risk with X\" | Not a task, it's a hypothesis | Convert to a 9-field task or discard |\n| Overlapping tasks | Wastes reasoning budget | Merge or pick the broader one |\n| Missing business-flow tasks | Cross-contract bugs are missed | Generate tasks for multi-step user journeys |\n| Generic drift anchors | Reasoner will drift | Use task-specific keywords |\n\n---\n\n## Output\n\nSave tasks to: `specs\u002Ftasks\u002FTASK-{number}-{short-name}.md`\nSave index to: `specs\u002Ftasks\u002FINDEX.md`\n",{"name":5,"agents":24,"trigger":27,"description":7},[25,26],"threat-modeler","judge","After decomposition is complete and passes the Decomposition Gate.","main","39a25d63191d67efe43cdce5b7507069e2307f0f",".claude\u002Fskills\u002Ftask-compilation","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":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add sahil-kaushik1\u002FAuditing-Workflow --skill task-compilation",{"tool":42,"command":43},"bunx","bunx skills add sahil-kaushik1\u002FAuditing-Workflow --skill task-compilation",{"tool":45,"command":46},"pnpm","pnpm dlx skills add sahil-kaushik1\u002FAuditing-Workflow --skill task-compilation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftask-compilation\u002FSKILL.md",true,[],[51,57,63,70,77,82],{"skillNo":52,"name":53,"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":54,"categories":55,"keywords":56,"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":58,"name":59,"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":60,"categories":61,"keywords":62,"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":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"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":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"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":78,"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":79,"categories":80,"keywords":81,"publishedAt":19},"01M79BRZ422QD8D5QHQMXAVPWZ","https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002F.gemini\u002Fskills\u002Ftask-compilation\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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",[],[]]