AGENT SKILL

gate-side-effecting-tools-with-human-approval

Use when an agent step writes, spends, deletes, or sends something irreversible. Pause for explicit human approval before the side effect, showing exactly what will change.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 81
Forks
17

01 前言 Front Matter

name
gate-side-effecting-tools-with-human-approval
description
Use when an agent step writes, spends, deletes, or sends something irreversible. Pause for explicit human approval before the side effect, showing exactly what will change.

02 资源文件 3

03 SKILL.md 正文

Gate side-effecting tools with human approval

An agent that can send money, delete rows, or post publicly is one bad guess from damage no retry undoes. Insert a human gate before the effect, present the exact diff, and block until a decision arrives.

Procedure

  1. Classify tools by blast radius: read (none), local-write (reversible), remote-write / spend / send (irreversible or external).
  2. Gate every irreversible class. Reads and reversible local writes may proceed without a prompt.
  3. Before the gated call, render the precise effect: the command, the target, the row count or amount, and the pre-state.
  4. Show the diff, not a summary: DELETE FROM sessions WHERE expires_at < now() -- affects 1,204 rows.
  5. Offer three explicit outcomes: approve once, approve for this run, or reject. Default to reject on no answer.
  6. Bind approval to a specific call — an approved delete of 1,204 rows does not authorise the next delete.
  7. Re-prompt if the arguments change between approval and execution; approval of a stale arguments is no approval.
  8. Log the decision: gate=delete-sessions decision=approve-once approver=user turn=11.
  9. For batch fan-out, gate the batch as one decision with the full item list, not one prompt per item.
  10. Record a timeout as a rejection, not an implicit approve; an unanswered gate must not let the effect through.

Pitfalls

  • Summarising the effect as "clean up old sessions" so the human cannot see the row count or table.
  • Caching one approval and reusing it for a different command or target in the same run.
  • Asking after the write has already landed, which turns a gate into a notification.
  • Defaulting to approve when the user does not respond in time.
  • Prompting for a reversible local write and training the human to click approve without reading.
  • Letting a fan-out child take the gated action under a parent's blanket approval it never received.
  • Showing the proposed command in a language the approver cannot read, so the decision is nominal.
  • Filing the approval in a chat message that scrolls away instead of the action log beside the call.

Verification

grep -c 'gate=.*decision=' notes/action.log   # every irreversible call has a matching decision line

Report each gated action with its target, the shown effect, and the human's decision.

04 同仓库更多 Skills

jiayaoqijia
jiayaoqijia/cryptoskill

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.

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

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".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

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.

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

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...".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

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".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

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.

★ 81