dca-bot
DCA Bot
Dollar-cost-average a fixed amount into a token on a schedule on the operator's target chain, optionally gated on a price condition such as "only buy when ETH is below a threshold".
Runtime Compatibility: This skill uses
AskUserQuestionfor interactive prompts (mode selection, per-transaction confirmation). IfAskUserQuestionis not available in your runtime, collect the same parameters and confirmations through natural language conversation instead.
Overview
This is a thin strategy layer. It owns cadence, idempotency, the optional condition check, and guardrails. It does NOT own execution. Every quote, approval, swap, and signature is delegated to swap-integration and viem-integration. The skill never builds quote, approval, swap, or signing logic itself.
The skill does not run a scheduler. The host agent's scheduler (a cron entry or the runtime's wake mechanism) invokes the skill on a cadence. Each invocation is a single, self-contained run that reads state, decides whether to act, optionally acts, and writes state.
Prerequisites
- swap-integration (uniswap-trading): the only execution path. All swaps go through its Trading API flow (
check_approvalthenquotethenswap, then sign and broadcast). Do not reimplement any of it. - viem-integration (uniswap-viem): accounts, clients, signing, transaction broadcast, and receipt waiting.
Read these plugin references before acting and treat them as ground truth: