slither

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents and developers often run Slither incorrectly — wrong package name, unfiltered dependency noise, stale detector IDs, and raw output treated as audit results. This Skill provides accurate, current guidance for installing, configuring, and triaging Slither static analysis on Solidity projects so findings are actionable instead of noisy. ## Core Features & Use Cases - Detector Reference & Triage: Covers 95+ detectors organized by severity, with a step-by-step triage workflow to separate true positives from false positives using filters, triage mode, and .slither.conf.json. - Custom Detectors & Printers: Shows how to write Python-based custom detectors via the Slither API and use printers like contract-summary, call-graph, and variable-order for structural analysis. - CI/CD Integration: Provides GitHub Actions workflows with SARIF upload, severity thresholds, and pre-commit hooks for continuous security scanning. - Use Case: Before a mainnet deployment, run Slither on a Foundry project, filter out OpenZeppelin dependency noise, triage the remaining findings, and gate pull requests on medium-and-high severity results. ## Quick Start Ask the agent to run Slither on your Foundry project, filter out library dependencies, and explain each high-severity finding with a recommended fix.

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, exclude noise detectors like naming-convention and solc-version, and use --exclude-informational and --exclude-optimization. Persist decisions with --triage-mode, which saves hide/show choices to slither.db.json.

Slither vs Mythril vs Echidna for smart contract security?

Slither is a fast static analyzer that finds known code patterns in under a second but has a medium-high false positive rate. Mythril uses symbolic execution, and Echidna is a fuzzer for invariant testing; the recommended workflow layers Slither first, then fuzzing or formal verification.

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

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

Can I write custom Slither detectors in Python?

Yes, subclass AbstractDetector, define ARGUMENT, IMPACT, CONFIDENCE, and WIKI fields, and implement _detect() using the Slither Python API. Run it with --detect your-detector-id --plugin-detect path/to/file.py or package it with a slither_analyzer.plugin entry point.

What are the limitations of Slither static analysis?

Slither examines code structure without executing it, so it cannot catch runtime logic errors, economic exploits, or oracle manipulation. Expect a 30-60% false positive rate, and complement it with fuzzing, formal verification, and manual review.