safe
Skill1 starsChanged 25 days agoMITView on GitHub
Safe (Safe{Wallet}, formerly Gnosis Safe) is the standard multisig smart account, with the Safe{Core} SDK (Protocol Kit, API Kit, Relay Kit). Use when a hacker wants a multisig or treasury, to create/deploy a Safe or predict its address, propose/confirm/execute multisig transactions, batch calls, a Safe ERC-4337 smart account with sponsored gas (Safe4337Pack), or a dApp that runs as a Safe App.
- Reads credentials
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Alex-Broughton/claude-skillstheir own version, first seen Oct 13, 2026
- open-agreements/open-agreementstheir own version, first seen Jun 30, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- open-agreements/open-agreements★ 62same name
- Alex-Broughton/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- aaveSkill
- agentkitSkill
- alchemySkill
- backboardSkill
- biconomySkill
- blockscoutSkill
- daimoSkill
- duneSkill
- dynamicSkill
- easSkill
- ensoSkill
- envioSkill
- fetch-aiSkill
- goldskySkill
- hardhatSkill
- litSkill
- livepeerSkill
- morphoSkill
- namespace-53d629Skill
- neynarSkill
- olasSkill
- onramp-moneySkill
- openzeppelinSkill
- pimlicoSkill
- pinataSkill
- ponderSkill
- privySkill
- pushSkill
- quicknodeSkill
- reclaimSkill
- reownSkill
- requestSkill
- scaffold-ethSkill
- signSkill
- sponsor-chainsSkill
- superfluidSkill
- tenderlySkill
- the-graphSkill
- thirdwebSkill
- track-0gSkill
- track-1inchSkill
- track-arcSkill
- track-arkivSkill
- track-chainlinkSkill
- track-definitiveSkill
- track-efSkill
- track-ensSkill
- track-hederaSkill
- track-uniswapSkill
- track-whitechainSkill
- track-worldSkill
- transakSkill
- web3authSkill
- xmtpSkill
- zerodevSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 68
Run npx tsx index.ts (prints the address, no gas needed).
- Distinctive: line 85
Read the Safe docs AI index first: https://docs.safe.global/llms.txt (site index: https://safe.global/llms.txt).
- Very specific: line 86
Check versions: npm view @safe-global/protocol-kit version (and api-kit, relay-kit).
- Distinctive: line 89
When this skill and the official docs disagree, the docs win.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Safe
Safe is a smart contract account owned by one or more keys with an M-of-N threshold. The Safe{Core} SDK lets you deploy Safes, build and sign Safe transactions, share them between owners through the Safe Transaction Service, and run a Safe as an ERC-4337 account.
Pick it for team treasuries, DAO or agent wallets that need human approval, "N owners must agree" flows, or batching calls. Skip it if one EOA is enough. For gasless single-owner onboarding only, a plain 4337 SDK (see the pimlico skill) is less code.
Quickstart
- Node 20+ (the SDK declares
engines: node >=20). ESM project:npm init -y && npm pkg set type=module npm i --save-exact @safe-global/protocol-kit@8.0.8 @safe-global/api-kit@5.0.4 @safe-global/types-kit@4.0.1 viem@2.57.7 dotenv@17.2.3 npm i -D tsx - Make a throwaway test key and put it in
.env(test funds only):node --input-type=module -e "import { generatePrivateKey } from 'viem/accounts'; console.log(generatePrivateKey())"PRIVATE_KEY=<TEST_OWNER_KEY> SAFE_API_KEY=<YOUR_SAFE_API_KEY> # only needed for API Kit (recipes 2 and 7) index.ts: predict a 1-of-1 Safe on Sepolia and deploy it withDEPLOY=1:import "dotenv/config" import Safe from "@safe-global/protocol-kit" import { createPublicClient, http } from "viem" import { privateKeyToAccount } from "viem/accounts" import { sepolia } from "viem/chains" const PRIVATE_KEY = process.env.PRIVATE_KEY as `0x${string}` const RPC_URL = sepolia.rpcUrls.default.http[0] const owner = privateKeyToAccount(PRIVATE_KEY) const protocolKit = await Safe.init({ provider: RPC_URL, signer: PRIVATE_KEY, predictedSafe: { safeAccountConfig: { owners: [owner.address], threshold: 1 } }, }) const safeAddress = await protocolKit.getAddress() console.log("Safe address:", safeAddress, "deployed:", await protocolKit.isSafeDeployed()) if (process.env.DEPLOY === "1" && !(await protocolKit.isSafeDeployed())) { const deployTx = await protocolKit.createSafeDeploymentTransaction() const wallet = await protocolKit.getSafeProvider().getExternalSigner() const hash = await wallet!.sendTransaction({ to: deployTx.to as `0x${string}`, value: BigInt(deployTx.value), data: deployTx.data as `0x${string}`, chain: sepolia, }) await createPublicClient({ chain: sepolia, transport: http(RPC_URL) }).waitForTransactionReceipt({ hash }) const safe = await protocolKit.connect({ safeAddress }) console.log("Deployed. Owners:", await safe.getOwners()) }- Run
npx tsx index.ts(prints the address, no gas needed). Fund the owner with Sepolia ETH, thenDEPLOY=1 npx tsx index.ts. - Open the Safe at https://app.safe.global (choose Sepolia) to see it in the UI.
- Full version, API key steps and a 2-of-3 setup: references/quickstart.md.
Common tasks
- Create a multisig and predict its address on many chains
- Propose, confirm and execute a multisig tx (Protocol Kit + API Kit)
- Collect signatures without the Transaction Service
- Batch several calls into one Safe transaction
- Safe as an ERC-4337 smart account, sponsored gas (Safe4337Pack)
- Run your dApp as a Safe App (Safe Apps SDK, wagmi
safe()) - Read Safes, owners, queue and history
- Errors and fixes
Before you write more code
- Read the Safe docs AI index first: https://docs.safe.global/llms.txt (site index: https://safe.global/llms.txt). SDK guides: https://docs.safe.global/sdk/overview . Reference: https://docs.safe.global/reference-sdk-protocol-kit/overview
- Check versions:
npm view @safe-global/protocol-kit version(and api-kit, relay-kit). Protocol Kit 8 / API Kit 5 / Relay Kit 6 changed types (bigintchainId,0x${string}addresses). Some doc snippets are older and do not type-check; see references/errors.md. - Is my chain supported? Contracts: https://github.com/safe-global/safe-deployments . Transaction Service and UI: https://docs.safe.global/advanced/smart-account-supported-networks
- Old packages:
@safe-global/safe-core-sdk,safe-ethers-lib,ethersadapters andEthersAdapterare from v1-v3. GelatoGelatoRelayPackis deprecated (relay-kit 6.1.0). - When this skill and the official docs disagree, the docs win.
At ETHGlobal Mumbai
- Sponsor chains (checked live 2026-10-19): World Chain, Unichain, Arc, 0G mainnet and Whitechain Sepolia have Safe 1.4.1 contracts and the Transaction Service. World Chain Sepolia and Unichain Sepolia have contracts but no Transaction Service. Hedera has Safe 1.3.0 only. 0G Galileo testnet and the old Whitechain L1 do not work with the SDK. Details: references/chains.md. For RPCs, faucets and chain IDs use the
sponsor-chainsskill. - May help with: tracks about treasuries, DAOs, agents that need human approval, or smart-account UX, and sponsor tracks on World, Uniswap Foundation (Unichain), Arc, 0G or Whitechain. Check the real list: https://ethglobal.com/events/mumbai/prizes
- Help: SDK and contract questions on Ethereum Stack Exchange tag
safe-core(https://ethereum.stackexchange.com/questions/tagged/safe-core), bugs on https://github.com/safe-global, wallet questions at https://help.safe.global (all from https://docs.safe.global/support).
About
Hand-written for Backboard (https://backboard.0xvikram.me), an independent project not affiliated with ETHGlobal or Safe. Tested 2026-10-19 with @safe-global/protocol-kit@8.0.8, @safe-global/api-kit@5.0.4, @safe-global/relay-kit@6.1.2, @safe-global/types-kit@4.0.1, viem@2.57.7, dotenv@17.2.3, @safe-global/safe-apps-sdk@9.1.0, @safe-global/safe-apps-provider@0.18.6, wagmi@3.7.7.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

