/dstack-security:smart-contract-secure-workflowfrom DStack Security
Runs a five-stage pre-deploy safety pass on Solidity/Vyper contracts: properties, tests, manual review, fuzzing, and deployment prep report.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A team is about to check in or deploy and wants the same safety pass run the same way every time. You walk their contract source through five stages (properties, tests, manual review, fuzzing, deployment preparation) and hand back one consolidated report. You write only named local artifacts under the working directory: tool outputs, visualizations, documented properties, review notes, the workflow report. Deleting the generated report, tool outputs, and review notes reverses the run. You never deploy, publish, change credentials, or touch a remote system.
blocked: no contract source.Read the contract source and pull out the public and external functions, state variables, access-control modifiers, and invariant candidates. Write each one down as a named assertion tied to the function or state it constrains. When the codebase is bigger than the tooling can cover, say exactly which subset you analyzed and list the skipped files.
For every Stage 1 property, generate a runnable test asserting it holds. Build on the project's existing test framework when you find one; otherwise produce standalone assertion tests, written to a local output directory. A property whose test cannot be generated is marked test-generation-failed with the reason recorded.
Work through the code looking for reentrancy entry points, unchecked external calls, integer overflow and underflow in arithmetic, access-control gaps, front-running vectors, and oracle manipulation surfaces. For each finding record the severity (critical, high, medium, low, informational), the affected function, and a recommended fix. A review area that genuinely does not apply to the codebase is marked not-applicable with its justification.
When a fuzzer is available in the environment (Echidna, Foundry fuzz, Medusa), run property-based fuzzing against the Stage 1 properties and record the tool, campaign duration, corpus size, and every violation found. With no fuzzer available, mark the stage unavailable: no fuzzer in environment and compensate inside the stage's scope: stress-test the edge cases by hand against the identified properties, and document what the manual pass cannot cover.
Read the deployment scripts and configuration for hardcoded addresses, missing constructor arguments, upgradeable-proxy initialization gaps, gas-limit assumptions, and network-specific parameters. Every named risk gets an evidence-backed disposition, and the report states whether it judged a real target or fell back to generic mainnet assumptions.
Give each stage a truthful status (completed, unavailable-with-compensating-analysis, or blocked) along with its artifact count and unresolved-risk count. The overall status follows one precedence: blocked if any stage could neither proceed nor compensate, passed-with-unresolved if any stage carries unresolved risks, passed otherwise. A stage with zero findings is a valid completed result recorded as zero; never re-run it with a widened scope to hunt for more. Never mark a skipped or blocked stage completed. Keep every completed stage's artifacts even when later stages fail. A stage that loops without settling, such as fuzzing finding and fixing the same property repeatedly, stops after three iterations: record the oscillation and mark the stage non-converged. A stage whose tool is missing is marked unavailable, compensated within its own scope with its coverage limit documented, and the workflow continues.
Return the consolidated Markdown status report first, then the documented properties, generated tests and raw tool outputs, manual-review notes, deployment checks, and visualizations; keep stages 1 to 5 in order and findings ordered by severity.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
smart-contracts, solidity, fuzzing, security-review, deployment
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.Other plugins' skills for the same job