Agent skill

Safe Multisig Governance Audit

by forefy in forefy/.context

Audits the Safe multisig wallets of DeFi protocols for governance misconfigurations, scoring each against a finding library and producing a severity-ranked report.

MITAuto-check passedSecurity

Install Safe Multisig Governance Audit

skills CLI
$ npx skills add forefy/.context --skill safe-hunt -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install forefy/.context safe-hunt --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/forefy/.context.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/blockchain/safe-hunt .claude/skills/safe-hunt && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
safe-hunt
GitHub stars
152
Token cost
~1.4k tokens
SKILL.md length
371 words
Files
5 (incl. scripts, references)
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

Audits the Safe multisig wallets of DeFi protocols for governance misconfigurations, scoring each against a finding library and producing a severity-ranked report.

  • Works in 2 steps: GET /api/v1/safes/{address}/ → config → GET…
  • Auditing a DeFi protocol's admin controls and multisig setup
  • SKILL.md covers Identity, Reference Files, Modes and Engagement Protocol, plus 3 more sections
  • Runs Python scripts from its folder; calls python3

What it does

The agent acts as a governance security analyst working only from live, public data from the Safe Transaction Service API, with no authentication. It is read-only: it never sends transactions or changes state. Findings are ranked by severity and written as audit-ready report items, ambiguous ones are documented with evidence and flagged for manual review, and nothing is called exploitable without on-chain confirmation.

Three modes cover different inputs. Targeted takes one or more Safe addresses and an optional network, defaulting to Ethereum, and audits each one's configuration, its 50 most recent transactions and the full set of findings. Protocol takes a name such as Aave or Compound, finds Safe addresses through DeFiLlama treasury adapters and audits each. Sweep goes through about 292 adapters and outputs a leaderboard ranked by risk score. `scripts/sweep.py` handles the DeFiLlama parsing, API calls, scoring and report, with options for protocol, address, network and output file, and reference files on the API, finding patterns and discovery load on demand.

When your agent uses it

  • Auditing a DeFi protocol's admin controls and multisig setup
  • Checking a specific Safe address for governance misconfigurations
  • Ranking many protocols' Safe wallets by risk to find leads for review

Example prompts

  • “Audit the Safe wallets behind Aave and give me a ranked report.”
  • “Check this Safe address on Ethereum for governance weaknesses and write the findings to report.md.”
  • “Sweep all DeFiLlama protocols and show the riskiest multisigs first.”

Requirements

  • Python 3 to run scripts/sweep.py
  • Network access to the Safe Transaction Service API and DeFiLlama

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. GET /api/v1/safes/{address}/ → config
  2. GET /api/v1/safes/{address}/multisig-transactions/?limit=50&ordering=-nonce → recent txs

What it can do on your machine

Read from SKILL.md and the folder at commit c8ff161. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Safe Multisig Governance Audit loads about 1.4k tokens when it runs, and up to ~5.7k if it reads all its reference files. Until then it costs about 116 tokens; SKILL.md has 371 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~116
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from forefy/.context at commit c8ff161, republished under its MIT licence (© forefy). 371 words, ~1,386 tokens.

Download SKILL.mdSave it as .claude/skills/safe-hunt/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
safe-hunt
description
Sweeps DeFi protocol Safe multisig wallets for governance misconfigurations and security weaknesses. Given a protocol name, Safe address, or "sweep all", fetches live config and tx history from the Safe Transaction Service API, scores each Safe against a finding pattern library, and produces an audit-ready ranked report. Use when auditing a protocol's admin controls, hunting for misconfigured multisigs, or generating governance risk leads across DeFi.

Safe Governance Hunt Skill

Identity

Protocol governance security analyst. Systematically assess Safe multisig configurations across DeFi protocols using live on-chain data via the Safe Transaction Service API. No auth required. Read-only - never send transactions, never modify state. Findings are ranked by severity and formatted as audit-ready report items. Ambiguous findings → document with evidence and flag for manual review. Never conclude "exploitable" without on-chain confirmation.


Reference Files

Load on demand:

FileLoad When
references/safe-api.mdMaking any Safe API call - endpoints, base URLs, response shapes
references/finding-patterns.mdScoring any Safe - full criteria, severity thresholds, audit language
references/defillama-discovery.mdMode = sweep or protocol - how to extract Safe addresses from DeFiLlama

Modes

Mode 1: Targeted

Input: one or more Safe addresses + optional network (default: ethereum). → Deep audit of each Safe: config + 50 most recent txs + full finding set.

Mode 2: Protocol

Input: protocol name (e.g. "Aave", "Compound"). → Look up protocol in DeFiLlama treasury adapters → extract Safe addresses → run targeted audit on each.

Mode 3: Sweep

Input: "sweep all" or no address given. → Parse all ~292 DeFiLlama treasury adapters → extract all Safe addresses → run targeted audit on each → output ranked leaderboard by risk score.


Show full SKILL.md (184 more words)Show less

Engagement Protocol

Step 0 - Determine mode:

  • Address(es) provided → Mode 1 (Targeted)
  • Protocol name provided → Mode 2 (Protocol) - load references/defillama-discovery.md
  • "sweep", "all protocols", or no input → Mode 3 (Sweep) - load references/defillama-discovery.md
  • If unclear, ask: "Do you want to audit a specific Safe address, a named protocol, or sweep all DeFiLlama protocols?"

Step 1 - Discover addresses (skip for Mode 1):

  • Use scripts/sweep.py for Mode 2/3 - it handles DeFiLlama parsing, Safe API calls, scoring, and report generation.
  • Run: python3 ~/.claude/skills/safe-hunt/scripts/sweep.py [--protocol <name>] [--address <0x>] [--network <net>] [--output report.md]
  • If script unavailable, do manual discovery per references/defillama-discovery.md.

Step 2 - Fetch Safe config + tx history (for manual/targeted flow): Load references/safe-api.md for exact endpoints. Fetch:

  1. GET /api/v1/safes/{address}/ → config
  2. GET /api/v1/safes/{address}/multisig-transactions/?limit=50&ordering=-nonce → recent txs

Step 3 - Score findings: Load references/finding-patterns.md. Evaluate every pattern against the fetched data.

Step 4 - Report: Output per finding-patterns.md report format. Always include: Safe address, network, protocol name, risk score, findings sorted by severity, evidence, audit language.


Script Usage

bash
# Audit one Safe
python3 ~/.claude/skills/safe-hunt/scripts/sweep.py --address 0xABC... --network ethereum

# Audit a protocol by name (DeFiLlama lookup)
python3 ~/.claude/skills/safe-hunt/scripts/sweep.py --protocol "Lido"

# Full DeFiLlama sweep (slow - ~292 protocols)
python3 ~/.claude/skills/safe-hunt/scripts/sweep.py --sweep --output sweep_report.md

# Sweep with network filter
python3 ~/.claude/skills/safe-hunt/scripts/sweep.py --sweep --network ethereum --top 20

Report Format

# Safe Governance Hunt Report
Generated: <date> | Mode: <targeted|protocol|sweep> | Network: <network>

## 🔴 CRITICAL / HIGH RISK

### [Protocol Name] - 0xSafeAddress (ethereum)
Risk Score: 85/100
Owners: 3 | Threshold: 1/3 | Version: 1.2.0 | Guard: None | Modules: 1 unknown

**[HIGH] Single-signer threshold (1/3)**
Any single owner can execute transactions unilaterally without consensus.
Evidence: threshold=1, owners=3
Audit language: "The Safe multisig securing [protocol] admin functions is configured with a 1-of-3 threshold, effectively granting any single signer unilateral control over privileged operations including [X]. This constitutes a critical centralization risk."

**[HIGH] Unknown module enabled**
Module 0x1234... has unrestricted access to all Safe assets and is not in the known-safe module registry.
Evidence: module=0x1234..., not in whitelist
Audit language: "An unverified module (0x1234...) is enabled on the Safe, granting it the ability to execute arbitrary transactions. If compromised or malicious, this module bypasses the multisig threshold entirely."

---

## 🟠 MEDIUM RISK
...

## 🟡 LOW RISK / INFORMATIONAL
...

## ✅ CLEAN SAFES
The following Safes had no findings:
- [Protocol] 0xABC... (ethereum) - Score: 0

Scope

  • Only read public on-chain data - Safe API is fully public, no credentials required
  • Do not send transactions, trigger signatures, or interact with Safe UI

© forefy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in skills/blockchain/safe-hunt of forefy/.context.

  • SKILL.md
  • references/defillama-discovery.md
  • references/finding-patterns.md
  • references/safe-api.md
  • scripts/sweep.py

Open the folder on GitHubat commit c8ff161

Compare with similar skills

Safe Multisig Governance Audit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Safe Multisig Governance Audit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Safe Multisig Governance Audit this skillforefy/.context152—~1.4kAutomated safety check: PassMIT
Analyzing On Chain Datajeremylongshore/tons-of-skills-marketplace2.8k1 repos~1.5kAutomated safety check: PassMIT
Meme Coin Security Auditawarexone/Agentic-Bug-Hunter5.3k1 repos~2.4kAutomated safety check: PassMIT
Gmgn TokenGMGNAI/gmgn-skills6041 repos~10kAutomated safety check: NotesMIT
Binance Token AuditTermiX-official/cryptoclaw100—~695Automated safety check: PassMIT
Security Auditoreigent-ai/eigent15k—~1.8kAutomated safety check: NotesApache-2.0

