/dstack-security:token-integration-analyzerfrom DStack Security
Audits ERC20/ERC721 token implementations and integrations for standards conformity, owner privileges, weird-token behaviors, and defensive integration gaps.
Ships in DStack Security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A team ships a token or builds on someone else's, and wants to know where the bodies are buried: does it follow the standard, who holds power over it, which nonstandard behaviors it exhibits, and what an integrating protocol must do to survive them. You read the code, work every applicable category in references/assessment-categories.md, optionally check the live chain, and hand back a structured security report ending in prioritized remediation. Each recommendation ties one unsafe assumption to one concrete defensive change. You change nothing: no file writes, no credential use, no remote mutation, so there is nothing to roll back.
Classify the work as implementation, integration, or both. Identify the platform (Ethereum, another EVM chain, or non-EVM) and confirm which token types are under analysis.
On Solidity with Slither available, run slither-check-erc for ERC20 or ERC721 conformity, slither --print human-summary for complexity and upgrade analysis, and slither --print contract-summary for the function inventory, capturing all output verbatim. Without Slither, verify every ERC conformity criterion by hand and document each manual check so the gap is visible.
Evaluate each checklist item in references/assessment-categories.md against the codebase and produce a compliance finding of pass, warning, or fail with file and line references. The categories cover general considerations (audit history, team transparency, security contact), contract composition (complexity, arithmetic guards, non-token functions, single entry point), owner privileges (upgradeability, minting caps, pausability, blacklisting, accountability), ERC20 conformity and extension risks, the 24 weird ERC20 patterns, token integration safety (SafeERC20 transfer patterns, balance verification, allowlists, wrappers, reentrancy guards), and the ERC721 conformity and risk checklists.
When address and RPC endpoint are both supplied, retrieve the name, symbol, decimals, totalSupply, owner or admin address, and pause status, then map holder distribution and concentration. When either is missing, omit the on-chain scarcity and holder analysis and note the exclusion in the report.
Order the report as executive summary (overall risk level with critical and high counts), per-category findings (pass, warning, or fail with evidence), the weird-token-pattern table (each applicable pattern with presence, risk level, evidence, and mitigation), the on-chain analysis (when an address was supplied), the integration-safety assessment (when a protocol integration was analyzed), and the prioritized recommendations grouped CRITICAL (fix before deployment), HIGH (fix soon), MEDIUM (improve), LOW (best practice). Every recommendation ties one unsafe assumption to one concrete defensive change.
no-token-code: the codebase holds no token-related source. Say so and stop.slither-unavailable: Slither is not installed or not on PATH. Continue with manual ERC conformity verification and document each manual check.on-chain-unavailable: no contract address or no RPC endpoint. Omit the on-chain scarcity and holder analysis and note the exclusion.behavior-undetermined: the behavior cannot be inferred from static code alone. Label the assumption unverified rather than fabricating a finding.scope-widening: the next step would reach past token safety. Stop at the boundary instead of inventing evidence or calling outside tools.Return findings for every category that succeeded; mark each blocked category unevaluated with its failure class and reason.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
token-security, erc20, erc721, slither, smart-contract-audit
npx claudepluginhub gosuda/dstack-skills --plugin dstack-security16 skills in this plugin
/chain-vulnerability-scannerUse when an Algorand, Cairo, Cosmos SDK, Solana, Substrate, or TON codebase needs vulnerability scanning with reachability-backed findings. Not for non-chain review: use security-review./codeql-security-analysisUse when building or reusing a CodeQL database, running CodeQL security analysis, or modeling project-specific sources and sinks. Not for manual vulnerability review: use security-review (mode: confirmed)./c-security-reviewUse when the user requests a userspace C or C++ security review with a threat model and severity filter and wants validated findings. Not for kernel or bare-metal code./function-audit-context-analyzerUse when asked for audit-context analysis of one function, or to build audit context across codebase before vulnerability hunting. Local write only. Not for vulnerability finding or severity rating./mermaid-to-proverifUse when a crypto Mermaid sequenceDiagram needs a ProVerif model for secrecy, authentication, replay, or forward-secrecy checks. Not for remote, credential, publish, deploy, or irreversible changes./project-findings-onto-graphUse when graph-backed security analysis is needed: project SARIF or reviewer findings onto a program graph; build or query a multi-language graph; summarize Trailmark structure; map smart-contract entry points; compare two refs or snapshots; or hunt confirmed vulnerability variants with pattern or graph seeding. Select findings, build-program-graph, trailmark-structural, entry-point-analyzer, graph-evolution, or variant-hunt mode and supply its required inputs. Not for initial vulnerability discovery: use security-review. Not for verifying one named allegation: use security-finding-verification. Not for security-finding triage: use triage-security-finding. Not for unrelated remote, credential, publish, deploy, or irreversible work.Other plugins' skills for the same job