AGENT SKILL

bound-the-search-space

Use when starting an open-ended investigation or repo exploration. Sets an explicit budget of queries, files, and minutes before searching, and forces a decision when the budget is spent.

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

01 前言 Front Matter

name
bound-the-search-space
description
Use when starting an open-ended investigation or repo exploration. Sets an explicit budget of queries, files, and minutes before searching, and forces a decision when the budget is spent.

02 资源文件 3

03 SKILL.md 正文

Bound the Search Space

Open-ended exploration has no natural end; it will consume whatever budget it is given. Set the boundary first, search inside it, and make a decision when it runs out.

Procedure

  1. Before the first search, write the budget down: budget: 8 queries, 25 files read, 10 minutes. Pick numbers from the task's size, not from optimism.
  2. Convert the goal into specific patterns first; a good query beats many vague ones: search for authenticate( not "auth stuff".
  3. Search narrow-to-wide: start in the likely module, then widen only if the first scope is empty. Do not begin with the whole filesystem.
  4. Exclude noise up front: grep -r --include='*.py' --exclude-dir={.git,node_modules,venv} <pat> ..
  5. Count budget as you spend it. After each query, decrement; when you hit the limit, stop searching and decide with what you have.
  6. Record negative results explicitly (searched: "retry" in src/, none found) so the next actor does not repeat the same search.
  7. When the budget is exhausted and the answer is still unclear, escalate a specific question to the user rather than opening a new budget silently.
  8. If the task genuinely needs more search, stop, state the new budget and why, and get it approved — do not just keep going.
  9. Write the stopping condition before rejecting anything: "stop when I can name the file that owns this behaviour."
  10. Spend the budget on the highest-information query first (a definition, a test, a call site), not the broadest.
  11. When the budget ends, produce a decision plus the single next query that most reduces uncertainty, and hand that off.

Pitfalls

  • A recursive grep from the home directory that scans caches and mounted volumes for minutes.
  • Reading files "to be sure" after the answer is already known.
  • Discovering the real objective only at the end, after searching the wrong space the whole time.
  • Not recording searches that returned nothing, so they are re-run later.
  • Treating "I'll know it when I see it" as a stopping condition — it never fires.
  • Widening the scope after the budget is spent instead of stopping, which erases the point of the budget.
  • Counting only primary greps and ignoring the file reads those greps trigger.

Verification

# After the investigation, the search log shows a bounded count
wc -l notes/search-log.txt   # <= declared budget
# passes when queries used <= budget and each query has a recorded result, hit or miss

Report to the user: the budget set, queries spent, the negative results worth recording, and the decision the budget bought.

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