Similar skills

  • Analyzing On Chain Data

    jeremylongshore/tons-of-skills-marketplace

    Process perform on-chain analysis including whale tracking, token flows, and network activity.

    2.8k GitHub starsUsed in 1 repo~1.5k tokens
    Business, Finance & HRAuto-check passed
  • Meme Coin Security Audit

    awarexone/Agentic-Bug-Hunter

    Screens EVM and Solana meme coins for rug pull signs such as hidden mint, honeypot logic and fee tricks, starting with fast kill signals before any code review.

    5.3k GitHub starsUsed in 1 repo~2.4k tokens
    SecurityAuto-check passed
  • Gmgn Token

    GMGNAI/gmgn-skills

    Research any crypto or meme token by address — real-time price, market cap, liquidity, holder list, trader list, top Smart Money and KOL positions, security audit (honeypot, rug pull risk, dev…

    604 GitHub starsUsed in 1 repo~10k tokens
    SecurityAuto-check: notes
  • Binance Token Audit

    TermiX-official/cryptoclaw

    Binance Web3 official skill — security audit for token contracts, detecting honeypots, rug pulls, and malicious functions across BSC, Base, Solana, and Ethereum.

    100 GitHub stars~695 tokensUpdated 4 mo ago
    SecurityAuto-check passed
  • Security Auditor

    eigent-ai/eigent

    Audits source code, dependencies and config files for vulnerabilities and hardcoded secrets, using two bundled Python scanners and an OWASP Top 10 checklist.

    15k GitHub stars~1.8k tokensUpdated today
    SecurityAuto-check: notes
  • CodeQL Security Scan

    trailofbits/skills

    Official

    Scans a codebase for vulnerabilities with CodeQL's data flow and taint tracking in run-all or important-only modes, including data extensions for project-specific sources and sinks.

    7.4k GitHub stars~4.6k tokensUpdated yesterday
    SecurityAuto-check: notes

More from forefy/.context

All 20 skills in this repo
  • Builds and formats security audit reports in Google Docs through the Docs API, with fixes for index drift, code styling and cross-reference links.

    152 GitHub stars~951 tokensUpdated 4 days ago
    Auto-check passed
  • Turns a company's domains into likely storage bucket names and checks six cloud providers for publicly readable buckets, for authorized security assessments only.

    152 GitHub stars~1.5k tokensUpdated 4 days ago
    Auto-check passed
  • Audit Scope

    forefy/.context

    Draft a security-audit scope from GitHub repos or API access, with a protocol narrative and a sizing table.

    152 GitHub stars~2.3k tokensUpdated 4 days ago
    Auto-check passed
  • External Enumeration

    forefy/.context

    Passively map a company's domains, subdomains, DNS ownership, tech stack, and CDNs.

    152 GitHub stars~3.1k tokensUpdated 4 days ago
    Auto-check passed
  • Smart Contract Audit

    forefy/.context

    Comprehensive smart contract security audit framework with multi-expert analysis.

    152 GitHub starsUsed in 1 repo~5.1k tokens
    Auto-check passed
  • Infrastructure Audit

    forefy/.context

    Comprehensive infrastructure security audit framework for IaC, Docker, Kubernetes, and cloud configurations.

    152 GitHub stars~3.7k tokensUpdated 4 days ago
    Auto-check: notes

Works with

Questions about Safe Multisig Governance Audit

What does Safe Multisig Governance Audit do?

Audits the Safe multisig wallets of DeFi protocols for governance misconfigurations, scoring each against a finding library and producing a severity-ranked report. The agent acts as a governance security analyst working only from live, public data from the Safe Transaction Service API, with no authentication. It is read-only: it never sends transactions or changes state.

When should I use Safe Multisig Governance Audit?

Safe Multisig Governance Audit fits situations like: auditing a DeFi protocol's admin controls and multisig setup; checking a specific Safe address for governance misconfigurations; ranking many protocols' Safe wallets by risk to find leads for review.

How do I install Safe Multisig Governance Audit in Claude Code?

Run `npx skills add forefy/.context --skill safe-hunt -a claude-code`. Or copy the skill folder (skills/blockchain/safe-hunt in forefy/.context) into .claude/skills/safe-hunt in your project. Claude Code loads it when a task matches its description.

How do I install Safe Multisig Governance Audit in Codex?

Run `npx skills add forefy/.context --skill safe-hunt -a codex`. Or copy the skill folder (skills/blockchain/safe-hunt in forefy/.context) into .agents/skills/safe-hunt in your project. Codex loads it when a task matches its description.

Can I use Safe Multisig Governance Audit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forefy/.context --skill safe-hunt -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/safe-hunt, .gemini/skills/safe-hunt, .github/skills/safe-hunt and .opencode/skills/safe-hunt in your project.

What does Safe Multisig Governance Audit need to run?

Going by SKILL.md and its folder, Safe Multisig Governance Audit needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3 to run scripts/sweep.py; Network access to the Safe Transaction Service API and DeFiLlama.

Does Safe Multisig Governance Audit access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Safe Multisig Governance Audit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Safe Multisig Governance Audit use?

Safe Multisig Governance Audit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Safe Multisig Governance Audit use?

About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.3k tokens, read only when the agent opens those files.

What are the alternatives to Safe Multisig Governance Audit?

Skills that share tags, products or a category with Safe Multisig Governance Audit: Analyzing On Chain Data (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Meme Coin Security Audit (awarexone/Agentic-Bug-Hunter, 5.3k stars), Gmgn Token (GMGNAI/gmgn-skills, 604 stars) and Binance Token Audit (TermiX-official/cryptoclaw, 100 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Safe Multisig Governance Audit?

forefy (a GitHub user) maintains it in forefy/.context, which has 152 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 4, 2026.

Source: forefy/.context on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.