Mole Bug Patterns
tw93/Mole
A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.
Multi-chain yield optimization via yield.xyz (StakeKit). An agent skill from moonpay/skills.
$ npx skills add moonpay/skills --skill yield-optimization -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install moonpay/skills yield-optimization --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/moonpay/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/yield-optimization .claude/skills/yield-optimization && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "yield-optimization" agent skill from https://github.com/moonpay/skills/tree/main/skills/yield-optimization into .claude/skills/yield-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yield-optimization", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/moonpay/skills/tree/main/skills/yield-optimizationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add moonpay/skills --skill yield-optimization -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install moonpay/skills yield-optimization --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/moonpay/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/yield-optimization .agents/skills/yield-optimization && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "yield-optimization" agent skill from https://github.com/moonpay/skills/tree/main/skills/yield-optimization into .agents/skills/yield-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yield-optimization", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add moonpay/skills --skill yield-optimization -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install moonpay/skills yield-optimization --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/moonpay/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/yield-optimization .cursor/skills/yield-optimization && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "yield-optimization" agent skill from https://github.com/moonpay/skills/tree/main/skills/yield-optimization into .cursor/skills/yield-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yield-optimization", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/moonpay/skills.git --path skills/yield-optimization--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add moonpay/skills --skill yield-optimization -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install moonpay/skills yield-optimization --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/moonpay/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/yield-optimization .gemini/skills/yield-optimization && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "yield-optimization" agent skill from https://github.com/moonpay/skills/tree/main/skills/yield-optimization into .gemini/skills/yield-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yield-optimization", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install moonpay/skills yield-optimizationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add moonpay/skills --skill yield-optimization -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/moonpay/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/yield-optimization .github/skills/yield-optimization && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "yield-optimization" agent skill from https://github.com/moonpay/skills/tree/main/skills/yield-optimization into .github/skills/yield-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yield-optimization", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add moonpay/skills --skill yield-optimization -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install moonpay/skills yield-optimization --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/moonpay/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/yield-optimization .opencode/skills/yield-optimization && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "yield-optimization" agent skill from https://github.com/moonpay/skills/tree/main/skills/yield-optimization into .opencode/skills/yield-optimization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yield-optimization", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
yield-optimizationMulti-chain yield optimization via yield.xyz (StakeKit). An agent skill from moonpay/skills.
Yield Optimization is an agent skill from moonpay/skills. Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit/withdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter/exit a position, or check portfolio balances.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Shell scripting and Banking and insurance. The repository describes itself as: Skills for AI agents to move money — on-ramps, swaps, wallets, deposits, and more via the MoonPay CLI. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit aa672ab. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npxnpmgitFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
github.comdashboard.yield.xyzAlso links to:
docs.yield.xyznpmjs.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
YIELDS_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Yield Optimization loads about 1.6k tokens when it runs. Until then it costs about 90 tokens; SKILL.md has 315 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from moonpay/skills at commit aa672ab, republished under its MIT licence (© moonpay). 315 words, ~1,607 tokens.
.claude/skills/yield-optimization/SKILL.md (or your agent's skills folder).yield.xyz (powered by StakeKit) aggregates 2,988+ yield opportunities across 75+ blockchains — lending, staking, vaults, restaking, and liquidity pools. The agent skill uses shell scripts to discover yields, build unsigned transactions, and sign them with your MoonPay wallet.
find-yields.sh → discover opportunities by chain + token
enter-position.sh → build unsigned deposit transaction
mp transaction send → sign and broadcast with MoonPay wallet
check-portfolio.sh → monitor balances and pending rewards
exit-position.sh → build unsigned withdrawal transaction# curl and jq (required)
which curl jq
# MoonPay CLI for wallet + signing
npm install -g @moonpay/cli
mp login
export YIELDS_API_KEY="..." # optional: get one at https://dashboard.yield.xyznpx clawhub@latest install yield-agentOr manually:
git clone https://github.com/stakekit/yield-agent.git ~/.openclaw/skills/yield-agent
chmod +x ~/.openclaw/skills/yield-agent/scripts/*.sh| Script | Description |
|---|---|
find-yields.sh [chain] [token] | Discover yields by network and token |
get-yield-info.sh [yield-id] | Retrieve yield schema and validator info |
list-validators.sh [yield-id] | List validators for staking positions |
enter-position.sh [yield-id] [address] [params] | Build unsigned deposit transaction |
exit-position.sh [yield-id] [address] | Build unsigned withdrawal transaction |
manage-position.sh [yield-id] [action] | Claim rewards, restake, redelegate |
check-portfolio.sh [yield-id] [address] | View balances and pending actions |
# Find USDC yields on Base
./scripts/find-yields.sh base USDC
# Find ETH staking on Ethereum
./scripts/find-yields.sh ethereum ETH# Get schema and requirements before entering
./scripts/get-yield-info.sh base-usdc-aave-v3-lendingAlways fetch the yield schema before executing — it specifies required params and multi-step order.
# Build unsigned deposit transaction (amounts are human-readable — "100" = 100 USDC)
./scripts/enter-position.sh base-usdc-aave-v3-lending 0xYOUR_ADDRESS '{"amount":"100"}'
# → returns unsignedTransaction JSON# Step 1: Sign the unsigned transaction
mp transaction sign \
--wallet "yield-agent" \
--chain base \
--transaction '<unsignedTransaction from step 3>'
# → returns signedTransaction JSON
# Step 2: Broadcast the signed transaction
mp transaction send \
--chain base \
--transaction '<signedTransaction from step 1>'For multi-step transactions, execute in stepIndex order. Sign each step exactly as returned — never modify unsignedTransaction.
./scripts/check-portfolio.sh base-usdc-aave-v3-lending 0xYOUR_ADDRESS./scripts/exit-position.sh base-usdc-aave-v3-lending 0xYOUR_ADDRESS
# → sign result with mp transaction send./scripts/manage-position.sh base-usdc-aave-v3-lending claim
./scripts/manage-position.sh ethereum-eth-lido-staking redelegate# Create a dedicated yield wallet
mp wallet create --name "yield-agent"
mp wallet retrieve --wallet "yield-agent" # note addresses per chainmp buy --token usdc_base --amount 500 --wallet <base-address> --email <email>
mp buy --token usdc_ethereum --amount 1000 --wallet <eth-address> --email <email>
mp buy --token eth_ethereum --amount 0.05 --wallet <eth-address> --email <email># USDC on Ethereum → Base (chase higher yield)
mp token bridge \
--from-wallet yield-agent --from-chain ethereum \
--from-token 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 \
--from-amount 500 \
--to-chain base \
--to-token 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913mp virtual-account create && mp virtual-account kyc submit
mp virtual-account bank-account add
mp virtual-account onramp create \
--name "yield-onramp" --fiat usd --stablecoin usdc --chain ethereum --wallet <eth-address>mp token balance list --wallet <eth-address> --chain ethereum
mp virtual-account offramp create --amount 2000 --chain ethereum --wallet <eth-address>yield.xyz only builds unsigned transactions — your MoonPay wallet handles all signing. Keys are AES-256-GCM encrypted locally and never leave the machine. For large positions use a hardware wallet:
mp wallet hardware add --name "yield-ledger"npx clawhub@latest install yield-agentmp wallet create --name "yield-agent"mp buy --token usdc_base --amount 500 --wallet <address> --email <email>./scripts/find-yields.sh base USDC./scripts/get-yield-info.sh <yield-id>./scripts/enter-position.sh <yield-id> <address> '{"amount":"500"}'mp transaction sign --wallet "yield-agent" --chain base --transaction <unsignedTx> then mp transaction send --chain base --transaction <signedTx>./scripts/check-portfolio.sh <yield-id> <address>mp virtual-account offramp create to withdraw earned yield© moonpay, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/yield-optimization of moonpay/skills.
Open the folder on GitHubat commit aa672ab
Yield Optimization next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Yield Optimization this skillmoonpay/skills | 113 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Mole Bug Patternstw93/Mole | 69k | — | ~2k | Automated safety check: Pass | GPL-3.0 | |
| CLI DeveloperJeffallan/claude-skills | 12k | 1 repos | ~1.2k | Automated safety check: Pass | MIT | |
| JSON Processing with jqcharmbracelet/crush | 29k | — | ~746 | Automated safety check: Pass | Custom licence | |
| Crush Shell Builtinscharmbracelet/crush | 29k | — | ~790 | Automated safety check: Pass | Custom licence | |
| Shellm Architecture Referencelaude-institute/headlong | 1.2k | — | ~2k | Automated safety check: Notes | Apache-2.0 |
tw93/Mole
A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.
Jeffallan/claude-skills
Walks through designing, building and polishing a command-line tool: user workflow and command hierarchy, implementation in commander, click, typer or cobra, completions and cross-platform testing.
charmbracelet/crush
Explains the jq command built into Crush for querying, filtering and reshaping JSON, including its supported flags and where it differs from standard jq.
charmbracelet/crush
Explains how to add a new in-process builtin command to Crush's embedded POSIX shell, so it is intercepted before reaching the OS, with context polling and exit-status rules.
laude-institute/headlong
Explains how shellm's bash-based recursive LLM shell fits together - its core engine, identity system, memory, skills and trajectory log.
crazyguitar/cppcheatsheet
Comprehensive C/C++ programming reference covering everything from C11-C23 and C++11-C++23, system programming, CUDA GPU computing, debugging tools, Rust interop, and advanced topics.
moonpay/skills
A skill your agent uses when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or Alchemy-specific features.
moonpay/skills
Integrates Alchemy blockchain APIs using an API key. An agent skill from moonpay/skills.
moonpay/skills
Query blockchain data via Allium APIs. An agent skill from moonpay/skills.
moonpay/skills
Paid API marketplace for AI agents via Corbits. An agent skill from moonpay/skills.
moonpay/skills
Blockchain analytics via Dune REST API — execute DuneSQL queries against live on-chain data, discover decoded contract tables, and monitor credit usage.
moonpay/skills
Set up the MoonPay CLI, authenticate, and manage local wallets.
Categories
Multi-chain yield optimization via yield.xyz (StakeKit). An agent skill from moonpay/skills. Yield Optimization is an agent skill from moonpay/skills.xyz (StakeKit).
Yield Optimization fits situations like: the user wants to earn yield; find the best lending; enter/exit a position; check portfolio balances.
Run `npx skills add moonpay/skills --skill yield-optimization -a claude-code`. Or copy the skill folder (skills/yield-optimization in moonpay/skills) into .claude/skills/yield-optimization in your project. Claude Code loads it when a task matches its description.
Run `npx skills add moonpay/skills --skill yield-optimization -a codex`. Or copy the skill folder (skills/yield-optimization in moonpay/skills) into .agents/skills/yield-optimization in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add moonpay/skills --skill yield-optimization -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/yield-optimization, .gemini/skills/yield-optimization, .github/skills/yield-optimization and .opencode/skills/yield-optimization in your project.
Going by SKILL.md and its folder, Yield Optimization needs the command-line tools its instructions call (npx, npm and git) and credentials named YIELDS_API_KEY. Our summary lists: Node.js; A credential in YIELDS_API_KEY.
SKILL.md names 4 domains. In commands or code: github.com and dashboard.yield.xyz; the agent is likely to contact these when it follows the instructions. As links in the text: docs.yield.xyz and npmjs.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Yield Optimization is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Yield Optimization: Mole Bug Patterns (tw93/Mole, 69k stars), CLI Developer (Jeffallan/claude-skills, 12k stars), JSON Processing with jq (charmbracelet/crush, 29k stars) and Crush Shell Builtins (charmbracelet/crush, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
moonpay (a GitHub organization) maintains it in moonpay/skills, which has 113 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on September 10, 2026.
Source: moonpay/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.