技能 writing-bots
🤖

writing-bots

安全 🌐 网络访问⚙️ 外部命令🔑 环境变量

使用 Silverback 建立區塊鏈監控機器人

建立區塊鏈機器人需要了解事件驅動架構和風險管理。本技能指導 AI 助手幫助用戶設計、實作和部署響應鏈上事件的自動化機器人。

支持: Claude Codex Code(CC)
⚠️ 68
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“writing-bots”。 Help me create a Silverback bot that monitors USDC transfers over 100,000

预期结果:

  • Use the Silverback App template with a Block handler or Event handler
  • Filter Transfer events where value > 100000 USDC
  • Add Telegram notification in the handler callback
  • Set environment variable for bot identity: SILVERBACK_APP_ID
  • Use print debugging first to verify event detection
  • Add a CircuitBreaker for emergency shutdown capability
  • Run with: silverback run --network ethereum:mainnet

正在使用“writing-bots”。 Design a bot that alerts me when a new pool is created on Uniswap

预期结果:

  • Use the Event handler to listen for PoolCreated events from the Uniswap factory contract
  • Set up filtering for the specific factory address you want to monitor
  • Configure Discord or Telegram notifications in the callback
  • Set SILVERBACK_APP_ID environment variable for identification
  • Start with monitoring mode before enabling any automated actions
  • Test thoroughly using a testnet like Sepolia first

正在使用“writing-bots”。 Create a trading bot with safety limits

预期结果:

  • Implement a CircuitBreaker that triggers when daily volume exceeds your limit
  • Use environment variables for all configuration: MAX_DAILY_VOLUME, MIN_PROFIT_THRESHOLD
  • Start in dry-run mode until you verify the logic works correctly
  • Only enable signing capabilities after thorough testing on testnet
  • Monitor all transactions via logs before going to production

安全审计

安全
v5 • 1/16/2026

This skill is a pure markdown prompt file providing guidance for designing blockchain bots using the Silverback SDK. All static findings are false positives. The scanner misidentified standard blockchain terminology (keccak256, sha256, mainnet) as cryptographic weaknesses, CLI documentation as command injection, and documentation URLs as network exfiltration. The skill contains no executable code and advises best practices including using environment variables and circuit breakers for safety.

2
已扫描文件
94
分析行数
3
发现项
5
审计总数
审计者: claude 查看审计历史 →

质量评分

38
架构
100
可维护性
85
内容
21
社区
100
安全
83
规范符合性

你能构建什么

監控 DeFi 協議

建立追蹤池指標並對異常活動發出警報的機器人

自動化交易響應

根據鏈上信號執行交易的機器人

橋接和同步系統

設計同步區塊鏈狀態與外部服務的機器人

试试这些提示

簡單事件監控器
Help me create a Silverback bot that listens for new blocks on Ethereum mainnet and logs block numbers and timestamps.
事件過濾機器人
Design a bot that watches for specific smart contract events on Uniswap and sends Discord notifications when trades occur.
風險管理自動化
Create a bot with circuit breaker protection and configurable limits via environment variables for automated trading.
多鏈聚合器
Build a bot that monitors multiple chains, tracks derived metrics, and triggers actions based on complex threshold conditions.

最佳实践

  • 在添加自動化操作之前先使用 print 調試
  • 所有可配置的限制和金鑰都使用環境變數
  • 為緊急停止條件實作斷路器
  • 在配置生產環境簽署金鑰之前徹底測試

避免

  • 跳過當前 SDK 版本的文件檢查
  • 在測試之前使用生產環境金鑰運行機器人
  • 在初始部署期間忽略錯誤日誌
  • 在機器人程式碼中硬編碼私鑰或密鑰

常见问题

Silverback 支援哪些區塊鏈網路?
Silverback 支援任何 EVM 相容的網路,包括以太坊、Polygon、Arbitrum 和 Optimism。
Silverback 機器人使用什麼程式語言?
Silverback 機器人使用 Python 編寫,並使用 Ape 框架進行區塊鏈互動。
如何連接 Discord 或 Telegram 等外部服務?
在事件處理常式中使用 Python 用戶端庫通過 webhook 或機器人 API 發送訊息。
使用簽署功能運行機器人安全嗎?
只有在徹底測試之後才可以。使用環境變數來管理金鑰,並實作斷路器以確保安全。
為什麼我的機器人沒有收到事件?
檢查網路配置、驗證合約地址,並查看日誌中的連接或過濾錯誤。
這與其他區塊鏈自動化工具相比如何?
Silverback 提供完整的 Python 靈活性來實現自定義邏輯,而其他工具可能在腳本功能上有所限制。

开发者详情

文件结构

📄 SKILL.md