web3-dao-tooling
БесплатноЗапускает вложенные скриптыНе проверенBuild DAO governance agents with SpoonOS. Use when monitoring proposals, automating voting, managing delegations, or analyzing governance patterns.
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
DAO Tooling
Automate DAO governance participation with SpoonOS agents.
Supported Platforms
| Platform | Type | Chains |
|---|---|---|
| Snapshot | Off-chain voting | All EVM |
| Tally | On-chain Governor | ETH, Polygon, Arbitrum, Optimism |
| Compound Governor | On-chain | ETH |
| Aragon | On-chain DAO | ETH, Polygon |
Snapshot Integration
API Configuration
SNAPSHOT_API = "https://hub.snapshot.org/graphql"
SNAPSHOT_SCORE_API = "https://score.snapshot.org"
Proposal Monitor
# scripts/snapshot_monitor.py
import aiohttp
from spoon_ai.tools.base import BaseTool
from pydantic import Field
from datetime import datetime
class SnapshotMonitorTool(BaseTool):
name: str = "snapshot_proposals"
description: str = "Monitor Snapshot governance proposals"
parameters: dict = Field(default={
"type": "object",
"properties": {
"space": {"type": "string", "description": "Snapshot space ID (e.g., 'uniswap.eth')"},
"state": {"type": "string", "enum": ["active", "pending", "closed", "all"], "default": "active"},
"limit": {"type": "integer", "default": 10}
},
"required": ["space"]
})
async def execute(self, space: str, state: str = "active", limit: int = 10) -> str:
query = """
query Proposals($space: String!, $state: String!, $limit: Int!) {
proposals(
first: $limit,
where: { space: $space, state: $state },
orderBy: "created",
orderDirection: desc
) {
id
title
body
choices
start
end
state
scores
scores_total
votes
author
space {
id
name
}
}
}
"""
variables = {
"space": space,
"state": state if state != "all" else None,
"limit": limit
}
async with aiohttp.ClientSession() as session:
async with session.post(
SNAPSHOT_API,
json={"query": query, "variables": variables}
) as resp:
if resp.status != 200:
return f"Error: {resp.status}"
data = await resp.json()
proposals = data.get("data", {}).get("proposals", [])
if not proposals:
return f"No {state} proposals found for {space}"
report = f"SNAPSHOT PROPOSALS: {space}\n{'='*50}\n\n"
for p in proposals:
end_time = datetime.fromtimestamp(p["end"])
time_left = end_time - datetime.now()
report += f"""
{p['title']}
ID: {p['id'][:20]}...
State: {p['state'].upper()}
Votes: {p['votes']:,}
"""
# Show choices with scores
if p['choices'] and p['scores']:
report += "Results:\n"
for i, choice in enumerate(p['choices']):
score = p['scores'][i] if i < len(p['scores']) else 0
total = p['scores_total'] or 1
pct = (score / total) * 100
report += f" - {choice}: {pct:.1f}%\n"
if p['state'] == 'active':
report += f"Ends: {end_time.strftime('%Y-%m-%d %H:%M')} ({time_left.days}d {time_left.seconds//3600}h left)\n"
report += "\n"
return report
Snapshot Voting
# scripts/snapshot_vote.py
import aiohttp
from eth_account import Account
from eth_account.messages import encode_defunct
import json
import time
class SnapshotVoteTool(BaseTool):
name: str = "snapshot_vote"
description: str = "Cast vote on Snapshot proposal"
parameters: dict = Field(default={
"type": "object",
"properties": {
"proposal_id": {"type": "string"},
"choice": {"type": "integer", "description": "Choice index (1-based)"},
"reason": {"type": "string", "default": ""}
},
"required": ["proposal_id", "choice"]
})
async def execute(self, proposal_id: str, choice: int, reason: str = "") -> str:
# Get proposal details first
proposal = await self._get_proposal(proposal_id)
if not proposal:
return f"Proposal {proposal_id} not found"
space = proposal["space"]["id"]
# Prepare vote message
account = Account.from_key(os.getenv("PRIVATE_KEY"))
vote_data = {
"space": space,
"proposal": proposal_id,
"type": "single-choice",
"choice": choice,
"reason": reason,
"app": "spoonos-agent",
"metadata": "{}"
}
# Sign the vote
message = json.dumps(vote_data, separators=(',', ':'))
signable = encode_defunct(text=message)
Установить web3-dao-tooling в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл web3-dao-tooling?
Build DAO governance agents with SpoonOS. Use when monitoring proposals, automating voting, managing delegations, or analyzing governance patterns.
Как установить скилл web3-dao-tooling?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл web3-dao-tooling запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic