trailofbits-official-building-secure-contracts

Brought to you by [Trail of Bits](https://www.trailofbits.com/), this repository offers guidelines and best practices for developing secure smart contracts. Contributions are welcome, you can contribute by following our [contributing guidel

23 stars

Best use case

trailofbits-official-building-secure-contracts is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Brought to you by [Trail of Bits](https://www.trailofbits.com/), this repository offers guidelines and best practices for developing secure smart contracts. Contributions are welcome, you can contribute by following our [contributing guidel

Teams using trailofbits-official-building-secure-contracts should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/trailofbits-official-building-secure-contracts/SKILL.md --create-dirs "https://raw.githubusercontent.com/jiayaoqijia/cryptoskill/main/skills/dev-tools/trailofbits-official-building-secure-contracts/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/trailofbits-official-building-secure-contracts/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How trailofbits-official-building-secure-contracts Compares

Feature / Agenttrailofbits-official-building-secure-contractsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Brought to you by [Trail of Bits](https://www.trailofbits.com/), this repository offers guidelines and best practices for developing secure smart contracts. Contributions are welcome, you can contribute by following our [contributing guidel

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# trailofbits-official-building-secure-contracts

_Source: [github.com/crytic/building-secure-contracts](https://github.com/crytic/building-secure-contracts) (Trail of Bits' `crytic` security-research org). The body below is the upstream README.md captured at registration time._

---

# Building Secure Smart Contracts

![](https://github.com/crytic/building-secure-contracts/actions/workflows/echidna.yml/badge.svg) ![](https://github.com/crytic/building-secure-contracts/actions/workflows/medusa.yml/badge.svg)

Brought to you by [Trail of Bits](https://www.trailofbits.com/), this repository offers guidelines and best practices for developing secure smart contracts. Contributions are welcome, you can contribute by following our [contributing guidelines](https://github.com/crytic/building-secure-contracts/blob/master/CONTRIBUTING.md).

**Table of Contents:**

- [Development Guidelines](./development-guidelines)
  - [Code Maturity](./development-guidelines/code_maturity.md): Criteria for developers and security engineers to use when evaluating a codebase’s maturity
  - [High-Level Best Practices](./development-guidelines/guidelines.md): Best practices for all smart contracts
  - [Incident Response Recommendations](./development-guidelines/incident_response.md): Guidelines for creating an incident response plan
  - [Secure Development Workflow](./development-guidelines/workflow.md): A high-level process to follow during code development
  - [Token Integration Checklist](./development-guidelines/token_integration.md): What to check when interacting with arbitrary tokens
- [Learn EVM](./learn_evm): Technical knowledge about the EVM
  - [EVM Opcodes](./learn_evm/evm_opcodes.md): Information on all EVM opcodes
  - [Transaction Tracing](./learn_evm/tracing.md): Helper scripts and guidance for generating and navigating transaction traces
  - [Arithmetic Checks](./learn_evm/arithmetic-checks.md): A guide to performing arithmetic checks in the EVM
  - [Yellow Paper Guidance](./learn_evm/yellow-paper.md): Symbol reference for easier reading of the Ethereum yellow paper
  - [Forks <> EIPs](./learn_evm/eips_forks.md): Summaries of the EIPs included in each Ethereum fork
    - [Forks <> CIPs](./learn_evm/cips_forks.md): Summaries of the CIPs and EIPs included in each Celo fork _(EVM-compatible chain)_
    - [Upgrades <> TIPs](./learn_evm/tips_upgrades.md): Summaries of the TIPs included in each TRON upgrade _(EVM-compatible chain)_
    - [Forks <> BEPs](./learn_evm/beps_forks.md): Summaries of the BEPs included in each BSC fork _(EVM-compatible chain)_
- [Not So Smart Contracts](./not-so-smart-contracts): Examples of common smart contract issues, complete with descriptions, examples, and recommendations
  - [Algorand](./not-so-smart-contracts/algorand)
  - [Cairo](./not-so-smart-contracts/cairo)
  - [Cosmos](./not-so-smart-contracts/cosmos)
  - [Substrate](./not-so-smart-contracts/substrate)
  - [Solana](./not-so-smart-contracts/solana)
  - [Sui](./not-so-smart-contracts/sui)
  - [TON](./not-so-smart-contracts/ton)
- [Program Analysis](./program-analysis): Using automated tools to secure contracts
  - [Echidna](./program-analysis/echidna): A fuzzer that checks your contract's properties
  - [Medusa](./program-analysis/medusa/docs/src): A next-gen fuzzer that checks your contract's properties
  - [Slither](./program-analysis/slither/docs/src/): A static analyzer with both CLI and scriptable interfaces
  - [Manticore](./program-analysis/manticore): A symbolic execution engine that proves the correctness of properties
  - For each tool, this training material provides:
    - A theoretical introduction, an API walkthrough, and a set of exercises
    - Exercises that take approximately two hours to gain practical understanding
- [Resources](./resources): Assorted online resources
  - [Trail of Bits Blog Posts](./resources/tob_blogposts.md): A list of blockchain-related blog posts created by Trail of Bits

# License

secure-contracts and building-secure-contracts are licensed and distributed under the [AGPLv3 license](https://github.com/crytic/building-secure-contracts/blob/master/LICENSE). Contact us if you're looking for an exception to the terms.

Related Skills

trailofbits-skills

23
from jiayaoqijia/cryptoskill

Security testing skills from creators of Slither, Echidna, Medusa. Smart contract vulnerability scanners, property-based testing, static analysis, and audit tools from Trail of Bits.

secureth-auditor

23
from jiayaoqijia/cryptoskill

Autonomous AI agent specializing in smart contract security audits for EVM networks using symbolic execution for vulnerability detection.

drpc-official-agent-skills

23
from jiayaoqijia/cryptoskill

[![GitHub stars](https://img.shields.io/github/stars/drpcorg/drpc-agent-skills?style=social)](https://github.com/drpcorg/drpc-agent-skills)

alchemy-official

23
from jiayaoqijia/cryptoskill

Official Alchemy skill. Two auth modes: API key or x402 Agentic Gateway (no key needed). Complete coverage for ~100 chains: Token API, NFT API, Transfers, Prices, Portfolio, Simulation, Webhooks, Solana, and JSON-RPC. 82 reference docs + x402 gateway rules.

nethermind-official-defi-skills

23
from jiayaoqijia/cryptoskill

Build unsigned DeFi transactions from natural language. Use when the user wants to send, transfer, swap, stake, unstake, wrap, unwrap, supply, withdraw, borrow, repay, deposit, delegate, add liquidity, remove liquidity, or trade yield tokens on-chain. Covers ETH, ERC-20, ERC-721, Aave, Lido, Uniswap, Curve, Compound, MakerDAO, Rocket Pool, EigenLayer, Balancer, Pendle, and WETH.

icp-official-icskills

23
from jiayaoqijia/cryptoskill

> **Under active development** — Skill files are being reviewed and signed off by DFINITY engineers. Content may change. Feedback and PRs are welcome.

hedera-official-agent-kit-js

23
from jiayaoqijia/cryptoskill

Build Hedera-powered AI agents **in under a minute**.

deploying-contracts-on-base

23
from jiayaoqijia/cryptoskill

Deploys smart contracts to Base using Foundry. Covers forge create commands, contract verification, testnet faucet setup via CDP, and BaseScan API key configuration. Use when deploying Solidity contracts to Base Mainnet or Sepolia testnet. Covers phrases like "deploy contract to Base", "forge create on Base", "verify contract on BaseScan", "get testnet ETH", "Base Sepolia faucet", "how do I deploy to Base", or "publish my contract".

building-with-base-account

23
from jiayaoqijia/cryptoskill

Integrates Base Account SDK for authentication and payments. Covers Sign in with Base (SIWB), Base Pay, Paymasters, Sub Accounts, Spend Permissions, Prolinks, and batch transactions. Use when building apps with wallet authentication, USDC payments, sponsored transactions, smart wallet features, recurring subscriptions, shareable payment links, or any onchain interaction on Base. Covers phrases like "add sign in with Base", "SIWB button", "accept USDC payments", "Base Pay", "paymaster setup", "gas sponsorship", "smart wallet", "sub account", "spend permissions", or "payment link".

aicoin-official-coinos-skills

23
from jiayaoqijia/cryptoskill

██████╗ ██████╗ ██╗███╗ ██╗ ██████╗ ███████╗

spoonos-official-awesome-skill

23
from jiayaoqijia/cryptoskill

A curated collection of high-quality Claude Code skills for SpoonOS development, Web3 integrations, AI productivity, and enterprise tooling.

emblem-official-agent-skills

23
from jiayaoqijia/cryptoskill

Official skill collection for AI agents building with [EmblemAI](https://emblemvault.ai). EmblemAI is open-source crypto infrastructure for both end users and AI agents: **200+ tools across 7 blockchains** (Solana, Ethereum, Base, BSC, Polygon, Hedera, Bitcoin) for swaps, conditional orders, DeFi, N