/bounty-methodology:hybrid-custody-settlementfrom bounty-methodology
Reviews hybrid on-chain custody / off-chain matching systems (Synthetix-style deposit contracts): multi-stage withdrawals, role quorums, int256 balances, CoW ERC-1271, Permit2 deposits. Use when auditing custody layers listed separately from DEX monorepos.
Ships in bounty-methodology. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
User deposit (Permit2 / transfer)
→ on-chain credit (_userBalance, often int256)
User request cancel (own Requested only)
RELAYER request withdrawal
WATCHER quorum validate
TELLER disburse (transfer out)
PermissionsRegistry may be orthogonal — always grep whether custody reads it.
request / validate / disburse / dispute_userBalance checked on withdraw, or purely off-chain PnL?int256 without floor check is often by design — not auto-CriticalappData, fees) = trader-role trust, not publicmsg.sender for deposit permits| Finding shape | Likely triage |
|---|---|
| “Users can’t withdraw without operators” | Centralization OOS |
| “Operator can drain with 3 roles colluding” | Privileged OOS |
| Unprivileged double-claim / cancel race / permit theft | Promote |
| Registry grant without custody consumer | No impact unless coupled |
programs/immunefi-synthetix/notes/patterns-for-skills.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin bounty-methodology8 skills in this plugin
/async-vault-nav-freshnessReviews ERC-7540 / async deposit-redeem vaults with on-chain NAV: invalidate maps, ownership nonces, calculator versions, claim algebra, idle reservations. Use for PortfolioVault-style funds, Enzyme Onyx queues, or any async vault that freezes share price at approval.
/cctp-destination-callerReviews CCTP (Circle Cross-Chain Transfer Protocol) integrations for inventory desync: destinationCaller binding, Nonce already used catch paths, FAST fees, planned vs measured mint amounts. Use when auditing Vault.rebalanceMint-style CCTP burn/mint inventory accounting.
/cctp-vault-rebalance-integrateIntegrate Circle CCTP for vault/inventory rebalance: depositForBurn, receiveMessage, destinationCaller binding, FAST fees, planned vs measured mint amounts. Use when building cross-chain vaults, inventory ledgers, or rebalance managers on CCTP.
/credit-account-adapter-facadeReviews Gearbox-style credit account adapters and multicall facades: recipient force, path allowlists, phantom tokens, gateway claim caps, LP oracles. Use when auditing credit managers, integration adapters, zappers, or partial-liquidation bots for leveraged DeFi accounts.
/erc7540-async-vault-integrateIntegrate with ERC-7540-style async deposit/redeem vaults: request → manager approve → claim, controllers/operators, NAV freshness for quotes, idle reserves. Use when building frontends, keepers, or contracts that deposit/redeem into async funds (PortfolioVault-class, Enzyme Onyx queues, similar).
/immunefi-scope-disciplineFreezes Immunefi/contest scope before deep review: assets table vs monorepo, known issues, trusted roles, Primacy of Rules vs Impact, PoC seeding rules. Use when starting a bounty program, intake, or when a monorepo may be mostly OOS.