[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79BRM3BEHN2X0TM0V0W2F5M":3,"skill-same:01M79BRM3BEHN2X0TM0V0W2F5M":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},"01M79BRM3BEHN2X0TM0V0W2F5M","solidity-decomposition",null,"Solidity-specific decomposition - storage layout, inheritance tree, modifier chains, event emissions, error paths. Used during project ingestion by the Decomposer 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.gemini\u002Fskills\u002Fsolidity-decomposition\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: solidity-decomposition\ndescription: Solidity-specific decomposition - storage layout, inheritance tree, modifier chains, event emissions, error paths. Used during project ingestion by the Decomposer agent.\ntrigger: Project ingestion — when the Decomposer begins Stage 1 analysis of a new Solidity codebase.\nagents: [decomposer, sast-integrator]\n---\n\n# Solidity Decomposition Skill\n\n> **Trigger**: Project ingestion — when the Decomposer analyzes a new Solidity project.\n> **Purpose**: Extract Solidity-specific structural facts that feed the 10-dimension decomposition.\n\n---\n\n## Overview\n\nThis skill provides protocols for extracting Solidity-specific structural information that\ngeneric decomposition misses. It covers: inheritance hierarchies, storage layout analysis,\nmodifier chains, event\u002Ferror catalogs, external call enumeration, and library usage patterns.\n\n---\n\n## Protocol\n\n### 1. Inheritance Tree Extraction\n\nMap the full inheritance hierarchy. Identify diamond inheritance, virtual overrides,\nand shadowed functions.\n\n```bash\n# Extract all inheritance declarations\ngrep -rn \"contract\\|is \" --include=\"*.sol\" | grep \" is \"\n\n# Identify interfaces vs abstract contracts vs concrete contracts\ngrep -rn \"^interface \\|^abstract contract \\|^contract \" --include=\"*.sol\"\n\n# Check for diamond inheritance (same base in multiple paths)\n# Slither can produce this automatically:\nslither . --print inheritance-graph 2>\u002Fdev\u002Fnull\n```\n\n#### Output Table\n\n| Contract | Inherits From | Type | Virtual Functions | Overrides |\n|----------|--------------|------|-------------------|-----------|\n| Vault | ERC4626, Ownable, ReentrancyGuard | Concrete | - | deposit, withdraw |\n\n### 2. Storage Layout Analysis\n\nMap all state variables with their storage slots. Critical for proxy\u002Fupgrade patterns.\n\n```bash\n# Foundry storage layout inspection\nforge inspect {ContractName} storage-layout --pretty 2>\u002Fdev\u002Fnull\n\n# Manual state variable extraction\ngrep -rn \"^\\s*\\(uint\\|int\\|address\\|bool\\|bytes\\|string\\|mapping\\|struct\\)\" --include=\"*.sol\" | grep -v \"function\\|event\\|error\\|\u002F\u002F\\|memory\\|calldata\"\n\n# Identify immutable and constant variables (not in storage)\ngrep -rn \"immutable\\|constant\" --include=\"*.sol\"\n```\n\n#### Output Table\n\n| Contract | Variable | Type | Slot | Offset | Notes |\n|----------|----------|------|------|--------|-------|\n| Vault | totalAssets | uint256 | 0 | 0 | - |\n| Vault | _balances | mapping(address => uint256) | 1 | 0 | Inherited from ERC20 |\n\n### 3. Modifier Chain Analysis\n\nCatalog all modifiers and which functions use them. Missing modifiers = missing access control.\n\n```bash\n# Extract all modifier definitions\ngrep -rn \"modifier \" --include=\"*.sol\"\n\n# Extract all function declarations with modifiers\ngrep -rn \"function.*\\(onlyOwner\\|nonReentrant\\|whenNotPaused\\|onlyRole\\)\" --include=\"*.sol\"\n\n# Find external\u002Fpublic functions WITHOUT access control modifiers\ngrep -rn \"function.*\\(external\\|public\\)\" --include=\"*.sol\" | grep -v \"view\\|pure\\|onlyOwner\\|onlyRole\\|nonReentrant\\|whenNotPaused\\|internal\\|private\\|override\"\n```\n\n#### Output Table\n\n| Contract | Modifier | Applied To | Purpose |\n|----------|----------|-----------|---------|\n| Vault | onlyOwner | setFee, pause | Admin access control |\n| Vault | nonReentrant | deposit, withdraw | Reentrancy protection |\n\n### 4. Event Emission Catalog\n\nEvents are the protocol's audit trail. Missing events = missing observability.\n\n```bash\n# Extract all event definitions\ngrep -rn \"event \" --include=\"*.sol\" | grep -v \"\u002F\u002F\"\n\n# Extract all event emissions\ngrep -rn \"emit \" --include=\"*.sol\"\n\n# Find state-changing functions that DON'T emit events\n# (Compare external\u002Fpublic non-view functions against emit locations)\n```\n\n#### Output Table\n\n| Contract | Event | Emitted In | Parameters |\n|----------|-------|-----------|------------|\n| Vault | Deposit | deposit() | sender, assets, shares |\n| Vault | Withdraw | withdraw() | sender, receiver, assets, shares |\n\n### 5. Error Path Analysis\n\nCatalog all revert conditions. Missing reverts = missing validation.\n\n```bash\n# Custom errors\ngrep -rn \"error \" --include=\"*.sol\" | grep -v \"\u002F\u002F\"\n\n# Require statements\ngrep -rn \"require(\" --include=\"*.sol\"\n\n# Revert statements\ngrep -rn \"revert \" --include=\"*.sol\" | grep -v \"\u002F\u002F\"\n\n# Assert statements (should be rare — invariant checks only)\ngrep -rn \"assert(\" --include=\"*.sol\"\n```\n\n### 6. External Call Enumeration\n\nEvery external call is a potential trust boundary crossing.\n\n```bash\n# Low-level calls\ngrep -rn \"\\.call\\|\\.delegatecall\\|\\.staticcall\" --include=\"*.sol\"\n\n# High-level external calls (interface calls)\ngrep -rn \"I[A-Z].*\\.\" --include=\"*.sol\" | grep -v \"import\\|\u002F\u002F\\|event\\|error\"\n\n# Token transfers\ngrep -rn \"\\.transfer\\|\\.transferFrom\\|\\.safeTransfer\\|\\.safeTransferFrom\" --include=\"*.sol\"\n\n# Approvals\ngrep -rn \"\\.approve\\|\\.safeApprove\\|\\.forceApprove\" --include=\"*.sol\"\n```\n\n### 7. Library Usage\n\nLibraries change execution context (delegatecall vs internal).\n\n```bash\n# Library declarations\ngrep -rn \"^library \" --include=\"*.sol\"\n\n# Using-for directives\ngrep -rn \"using .* for\" --include=\"*.sol\"\n```\n\n---\n\n## Output Format\n\nSave all structural facts to `specs\u002Fdecomposition\u002Fsolidity-structure.md`:\n\n```markdown\n# Solidity Structure Decomposition\n\n## Inheritance Hierarchy\n[Inheritance tree with diamond detection]\n\n## Storage Layout\n[Per-contract slot mapping]\n\n## Modifier Coverage\n[Functions × Modifiers matrix, highlighting unprotected externals]\n\n## Event Coverage\n[State-changing functions × Events, highlighting silent mutations]\n\n## Error Conditions\n[Validation catalog: requires, custom errors, asserts]\n\n## External Call Map\n[All outbound calls with trust level annotations]\n\n## Library Usage\n[Using-for directives and execution context]\n```\n\n---\n\n## Key Observations to Surface\n\nFor the Threat Modeler, always highlight:\n1. **Unprotected external functions** — public\u002Fexternal without access control\n2. **State changes after external calls** — potential reentrancy\n3. **Missing events on state changes** — observability gaps\n4. **Complex inheritance** — function resolution order issues\n5. **Storage gaps in upgradeable contracts** — slot collision risks\n6. **Unchecked return values** — silent failures\n","# Solidity Decomposition Skill\n\n> **Trigger**: Project ingestion — when the Decomposer analyzes a new Solidity project.\n> **Purpose**: Extract Solidity-specific structural facts that feed the 10-dimension decomposition.\n\n---\n\n## Overview\n\nThis skill provides protocols for extracting Solidity-specific structural information that\ngeneric decomposition misses. It covers: inheritance hierarchies, storage layout analysis,\nmodifier chains, event\u002Ferror catalogs, external call enumeration, and library usage patterns.\n\n---\n\n## Protocol\n\n### 1. Inheritance Tree Extraction\n\nMap the full inheritance hierarchy. Identify diamond inheritance, virtual overrides,\nand shadowed functions.\n\n```bash\n# Extract all inheritance declarations\ngrep -rn \"contract\\|is \" --include=\"*.sol\" | grep \" is \"\n\n# Identify interfaces vs abstract contracts vs concrete contracts\ngrep -rn \"^interface \\|^abstract contract \\|^contract \" --include=\"*.sol\"\n\n# Check for diamond inheritance (same base in multiple paths)\n# Slither can produce this automatically:\nslither . --print inheritance-graph 2>\u002Fdev\u002Fnull\n```\n\n#### Output Table\n\n| Contract | Inherits From | Type | Virtual Functions | Overrides |\n|----------|--------------|------|-------------------|-----------|\n| Vault | ERC4626, Ownable, ReentrancyGuard | Concrete | - | deposit, withdraw |\n\n### 2. Storage Layout Analysis\n\nMap all state variables with their storage slots. Critical for proxy\u002Fupgrade patterns.\n\n```bash\n# Foundry storage layout inspection\nforge inspect {ContractName} storage-layout --pretty 2>\u002Fdev\u002Fnull\n\n# Manual state variable extraction\ngrep -rn \"^\\s*\\(uint\\|int\\|address\\|bool\\|bytes\\|string\\|mapping\\|struct\\)\" --include=\"*.sol\" | grep -v \"function\\|event\\|error\\|\u002F\u002F\\|memory\\|calldata\"\n\n# Identify immutable and constant variables (not in storage)\ngrep -rn \"immutable\\|constant\" --include=\"*.sol\"\n```\n\n#### Output Table\n\n| Contract | Variable | Type | Slot | Offset | Notes |\n|----------|----------|------|------|--------|-------|\n| Vault | totalAssets | uint256 | 0 | 0 | - |\n| Vault | _balances | mapping(address => uint256) | 1 | 0 | Inherited from ERC20 |\n\n### 3. Modifier Chain Analysis\n\nCatalog all modifiers and which functions use them. Missing modifiers = missing access control.\n\n```bash\n# Extract all modifier definitions\ngrep -rn \"modifier \" --include=\"*.sol\"\n\n# Extract all function declarations with modifiers\ngrep -rn \"function.*\\(onlyOwner\\|nonReentrant\\|whenNotPaused\\|onlyRole\\)\" --include=\"*.sol\"\n\n# Find external\u002Fpublic functions WITHOUT access control modifiers\ngrep -rn \"function.*\\(external\\|public\\)\" --include=\"*.sol\" | grep -v \"view\\|pure\\|onlyOwner\\|onlyRole\\|nonReentrant\\|whenNotPaused\\|internal\\|private\\|override\"\n```\n\n#### Output Table\n\n| Contract | Modifier | Applied To | Purpose |\n|----------|----------|-----------|---------|\n| Vault | onlyOwner | setFee, pause | Admin access control |\n| Vault | nonReentrant | deposit, withdraw | Reentrancy protection |\n\n### 4. Event Emission Catalog\n\nEvents are the protocol's audit trail. Missing events = missing observability.\n\n```bash\n# Extract all event definitions\ngrep -rn \"event \" --include=\"*.sol\" | grep -v \"\u002F\u002F\"\n\n# Extract all event emissions\ngrep -rn \"emit \" --include=\"*.sol\"\n\n# Find state-changing functions that DON'T emit events\n# (Compare external\u002Fpublic non-view functions against emit locations)\n```\n\n#### Output Table\n\n| Contract | Event | Emitted In | Parameters |\n|----------|-------|-----------|------------|\n| Vault | Deposit | deposit() | sender, assets, shares |\n| Vault | Withdraw | withdraw() | sender, receiver, assets, shares |\n\n### 5. Error Path Analysis\n\nCatalog all revert conditions. Missing reverts = missing validation.\n\n```bash\n# Custom errors\ngrep -rn \"error \" --include=\"*.sol\" | grep -v \"\u002F\u002F\"\n\n# Require statements\ngrep -rn \"require(\" --include=\"*.sol\"\n\n# Revert statements\ngrep -rn \"revert \" --include=\"*.sol\" | grep -v \"\u002F\u002F\"\n\n# Assert statements (should be rare — invariant checks only)\ngrep -rn \"assert(\" --include=\"*.sol\"\n```\n\n### 6. External Call Enumeration\n\nEvery external call is a potential trust boundary crossing.\n\n```bash\n# Low-level calls\ngrep -rn \"\\.call\\|\\.delegatecall\\|\\.staticcall\" --include=\"*.sol\"\n\n# High-level external calls (interface calls)\ngrep -rn \"I[A-Z].*\\.\" --include=\"*.sol\" | grep -v \"import\\|\u002F\u002F\\|event\\|error\"\n\n# Token transfers\ngrep -rn \"\\.transfer\\|\\.transferFrom\\|\\.safeTransfer\\|\\.safeTransferFrom\" --include=\"*.sol\"\n\n# Approvals\ngrep -rn \"\\.approve\\|\\.safeApprove\\|\\.forceApprove\" --include=\"*.sol\"\n```\n\n### 7. Library Usage\n\nLibraries change execution context (delegatecall vs internal).\n\n```bash\n# Library declarations\ngrep -rn \"^library \" --include=\"*.sol\"\n\n# Using-for directives\ngrep -rn \"using .* for\" --include=\"*.sol\"\n```\n\n---\n\n## Output Format\n\nSave all structural facts to `specs\u002Fdecomposition\u002Fsolidity-structure.md`:\n\n```markdown\n# Solidity Structure Decomposition\n\n## Inheritance Hierarchy\n[Inheritance tree with diamond detection]\n\n## Storage Layout\n[Per-contract slot mapping]\n\n## Modifier Coverage\n[Functions × Modifiers matrix, highlighting unprotected externals]\n\n## Event Coverage\n[State-changing functions × Events, highlighting silent mutations]\n\n## Error Conditions\n[Validation catalog: requires, custom errors, asserts]\n\n## External Call Map\n[All outbound calls with trust level annotations]\n\n## Library Usage\n[Using-for directives and execution context]\n```\n\n---\n\n## Key Observations to Surface\n\nFor the Threat Modeler, always highlight:\n1. **Unprotected external functions** — public\u002Fexternal without access control\n2. **State changes after external calls** — potential reentrancy\n3. **Missing events on state changes** — observability gaps\n4. **Complex inheritance** — function resolution order issues\n5. **Storage gaps in upgradeable contracts** — slot collision risks\n6. **Unchecked return values** — silent failures\n",{"name":5,"agents":24,"trigger":27,"description":7},[25,26],"decomposer","sast-integrator","Project ingestion — when the Decomposer begins Stage 1 analysis of a new Solidity codebase.","main","39a25d63191d67efe43cdce5b7507069e2307f0f",".gemini\u002Fskills\u002Fsolidity-decomposition","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 solidity-decomposition",{"tool":42,"command":43},"bunx","bunx skills add sahil-kaushik1\u002FAuditing-Workflow --skill solidity-decomposition",{"tool":45,"command":46},"pnpm","pnpm dlx skills add sahil-kaushik1\u002FAuditing-Workflow --skill solidity-decomposition","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsahil-kaushik1\u002FAuditing-Workflow\u002Fblob\u002Fmain\u002F.gemini\u002Fskills\u002Fsolidity-decomposition\u002FSKILL.md",true,[],[51,57,63,70,77,84],{"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":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"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":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"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",[],[]]