awaken-agent-skills
Awaken DEX trading and market data operations for agents.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- awaken-agent-skills
- version
- 1.2.4
- activation
- { "tags": [ "dex", "defi", "aelf", "awaken" ], "keywords": [ "dex", "swap", "liquidity", "quote", "kline", "price route", "awaken" ], "exclude_keywords": [ "guardian", "recovery", "dao", "nft mint", "wallet create" ], "max_context_tokens": 1800 }
- description
- Awaken DEX trading and market data operations for agents.
02 资源文件 75
- 脚本__tests__/e2e/liquidity.e2e.test.ts7.1 KB
- 脚本__tests__/e2e/swap.e2e.test.ts4.8 KB
- 脚本__tests__/integration/api-calls.test.ts3.8 KB
- 脚本__tests__/integration/core-query.test.ts2.3 KB
- 脚本__tests__/integration/kline-signalr.test.ts3.1 KB
- 脚本__tests__/integration/view-calls.test.ts1.8 KB
- 脚本__tests__/unit/aelf-client.test.ts1.8 KB
- 脚本__tests__/unit/cli-helpers.test.ts3.0 KB
- 脚本__tests__/unit/config.test.ts3.2 KB
- 脚本__tests__/unit/core-kline-errors.test.ts3.2 KB
- 脚本__tests__/unit/core-kline.test.ts797 B
- 脚本__tests__/unit/core-query-errors.test.ts2.8 KB
- 脚本__tests__/unit/core-query.mocked.test.ts10.9 KB
- 脚本__tests__/unit/core-query.test.ts1.2 KB
- 脚本__tests__/unit/core-trade-errors.test.ts3.0 KB
- 脚本__tests__/unit/core-trade.mocked.test.ts8.0 KB
- 脚本__tests__/unit/core-trade.test.ts811 B
- 脚本__tests__/unit/index-exports.test.ts1.8 KB
- 脚本__tests__/unit/ironclaw-config.test.ts2.5 KB
- 脚本__tests__/unit/ironclaw-setup.test.ts2.8 KB
- 脚本__tests__/unit/ironclaw-skill.test.ts3.0 KB
- 脚本__tests__/unit/mcp-annotations-raw.test.ts3.2 KB
- 脚本__tests__/unit/mcp-annotations.test.ts1.5 KB
- 脚本__tests__/unit/mcp-server.test.ts5.1 KB
- 脚本__tests__/unit/signer-context.test.ts6.1 KB
- 脚本__tests__/unit/types.test.ts989 B
- 脚本__tests__/unit/wallet-context.test.ts4.4 KB
- 参考文档_meta.json440 B
- 其他.env.example1.4 KB
- 参考文档.github/workflows/coverage-badge.yml666 B
- 参考文档.github/workflows/publish.yml1.2 KB
- 参考文档.github/workflows/test.yml1001 B
- 其他.gitignore69 B
- 脚本awaken_kline_skill.ts1.9 KB
- 脚本awaken_query_skill.ts4.2 KB
- 脚本awaken_trade_skill.ts4.6 KB
- 脚本bin/generate-coverage-badge.ts6.6 KB
- 脚本bin/generate-openclaw.ts4.2 KB
- 脚本bin/platforms/claude.ts1.8 KB
- 脚本bin/platforms/cursor.ts2.3 KB
- 脚本bin/platforms/ironclaw.ts6.9 KB
- 脚本bin/platforms/openclaw.ts3.6 KB
- 脚本bin/platforms/utils.ts4.4 KB
- 脚本bin/setup.js40 B
- 脚本bin/setup.ts7.8 KB
- 脚本cli-helpers.ts486 B
- 参考文档deps-baseline.json126 B
- 脚本index.ts1.9 KB
- 脚本lib/aelf-client.ts5.2 KB
- 脚本lib/config.ts4.6 KB
- 脚本lib/errors.ts317 B
- 脚本lib/signer-context.ts6.7 KB
- 脚本lib/signer-error-codes.ts519 B
- 脚本lib/types.ts5.3 KB
- 脚本lib/wallet-context.ts7.9 KB
- 许可证LICENSE1.0 KB
- 参考文档mcp-config.example.json1.0 KB
- 参考文档openclaw.json7.9 KB
- 参考文档package.json3.8 KB
- 参考文档README.md13.1 KB
- 参考文档README.zh-CN.md12.6 KB
- 参考文档schemas/wallet-context.v1.schema.json2.0 KB
- 脚本scripts/check-deps-baseline.ts2.7 KB
- 脚本scripts/coverage-gate.ts4.8 KB
- 参考文档SOURCE.md371 B
- 脚本src/core/kline.ts3.8 KB
- 脚本src/core/query.ts8.3 KB
- 脚本src/core/trade.ts8.3 KB
- 脚本src/mcp/error.ts1.6 KB
- 脚本src/mcp/server.ts13.1 KB
- 参考文档TRUST.auto.yaml2.1 KB
- 参考文档tsconfig.base.json379 B
- 参考文档tsconfig.json39 B
- 参考文档tsconfig.src.json295 B
- 参考文档tsconfig.test.json326 B
03 SKILL.md 正文
Awaken Agent Skill
When to use
- Use this skill when you need Awaken DEX quote, swap, liquidity, and kline analysis tasks.
- Default to this skill for DEX, swap, liquidity, quote, and K-line requests on aelf.
Capabilities
- Read operations: quote, pair info, balances, allowance, positions
- Write operations: swap, add/remove liquidity, approve
- SignalR-based K-line retrieval and interval discovery
- Shared signer resolution for write tools:
explicit -> context -> env - Supports SDK, CLI, MCP, OpenClaw, and IronClaw integration from one codebase.
Safe usage rules
- Never print private keys, mnemonics, or tokens in channel outputs.
- For write operations, require explicit user confirmation and validate parameters before sending transactions.
- Prefer
simulateor read-only queries first when available. - Active wallet context file is metadata-only; never store plaintext private keys in context.
Command recipes
- Start MCP server:
bun run mcp - Run CLI entry:
bun run awaken_query_skill.ts quote --symbol-in ELF --symbol-out USDT --amount-in 1 - Install into IronClaw:
bun run setup ironclaw - Generate OpenClaw config:
bun run build:openclaw - Verify OpenClaw config:
bun run build:openclaw:check - Run CI coverage gate:
bun run test:coverage:ci - Example write call with resolver: pass
signerMode=autoand optionalsigner.password.
Distribution / Activation
- GitHub repo/tree URLs are discovery-only for hosts and agents.
- Preferred IronClaw activation from npm:
bunx -p @awaken-finance/agent-kit awaken-setup ironclaw - Preferred OpenClaw activation from npm when managed install is unavailable:
bunx -p @awaken-finance/agent-kit awaken-setup openclaw - Local repo checkout is for development and smoke tests only.
Limits / Non-goals
- This skill focuses on domain operations and adapters; it is not a full wallet custody system.
- Do not hardcode environment secrets in source code or docs.
- Avoid bypassing validation for external service calls.
signerMode=daemonis intentionally reserved and returnsSIGNER_DAEMON_NOT_IMPLEMENTED.- Do not use this skill for guardian, recovery, DAO governance, or NFT mint routing.
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.