agentleFS
EskyeeEskyee/agentbot-opensource/skills/endaoment/SKILL.md

endaoment

Skill17 starsChanged 5 months agoMITView on GitHub

Donate to charities onchain via Endaoment. Use when the user wants to donate crypto to charity, make a charitable contribution, give to nonprofits, support a cause, or donate to a 501(c)(3). Supports Base, Ethereum, and Optimism. Handles USDC donations directly or swaps ETH/tokens to USDC automatically.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search by name or EIN:

    line 14
  2. Distinctive:

    All donations are tax-deductible (US 501(c)(3) orgs)

    line 84

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Endaoment Charity Donations

Donate to 501(c)(3) nonprofits onchain via Endaoment's smart contracts.

Quick Start

Find a Charity

Search by name or EIN:

./scripts/search.sh "27-1661997"         # EIN lookup (GiveDirectly)
./scripts/search.sh "Red Cross"          # Name search

Donate USDC (Base)

./scripts/donate.sh <ein> <amount_usdc>

Example: Donate $5 USDC to GiveDirectly:

./scripts/donate.sh 27-1661997 5

How It Works

The donate script uses Bankr's arbitrary transaction feature to:

  1. Approve USDC to the Endaoment OrgFundFactory
  2. Call deployOrgAndDonate(orgId, amount) which:
    • Deploys the charity's entity contract on Base (if not already deployed)
    • Donates the specified USDC amount

Popular Charities

CharityEIN
GiveDirectly27-1661997
North Shore Animal League America11-1666852
American Red Cross53-0196605
Doctors Without Borders13-3433452
ASPCA13-1623829

See references/popular-charities.md for more.

Contract Addresses (Base)

ContractAddress
Registry0x237b53bcfbd3a114b549dfec96a9856808f45c94
OrgFundFactory0x10fd9348136dcea154f752fe0b6db45fc298a589
USDC0x833589fcd6edb6e08f4c7c32d4f71b54bda02913

Fees

  • Org donations: 1.5% fee (e.g., $100 → $1.50 fee, $98.50 to charity)
  • Fund donations: 0.05-0.50% tiered

Requirements

  • Bankr skill with API key configured
  • USDC balance on Base
  • ETH on Base for gas (Bankr covers this)

Technical Details

Function Selectors

  • approve(address,uint256): 0x095ea7b3
  • deployOrgAndDonate(bytes32,uint256): 0xdb9e30cc

OrgId Encoding

The EIN (e.g., "11-1666852") is encoded as bytes32:

"11-1666852" → 0x31312d3136363638353200000000000000000000000000000000000000000000

Notes

  • All donations are tax-deductible (US 501(c)(3) orgs)
  • Donations are permissionless — anyone can donate
  • Uses Bankr arbitrary transactions for contract interaction
  • Works on Base; other chains require different addresses

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

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.