Skip to content
SkillModel-led1,344 tokens in use

Secure Workflow Guide

Guides a smart contract project through Trail of Bits' five-step secure development workflow, from a Slither scan to manual review areas.

8,319 stars on the repository CC-BY-SA-4.0trailofbits/skills · plugins/building-secure-contracts/skills/secure-workflow-guide
/plugin marketplace add trailofbits/skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing Secure Workflow Guide costs

101tokens idle
1,344tokens in use
3,916tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter12/15
  • Structure23/25
  • Examples3/15
  • Output15/15
  • Size15/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity100
  • Maintenance52
  • Community64
  • Maturity32
  • Momentum40

Secure Workflow Guide runs the five steps Trail of Bits recommends on every check-in and before deployment: scan with Slither, check special features, inspect security diagrams, document security properties, and review the areas tools miss.

The output is a security report, an action plan with priorities and a workflow checklist. It only runs checks that apply to the project and adapts to the tools you have installed.

What You Get

  • Slither findings by severity with file references and fix recommendations
  • Results of upgradeability, ERC conformance and token integration checks where applicable
  • Three security diagrams in PNG or PDF for inheritance, functions and state variable authorization
  • Documented security properties with a fuzzing and verification setup
  • An action plan with critical, high and medium tasks and a five-step checklist

Common Use Cases

  • Securing a contract end to end on each check-in
  • Running a pre-deployment security pass
  • Triaging a Slither report
  • Finding where to start on smart contract security

What Makes It Unique

It is a workflow for the whole development cycle. It ties together several tools, namely Slither, its upgradeability and ERC checkers, Echidna and Manticore, and treats documenting security properties as the most important step. A table of rationalizations blocks skipping a step because a tool is unavailable or a feature looks absent, and requires a codebase search before any step is declared not applicable.

Under The Hood

The skill is an instruction file that links a workflow steps resource and an example report. The agent runs local command line tools such as slither, slither-check-upgradeability, slither-check-erc and slither print commands, and may set up Echidna and Manticore runs. Diagram outputs are written to disk as image or PDF files. It searches the code for risky patterns. It does not fetch web pages or call remote services itself.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers