[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75GDWRAQP33PM95CEYXDMTQ":3,"skill-same:01M75GDWRAQP33PM95CEYXDMTQ":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M75GDWRAQP33PM95CEYXDMTQ","solidity-security",null,"Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.","RudyCity\u002Fsuperagent","RudyCity","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F82188919?v=4","01M75FP5X8AW8ACBH0SH34WS7M","01M75FP5YAHJK8M1Q52BWXB82K",70,"MIT","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsolidity-security\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: solidity-security\ndescription: Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.\n---\n\n# Solidity Security\n\nMaster smart contract security best practices, vulnerability prevention, and secure Solidity development patterns.\n\n## When to Use This Skill\n\n- Writing secure smart contracts\n- Auditing existing contracts for vulnerabilities\n- Implementing secure DeFi protocols\n- Preventing reentrancy, overflow, and access control issues\n- Optimizing gas usage while maintaining security\n- Preparing contracts for professional audits\n- Understanding common attack vectors\n\n## Detailed patterns and worked examples\n\nDetailed pattern documentation lives in `references\u002Fdetails.md`. Read that file when the navigation tier above is insufficient.\n\n## Testing for Security\n\n```javascript\n\u002F\u002F Hardhat test example\nconst { expect } = require(\"chai\");\nconst { ethers } = require(\"hardhat\");\n\ndescribe(\"Security Tests\", function () {\n  it(\"Should prevent reentrancy attack\", async function () {\n    const [attacker] = await ethers.getSigners();\n\n    const VictimBank = await ethers.getContractFactory(\"SecureBank\");\n    const bank = await VictimBank.deploy();\n\n    const Attacker = await ethers.getContractFactory(\"ReentrancyAttacker\");\n    const attackerContract = await Attacker.deploy(bank.address);\n\n    \u002F\u002F Deposit funds\n    await bank.deposit({ value: ethers.utils.parseEther(\"10\") });\n\n    \u002F\u002F Attempt reentrancy attack\n    await expect(\n      attackerContract.attack({ value: ethers.utils.parseEther(\"1\") }),\n    ).to.be.revertedWith(\"ReentrancyGuard: reentrant call\");\n  });\n\n  it(\"Should prevent integer overflow\", async function () {\n    const Token = await ethers.getContractFactory(\"SecureToken\");\n    const token = await Token.deploy();\n\n    \u002F\u002F Attempt overflow\n    await expect(token.transfer(attacker.address, ethers.constants.MaxUint256))\n      .to.be.reverted;\n  });\n\n  it(\"Should enforce access control\", async function () {\n    const [owner, attacker] = await ethers.getSigners();\n\n    const Contract = await ethers.getContractFactory(\"SecureContract\");\n    const contract = await Contract.deploy();\n\n    \u002F\u002F Attempt unauthorized withdrawal\n    await expect(contract.connect(attacker).withdraw(100)).to.be.revertedWith(\n      \"Ownable: caller is not the owner\",\n    );\n  });\n});\n```\n\n## Audit Preparation\n\n```solidity\ncontract WellDocumentedContract {\n    \u002F**\n     * @title Well Documented Contract\n     * @dev Example of proper documentation for audits\n     * @notice This contract handles user deposits and withdrawals\n     *\u002F\n\n    \u002F\u002F\u002F @notice Mapping of user balances\n    mapping(address => uint256) public balances;\n\n    \u002F**\n     * @dev Deposits ETH into the contract\n     * @notice Anyone can deposit funds\n     *\u002F\n    function deposit() public payable {\n        require(msg.value > 0, \"Must send ETH\");\n        balances[msg.sender] += msg.value;\n    }\n\n    \u002F**\n     * @dev Withdraws user's balance\n     * @notice Follows CEI pattern to prevent reentrancy\n     * @param amount Amount to withdraw in wei\n     *\u002F\n    function withdraw(uint256 amount) public {\n        \u002F\u002F CHECKS\n        require(amount \u003C= balances[msg.sender], \"Insufficient balance\");\n\n        \u002F\u002F EFFECTS\n        balances[msg.sender] -= amount;\n\n        \u002F\u002F INTERACTIONS\n        (bool success, ) = msg.sender.call{value: amount}(\"\");\n        require(success, \"Transfer failed\");\n    }\n}\n```\n","# Solidity Security\n\nMaster smart contract security best practices, vulnerability prevention, and secure Solidity development patterns.\n\n## When to Use This Skill\n\n- Writing secure smart contracts\n- Auditing existing contracts for vulnerabilities\n- Implementing secure DeFi protocols\n- Preventing reentrancy, overflow, and access control issues\n- Optimizing gas usage while maintaining security\n- Preparing contracts for professional audits\n- Understanding common attack vectors\n\n## Detailed patterns and worked examples\n\nDetailed pattern documentation lives in `references\u002Fdetails.md`. Read that file when the navigation tier above is insufficient.\n\n## Testing for Security\n\n```javascript\n\u002F\u002F Hardhat test example\nconst { expect } = require(\"chai\");\nconst { ethers } = require(\"hardhat\");\n\ndescribe(\"Security Tests\", function () {\n  it(\"Should prevent reentrancy attack\", async function () {\n    const [attacker] = await ethers.getSigners();\n\n    const VictimBank = await ethers.getContractFactory(\"SecureBank\");\n    const bank = await VictimBank.deploy();\n\n    const Attacker = await ethers.getContractFactory(\"ReentrancyAttacker\");\n    const attackerContract = await Attacker.deploy(bank.address);\n\n    \u002F\u002F Deposit funds\n    await bank.deposit({ value: ethers.utils.parseEther(\"10\") });\n\n    \u002F\u002F Attempt reentrancy attack\n    await expect(\n      attackerContract.attack({ value: ethers.utils.parseEther(\"1\") }),\n    ).to.be.revertedWith(\"ReentrancyGuard: reentrant call\");\n  });\n\n  it(\"Should prevent integer overflow\", async function () {\n    const Token = await ethers.getContractFactory(\"SecureToken\");\n    const token = await Token.deploy();\n\n    \u002F\u002F Attempt overflow\n    await expect(token.transfer(attacker.address, ethers.constants.MaxUint256))\n      .to.be.reverted;\n  });\n\n  it(\"Should enforce access control\", async function () {\n    const [owner, attacker] = await ethers.getSigners();\n\n    const Contract = await ethers.getContractFactory(\"SecureContract\");\n    const contract = await Contract.deploy();\n\n    \u002F\u002F Attempt unauthorized withdrawal\n    await expect(contract.connect(attacker).withdraw(100)).to.be.revertedWith(\n      \"Ownable: caller is not the owner\",\n    );\n  });\n});\n```\n\n## Audit Preparation\n\n```solidity\ncontract WellDocumentedContract {\n    \u002F**\n     * @title Well Documented Contract\n     * @dev Example of proper documentation for audits\n     * @notice This contract handles user deposits and withdrawals\n     *\u002F\n\n    \u002F\u002F\u002F @notice Mapping of user balances\n    mapping(address => uint256) public balances;\n\n    \u002F**\n     * @dev Deposits ETH into the contract\n     * @notice Anyone can deposit funds\n     *\u002F\n    function deposit() public payable {\n        require(msg.value > 0, \"Must send ETH\");\n        balances[msg.sender] += msg.value;\n    }\n\n    \u002F**\n     * @dev Withdraws user's balance\n     * @notice Follows CEI pattern to prevent reentrancy\n     * @param amount Amount to withdraw in wei\n     *\u002F\n    function withdraw(uint256 amount) public {\n        \u002F\u002F CHECKS\n        require(amount \u003C= balances[msg.sender], \"Insufficient balance\");\n\n        \u002F\u002F EFFECTS\n        balances[msg.sender] -= amount;\n\n        \u002F\u002F INTERACTIONS\n        (bool success, ) = msg.sender.call{value: amount}(\"\");\n        require(success, \"Transfer failed\");\n    }\n}\n```\n",{"name":5,"description":7},"main","62c7af5ced2c21355d148c243edb6d5921cca1a6",".agents\u002Fskills\u002Fsolidity-security",8,"https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent","https:\u002F\u002Fgithub.com\u002FRudyCity","2026-11-14 22:58:49",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add RudyCity\u002Fsuperagent --skill solidity-security",{"tool":36,"command":37},"bunx","bunx skills add RudyCity\u002Fsuperagent --skill solidity-security",{"tool":39,"command":40},"pnpm","pnpm dlx skills add RudyCity\u002Fsuperagent --skill solidity-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsolidity-security\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Fdetails.md","REFERENCE","参考文档",9611,"https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsolidity-security\u002Freferences\u002Fdetails.md",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M75GP28CM6QCSXSHKFF3NNKS","telegram_bot","Use Telegram Bot when the user asks for Telegram Bot or this provider's API.","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002Fmuse-bridge-kit\u002Fskills\u002Ftelegram-bot\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M75GNZGZYM7NWDV6MBP3HS14","superagent-bridge","Operate the Muse\u003C->superagent Telegram bridge: poll the private group for task_request\u002Ftask_result envelopes, validate senders, and reply with task_batch\u002Ftask_done as Muse (the remote brain).","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002Fmuse-bridge-kit\u002Fskills\u002Fsuperagent-bridge\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M75GNHN19HJWZ7NAPM5E5JCV","Writing Skills","TDD for process documentation - test with subagents before writing, iterate until bulletproof","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M75GNCQEKVRA4FH161NZPZNB","writing-shape","Take a markdown file of raw material and shape it into an article through a conversational session — drafting candidate openings, growing the piece paragraph by paragraph, arguing about format (lists, tables, callouts, quotes) at each step. Use when the user has a pile of notes, fragments, or a rough draft and wants help turning it into something publishable.","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-shape\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M75GNAF9NAYCSTBDZDGMK0DZ","Writing Plans","Create detailed implementation plans with bite-sized tasks for engineers with zero codebase context","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M75GN72EV0V5NQAW9CSPFRFH","writing-guidelines","Review docs\u002Fprose for Writing Guidelines compliance. Use when asked to \"review my docs\", \"check writing style\", \"audit prose\", \"review docs voice and tone\", or \"check this page against the writing handbook\".","https:\u002F\u002Fgithub.com\u002FRudyCity\u002Fsuperagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-guidelines\u002FSKILL.md",[],[]]