slither

Run Slither static analysis on Solidity contracts with detectors, triage, and CI integration.

6|20|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/andresdefi/cryptoskills --skill slither-andresdefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slither
Source: https://github.com/andresdefi/cryptoskills/tree/main/skills/slither
Command: npx skills add https://github.com/andresdefi/cryptoskills --skill slither-andresdefi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Smart contract developers need fast, automated vulnerability detection before audits and deployments, but raw Slither output is noisy, detector names change between versions, and misconfigured runs report findings in dependencies instead of your own code. ## Core Features & Use Cases - Static Analysis Workflow: Run 95+ built-in detectors against Foundry, Hardhat, or standalone Solidity files, with correct installation via slither-analyzer and solc-select version management. - Triage & Configuration: Filter dependency paths, exclude noise detectors, persist decisions in slither.db.json, and lock settings into .slither.conf.json for reproducible scans. - Custom Detectors & CI: Write Python-based custom detectors using the Slither API, and integrate scans into GitHub Actions with SARIF output for GitHub Code Scanning. - Use Case: Before a pre-audit, run Slither on a Foundry staking contract, filter out OpenZeppelin library noise, triage false positives like timestamp warnings on reward math, and export a JSON report listing only actionable findings. ## Quick Start Ask the agent to run a Slither security scan on your Foundry project, filter out dependency findings, and summarize the high and medium severity vulnerabilities with fixes.

Frequently Asked Questions about slither

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Slither on a Foundry project?

Compile the project first with forge build, then run slither . from the project root. Slither reads Foundry's compilation artifacts and remappings.txt automatically; if detection fails, force it with --compile-force-framework foundry.

How do I reduce false positives in Slither output?

Filter dependency paths with --filter-paths "lib/|node_modules/", exclude noise detectors like naming-convention and solc-version, and use --triage-mode to interactively hide findings. Persist decisions in slither.db.json and settings in .slither.conf.json.

Slither vs Mythril vs Echidna for smart contract security?

Slither is a static analyzer that scans code patterns in under a second with medium-high false positives. Mythril uses symbolic execution, Echidna uses fuzzing, and both find different bug classes more slowly. Use Slither on every commit and the others before audits.

Why does Slither fail with 'Source not found' import errors?

Slither cannot resolve remapped imports when remappings.txt is missing or submodules are uninitialized. Run git submodule update --init --recursive, regenerate with forge remappings > remappings.txt, or set solc_remaps in .slither.conf.json.

Can I write custom Slither detectors in Python?

Yes, subclass AbstractDetector with ARGUMENT, IMPACT, and WIKI attributes, implement _detect() using the compilation unit API, and run it via --plugin-detect or install it as a pip package with a slither_analyzer.plugin entry point.

What are the limitations of Slither static analysis?

Slither examines code structure without execution, so it cannot catch runtime logic errors, economic exploits, or oracle manipulation. Expect 30-60% false positives on real projects, and complement it with fuzzing, formal verification, and manual review.