[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7APHA8816KJGPWDKWHAFBZS":3,"skill-same:01M7APHA8816KJGPWDKWHAFBZS":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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7APHA8816KJGPWDKWHAFBZS","defi-amm-security",null,"Security checklist for Solidity AMM contracts, liquidity pools, and swap flows. Covers reentrancy, CEI ordering, donation or inflation attacks, oracle manipulation, slippage, admin controls, and integer math. Use when auditing or writing Solidity AMM, liquidity pool, or swap code.","Cyrilthetecchieee\u002Fcyril-code-","Cyrilthetecchieee","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219787998?v=4","01M7AF0MMMKRAA0H61XMJPV92H","Julian Cyril D ","01M7AF0MQ10AVG6QJQ1C2BC0F5",2,"MIT","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fskills\u002Fdefi-amm-security\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: defi-amm-security\ndescription: Security checklist for Solidity AMM contracts, liquidity pools, and swap flows. Covers reentrancy, CEI ordering, donation or inflation attacks, oracle manipulation, slippage, admin controls, and integer math. Use when auditing or writing Solidity AMM, liquidity pool, or swap code.\nmetadata:\n  version: \"1.0.0\"\n  origin: ECC direct-port adaptation\n---\n\n# DeFi AMM Security\n\nCritical vulnerability patterns and hardened implementations for Solidity AMM contracts, LP vaults, and swap functions.\n\n## When to Use\n\n- Writing or auditing a Solidity AMM or liquidity-pool contract\n- Implementing swap, deposit, withdraw, mint, or burn flows that hold token balances\n- Reviewing any contract that uses `token.balanceOf(address(this))` in share or reserve math\n- Adding fee setters, pausers, oracle updates, or other admin functions to a DeFi protocol\n\n## How It Works\n\nUse this as a checklist-plus-pattern library. Review every user entrypoint against the categories below and prefer the hardened examples over hand-rolled variants.\n\n## Execution Safety\n\nThe shell commands in this skill are local audit examples. Run them only in a trusted checkout or disposable sandbox, and do not splice untrusted contract names, paths, RPC URLs, private keys, or user-supplied flags into shell commands. Ask before installing tools or running long fuzzing\u002Fstatic-analysis jobs that may consume significant local or paid resources.\n\nNever include secrets, private keys, seed phrases, API tokens, or mainnet signing credentials in command examples, logs, or reports.\n\n## Examples\n\n### Reentrancy: enforce CEI order\n\nVulnerable:\n\n```solidity\nfunction withdraw(uint256 amount) external {\n    require(balances[msg.sender] >= amount);\n    token.transfer(msg.sender, amount);\n    balances[msg.sender] -= amount;\n}\n```\n\nSafe:\n\n```solidity\nimport {ReentrancyGuard} from \"@openzeppelin\u002Fcontracts\u002Futils\u002FReentrancyGuard.sol\";\nimport {SafeERC20} from \"@openzeppelin\u002Fcontracts\u002Ftoken\u002FERC20\u002Futils\u002FSafeERC20.sol\";\n\nusing SafeERC20 for IERC20;\n\nfunction withdraw(uint256 amount) external nonReentrant {\n    require(balances[msg.sender] >= amount, \"Insufficient\");\n    balances[msg.sender] -= amount;\n    token.safeTransfer(msg.sender, amount);\n}\n```\n\nDo not write your own guard when a hardened library exists.\n\n### Donation or inflation attacks\n\nUsing `token.balanceOf(address(this))` directly for share math lets attackers manipulate the denominator by sending tokens to the contract outside the intended path.\n\n```solidity\n\u002F\u002F Vulnerable\nfunction deposit(uint256 assets) external returns (uint256 shares) {\n    shares = (assets * totalShares) \u002F token.balanceOf(address(this));\n}\n```\n\n```solidity\n\u002F\u002F Safe\nuint256 private _totalAssets;\n\nfunction deposit(uint256 assets) external nonReentrant returns (uint256 shares) {\n    uint256 balBefore = token.balanceOf(address(this));\n    token.safeTransferFrom(msg.sender, address(this), assets);\n    uint256 received = token.balanceOf(address(this)) - balBefore;\n\n    shares = totalShares == 0 ? received : (received * totalShares) \u002F _totalAssets;\n    _totalAssets += received;\n    totalShares += shares;\n}\n```\n\nTrack internal accounting and measure actual tokens received.\n\n### Oracle manipulation\n\nSpot prices are flash-loan manipulable. Prefer TWAP.\n\n```solidity\nuint32[] memory secondsAgos = new uint32[](2);\nsecondsAgos[0] = 1800;\nsecondsAgos[1] = 0;\n(int56[] memory tickCumulatives,) = IUniswapV3Pool(pool).observe(secondsAgos);\nint24 twapTick = int24(\n    (tickCumulatives[1] - tickCumulatives[0]) \u002F int56(uint56(30 minutes))\n);\nuint160 sqrtPriceX96 = TickMath.getSqrtRatioAtTick(twapTick);\n```\n\n### Slippage protection\n\nEvery swap path needs caller-provided slippage and a deadline.\n\n```solidity\nfunction swap(\n    uint256 amountIn,\n    uint256 amountOutMin,\n    uint256 deadline\n) external returns (uint256 amountOut) {\n    require(block.timestamp \u003C= deadline, \"Expired\");\n    amountOut = _calculateOut(amountIn);\n    require(amountOut >= amountOutMin, \"Slippage exceeded\");\n    _executeSwap(amountIn, amountOut);\n}\n```\n\n### Safe reserve math\n\n```solidity\nimport {FullMath} from \"@uniswap\u002Fv3-core\u002Fcontracts\u002Flibraries\u002FFullMath.sol\";\n\nuint256 result = FullMath.mulDiv(a, b, c);\n```\n\nFor large reserve math, avoid naive `a * b \u002F c` when overflow risk exists.\n\n### Admin controls\n\n```solidity\nimport {Ownable2Step} from \"@openzeppelin\u002Fcontracts\u002Faccess\u002FOwnable2Step.sol\";\n\ncontract MyAMM is Ownable2Step {\n    function setFee(uint256 fee) external onlyOwner { ... }\n    function pause() external onlyOwner { ... }\n}\n```\n\nPrefer explicit acceptance for ownership transfer and gate every privileged path.\n\n## Security Checklist\n\n- Reentrancy-exposed entrypoints use `nonReentrant`\n- CEI ordering is respected\n- Share math does not depend on raw `balanceOf(address(this))`\n- ERC-20 transfers use `SafeERC20`\n- Deposits measure actual tokens received\n- Oracle reads use TWAP or another manipulation-resistant source\n- Swaps require `amountOutMin` and `deadline`\n- Overflow-sensitive reserve math uses safe primitives like `mulDiv`\n- Admin functions are access-controlled\n- Emergency pause exists and is tested\n- Static analysis and fuzzing are run before production\n\n## Audit Tools\n\n```bash\npip install slither-analyzer\nslither . --exclude-dependencies\n\nechidna-test . --contract YourAMM --config echidna.yaml\n\nforge test --fuzz-runs 10000\n```\n","# DeFi AMM Security\n\nCritical vulnerability patterns and hardened implementations for Solidity AMM contracts, LP vaults, and swap functions.\n\n## When to Use\n\n- Writing or auditing a Solidity AMM or liquidity-pool contract\n- Implementing swap, deposit, withdraw, mint, or burn flows that hold token balances\n- Reviewing any contract that uses `token.balanceOf(address(this))` in share or reserve math\n- Adding fee setters, pausers, oracle updates, or other admin functions to a DeFi protocol\n\n## How It Works\n\nUse this as a checklist-plus-pattern library. Review every user entrypoint against the categories below and prefer the hardened examples over hand-rolled variants.\n\n## Execution Safety\n\nThe shell commands in this skill are local audit examples. Run them only in a trusted checkout or disposable sandbox, and do not splice untrusted contract names, paths, RPC URLs, private keys, or user-supplied flags into shell commands. Ask before installing tools or running long fuzzing\u002Fstatic-analysis jobs that may consume significant local or paid resources.\n\nNever include secrets, private keys, seed phrases, API tokens, or mainnet signing credentials in command examples, logs, or reports.\n\n## Examples\n\n### Reentrancy: enforce CEI order\n\nVulnerable:\n\n```solidity\nfunction withdraw(uint256 amount) external {\n    require(balances[msg.sender] >= amount);\n    token.transfer(msg.sender, amount);\n    balances[msg.sender] -= amount;\n}\n```\n\nSafe:\n\n```solidity\nimport {ReentrancyGuard} from \"@openzeppelin\u002Fcontracts\u002Futils\u002FReentrancyGuard.sol\";\nimport {SafeERC20} from \"@openzeppelin\u002Fcontracts\u002Ftoken\u002FERC20\u002Futils\u002FSafeERC20.sol\";\n\nusing SafeERC20 for IERC20;\n\nfunction withdraw(uint256 amount) external nonReentrant {\n    require(balances[msg.sender] >= amount, \"Insufficient\");\n    balances[msg.sender] -= amount;\n    token.safeTransfer(msg.sender, amount);\n}\n```\n\nDo not write your own guard when a hardened library exists.\n\n### Donation or inflation attacks\n\nUsing `token.balanceOf(address(this))` directly for share math lets attackers manipulate the denominator by sending tokens to the contract outside the intended path.\n\n```solidity\n\u002F\u002F Vulnerable\nfunction deposit(uint256 assets) external returns (uint256 shares) {\n    shares = (assets * totalShares) \u002F token.balanceOf(address(this));\n}\n```\n\n```solidity\n\u002F\u002F Safe\nuint256 private _totalAssets;\n\nfunction deposit(uint256 assets) external nonReentrant returns (uint256 shares) {\n    uint256 balBefore = token.balanceOf(address(this));\n    token.safeTransferFrom(msg.sender, address(this), assets);\n    uint256 received = token.balanceOf(address(this)) - balBefore;\n\n    shares = totalShares == 0 ? received : (received * totalShares) \u002F _totalAssets;\n    _totalAssets += received;\n    totalShares += shares;\n}\n```\n\nTrack internal accounting and measure actual tokens received.\n\n### Oracle manipulation\n\nSpot prices are flash-loan manipulable. Prefer TWAP.\n\n```solidity\nuint32[] memory secondsAgos = new uint32[](2);\nsecondsAgos[0] = 1800;\nsecondsAgos[1] = 0;\n(int56[] memory tickCumulatives,) = IUniswapV3Pool(pool).observe(secondsAgos);\nint24 twapTick = int24(\n    (tickCumulatives[1] - tickCumulatives[0]) \u002F int56(uint56(30 minutes))\n);\nuint160 sqrtPriceX96 = TickMath.getSqrtRatioAtTick(twapTick);\n```\n\n### Slippage protection\n\nEvery swap path needs caller-provided slippage and a deadline.\n\n```solidity\nfunction swap(\n    uint256 amountIn,\n    uint256 amountOutMin,\n    uint256 deadline\n) external returns (uint256 amountOut) {\n    require(block.timestamp \u003C= deadline, \"Expired\");\n    amountOut = _calculateOut(amountIn);\n    require(amountOut >= amountOutMin, \"Slippage exceeded\");\n    _executeSwap(amountIn, amountOut);\n}\n```\n\n### Safe reserve math\n\n```solidity\nimport {FullMath} from \"@uniswap\u002Fv3-core\u002Fcontracts\u002Flibraries\u002FFullMath.sol\";\n\nuint256 result = FullMath.mulDiv(a, b, c);\n```\n\nFor large reserve math, avoid naive `a * b \u002F c` when overflow risk exists.\n\n### Admin controls\n\n```solidity\nimport {Ownable2Step} from \"@openzeppelin\u002Fcontracts\u002Faccess\u002FOwnable2Step.sol\";\n\ncontract MyAMM is Ownable2Step {\n    function setFee(uint256 fee) external onlyOwner { ... }\n    function pause() external onlyOwner { ... }\n}\n```\n\nPrefer explicit acceptance for ownership transfer and gate every privileged path.\n\n## Security Checklist\n\n- Reentrancy-exposed entrypoints use `nonReentrant`\n- CEI ordering is respected\n- Share math does not depend on raw `balanceOf(address(this))`\n- ERC-20 transfers use `SafeERC20`\n- Deposits measure actual tokens received\n- Oracle reads use TWAP or another manipulation-resistant source\n- Swaps require `amountOutMin` and `deadline`\n- Overflow-sensitive reserve math uses safe primitives like `mulDiv`\n- Admin functions are access-controlled\n- Emergency pause exists and is tested\n- Static analysis and fuzzing are run before production\n\n## Audit Tools\n\n```bash\npip install slither-analyzer\nslither . --exclude-dependencies\n\nechidna-test . --contract YourAMM --config echidna.yaml\n\nforge test --fuzz-runs 10000\n```\n",{"name":5,"metadata":24,"description":7},{"origin":25,"version":26},"ECC direct-port adaptation","1.0.0","main","57e7aa6b6e03bce1a7d7862ba9c2ec312f7f19b5","src\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fskills\u002Fdefi-amm-security",0,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee","https:\u002F\u002Fwithcyril.me\u002F","Hi, I’m Julian Cyril D, a Computer Science and Business Systems student at PSNACET.\r\nI’m passionate about full-stack development, UI\u002FUX design, and building sma","2026-11-04 23:28:50",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Cyrilthetecchieee\u002Fcyril-code- --skill defi-amm-security",{"tool":42,"command":43},"bunx","bunx skills add Cyrilthetecchieee\u002Fcyril-code- --skill defi-amm-security",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Cyrilthetecchieee\u002Fcyril-code- --skill defi-amm-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fskills\u002Fdefi-amm-security\u002FSKILL.md",true,[],[51,60,67,75,82,89],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":56,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7AQV6CYX8RMC78420V9WZ62","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7AQV2895N3S1MEX6K76G6G2","youtube-downloader","Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fvideo-downloader\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7AQTRNX62DNKVZ5GXEHRBKB","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"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},"01M7AQTNNVHAAN9H6DA8T6ZVE0","template-skill","Replace with description of the skill and when Claude should use it.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftemplate-skill\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},"01M7AQTJ3MQ6AKX152MEX2MYCC","tailored-resume-generator","Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftailored-resume-generator\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7AQTD7D5MYET2YWG7HG9WM3","slack-gif-creator","Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like \"make me a GIF for Slack of X doing Y\".","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FSKILL.md",[],[]]