full-lp-workflowFull LP workflow from opportunity scanning to position entry. Autonomously finds the best LP opportunity, designs a strategy, assesses risk, executes any needed swaps, enters the position, and reports portfolio impact. Use when user has capital and wants end-to-end LP management. Most complex multi-agent orchestration in the system.
Install via ClawdBot CLI:
clawdbot install wpank/full-lp-workflowThis is the most complex multi-agent orchestration in the system. It turns a single intent -- "I have $20K, find me the best yield" -- into a fully researched, risk-assessed, optimally-structured LP position through a 6-agent pipeline.
Why this is 10x better than calling agents individually:
Activate when the user says anything like:
Do NOT use when the user already knows which pool they want (use manage-liquidity instead), just wants strategy comparison without execution (use lp-strategy), or just wants to scan without entering (use scan-opportunities).
| Parameter | Required | Default | How to Extract |
| --------------- | -------- | ---------- | ------------------------------------------------------------------ |
| capital | Yes | -- | Total capital to deploy: "$20,000", "10 ETH", "$5K" |
| chain | No | all | Target chain or "all" for cross-chain scan |
| riskTolerance | No | moderate | "conservative", "moderate", "aggressive" |
| pairPreference | No | -- | Optional token pair preference: "ETH/USDC", "stablecoin pairs" |
| excludeTokens | No | -- | Tokens to exclude: "PEPE, SHIB" (avoid memecoins, etc.) |
| capitalToken | No | auto-detect| What token the capital is in: "USDC", "ETH", auto-detect from wallet |
If the user doesn't provide capital amount, ask for it -- never guess how much to deploy.
FULL LP WORKFLOW PIPELINE
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Step 1: SCAN (opportunity-scanner) β
β βββ Scan LP opportunities across chains β
β βββ Filter by risk tolerance and capital size β
β βββ Rank top 3-5 by risk-adjusted yield β
β βββ Output: Ranked Opportunity List β
β β β
β βΌ USER CHOICE POINT β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Present top opportunities to user. β β
β β User picks one OR accepts recommendation (#1). β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β β
β Step 2: STRATEGIZE (lp-strategist) β
β βββ Design optimal strategy for chosen opportunity β
β βββ Version, fee tier, range width, rebalance plan β
β βββ Conservative/moderate/optimistic APY estimates β
β βββ Output: LP Strategy Recommendation β
β β β
β βΌ β
β β
β Step 3: RISK CHECK (risk-assessor) β
β βββ Receives: opportunity data + strategy details β
β βββ Evaluates: IL, slippage, liquidity, smart contract β
β βββ Decision: APPROVE / CONDITIONAL / VETO / HARD_VETO β
β βββ Output: Risk Assessment Report β
β β β
β βΌ CONDITIONAL GATE β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β APPROVE / COND. APPROVE β Continue β β
β β VETO / HARD_VETO β STOP with full report β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β β
β Step 4: SWAP IF NEEDED (trade-executor) -- CONDITIONAL β
β βββ Check wallet balances vs required tokens β
β βββ If tokens needed: calculate swap amounts β
β βββ USER CONFIRMATION #1: "Swap X for Y to prepare for LP?" β
β βββ Execute swap(s) if confirmed β
β βββ Output: Swap result OR "tokens already held" β
β β β
β βΌ β
β β
β Step 5: ENTER POSITION (liquidity-manager) β
β βββ USER CONFIRMATION #2: "Add liquidity with these params?" β
β βββ Handle approvals (Permit2) β
β βββ Add liquidity at recommended range β
β βββ Wait for transaction confirmation β
β βββ Output: Position ID, amounts deposited, tick range β
β β β
β βΌ β
β β
β Step 6: CONFIRM & REPORT (portfolio-analyst) β
β βββ Verify position was created successfully β
β βββ Show portfolio impact (before vs after) β
β βββ Monitoring instructions β
β βββ Output: Portfolio Report + Next Steps β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Before starting the pipeline:
mcpuniswapcheck_safety_status -- verify spending limits can accommodate the capital amount.mcpuniswapget_agent_balance on the target chain(s) -- verify the wallet has the stated capital.Delegate to Task(subagent_type:opportunity-scanner) with:
Scan for LP opportunities with these parameters:
- Available capital: {capital}
- Chains: {chain or "all supported chains"}
- Risk tolerance: {riskTolerance}
- Type: "lp" (LP opportunities only)
- Minimum TVL: $50,000
- Top N: 5
Additional filters:
- Pair preference: {pairPreference or "none"}
- Exclude tokens: {excludeTokens or "none"}
Return the top 5 LP opportunities ranked by risk-adjusted yield.
Each opportunity must include fee APY, estimated IL, risk-adjusted yield,
TVL, volume, and risk rating.
Present to user with a choice:
Step 1/6: Opportunity Scan Complete
Found 5 LP opportunities (filtered from 200+ pools):
# Pool Chain Fee APY Est. IL Net APY Risk TVL
1 WETH/USDC 0.05% ETH 21% -6% 15% MEDIUM $332M
2 WETH/USDC 0.05% Base 18% -5% 13% MEDIUM $45M
3 ARB/WETH 0.30% Arb 35% -12% 23% HIGH $12M
4 USDC/USDT 0.01% ETH 8% -0.1% 7.9% LOW $200M
5 cbETH/WETH 0.05% Base 12% -3% 9% LOW $28M
Recommended: #1 (WETH/USDC 0.05% on Ethereum) β best balance of yield and risk
Which opportunity would you like to pursue? (1-5, or "1" to accept recommendation)
Wait for user selection before proceeding.
Delegate to Task(subagent_type:lp-strategist) with the chosen opportunity:
Design an optimal LP strategy for this opportunity:
Opportunity details (from opportunity-scanner):
{Full opportunity data from Step 1 for chosen pool}
LP parameters:
- Capital: {capital}
- Risk tolerance: {riskTolerance}
- Chain: {chain of chosen opportunity}
Provide:
1. Recommended version and fee tier (with rationale)
2. Optimal tick range (lower/upper prices, width %)
3. Conservative/moderate/optimistic APY and IL estimates
4. Rebalance strategy (trigger, frequency, estimated cost)
5. Comparison to the next-best alternative
Present to user:
Step 2/6: Strategy Designed
Pool: WETH/USDC 0.05% (V3, Ethereum)
Range: $1,700 - $2,300 (Β±15%, medium width)
Expected: 15% net APY (moderate estimate)
Strategy Details:
Fee APY (moderate): 21%
Estimated IL: -6%
Net APY: 15%
Rebalance: every 2-3 weeks (trigger: price within 10% of boundary)
Rebalance cost: ~$15/rebalance on Ethereum
Proceeding to risk assessment...
Delegate to Task(subagent_type:risk-assessor) with compound context:
Evaluate risk for this LP strategy:
Operation: add liquidity
Token pair: {token0}/{token1}
Pool: {pool address}
Chain: {chain}
Capital: {capital}
Risk tolerance: {riskTolerance}
Strategy context (from lp-strategist):
{Full strategy recommendation from Step 2}
Opportunity context (from opportunity-scanner):
{Key metrics from Step 1: TVL, volume trend, risk rating}
Evaluate: impermanent loss risk, slippage risk (entry/exit), liquidity risk,
smart contract risk. Provide APPROVE/CONDITIONAL_APPROVE/VETO/HARD_VETO.
Conditional gate (same logic as research-and-trade):
| Decision | Action |
| -------------------- | ----------------------------------------------------------------------- |
| APPROVE | Present risk summary, proceed to Step 4 |
| CONDITIONAL_APPROVE | Show conditions, ask user if they accept |
| VETO | STOP. Show opportunity + strategy + veto reason. Suggest fallbacks. |
| HARD_VETO | STOP. Show reason. Non-negotiable. |
Present to user (APPROVE case):
Step 3/6: Risk Assessment Passed
Decision: APPROVE
Composite Risk: MEDIUM
IL Risk: MEDIUM (8.2% annual estimate for volatile pair)
Slippage: LOW (deep pool, entry < 0.1% impact)
Liquidity: LOW (TVL 6,640x your position)
Smart Contract: LOW (V3, established pool)
Proceeding to prepare tokens...
Check wallet balances against required token amounts for the LP position:
mcpuniswapget_agent_balance.If no swaps needed:
Step 4/6: Token Preparation β Skipped
You already hold sufficient WETH and USDC for this position.
No swaps required.
If swaps needed, present and ask USER CONFIRMATION #1:
Step 4/6: Token Preparation Required
Your position needs:
0.5 WETH (~$980)
980 USDC (~$980)
You currently hold:
2.0 WETH ($3,920)
0 USDC ($0)
Proposed swap:
Sell 0.5 WETH β Buy ~980 USDC
Estimated slippage: 0.05%
Gas: ~$8
Approve this swap to prepare tokens for LP? (yes/no)
Only execute the swap if the user explicitly confirms. If the user declines, stop the pipeline and present what was accomplished (scan + strategy + risk assessment).
Present the full LP entry details and ask USER CONFIRMATION #2:
Step 5/6: Ready to Add Liquidity
Pool: WETH/USDC 0.05% (V3, Ethereum)
Deposit:
0.5 WETH (~$980)
980 USDC (~$980)
Total: ~$1,960
Range:
Lower: $1,700 (tick -204714)
Upper: $2,300 (tick -199514)
Current: $1,963 β IN RANGE
Width: Β±15% (medium)
Expected Fee APY: ~15-21% (based on 7d pool data)
Add liquidity with these parameters? (yes/no)
Only proceed if the user confirms. Then delegate to Task(subagent_type:liquidity-manager):
Add liquidity to this pool:
Pool: {pool address}
Chain: {chain}
Version: {version}
Token0: {token0 address} β Amount: {amount0}
Token1: {token1 address} β Amount: {amount1}
Tick lower: {tick_lower}
Tick upper: {tick_upper}
Strategy context:
- Range strategy: {medium/narrow/wide}
- From lp-strategist recommendation
Execute: handle approvals, simulate, route through safety-guardian, add liquidity,
wait for confirmation. Return position ID and actual amounts deposited.
Delegate to Task(subagent_type:portfolio-analyst) with the new position:
Report on the portfolio impact of this new LP position:
New position:
- Position ID: {position_id from Step 5}
- Pool: {pool_address}
- Chain: {chain}
- Tokens deposited: {amounts}
- Tick range: {lower} to {upper}
- Transaction: {tx_hash}
Wallet address: {wallet_address}
Provide:
1. New position details and current status (in-range confirmation)
2. Portfolio impact (if other positions exist, show before/after composition)
3. Total portfolio value across all chains
4. Monitoring recommendations
Present final result:
Step 6/6: Position Confirmed & Portfolio Updated
New Position: #456789
Pool: WETH/USDC 0.05% (V3, Ethereum)
Status: IN RANGE
Value: $1,960
Deposited:
0.5 WETH ($980)
980 USDC ($980)
Range:
$1,700 β $2,300 (current: $1,963)
Expected Returns:
Fee APY: 15-21% (moderate-optimistic)
Est. IL: -5 to -8% annualized
Net: 9-15% annualized
Portfolio Impact:
Total LP Value: $1,960 (new) + $45,000 (existing) = $46,960
LP Allocation: 42% WETH, 35% USDC, 23% other
Chain Split: 85% Ethereum, 15% Base
ββββββββββββββββββββββββββββββββββββββ
Pipeline Summary
ββββββββββββββββββββββββββββββββββββββ
Scan: 5 opportunities found, #1 selected
Strategy: V3 0.05%, Β±15% range, bi-weekly rebalance
Risk: APPROVED (MEDIUM composite)
Swap: 0.5 WETH β 980 USDC (preparation)
Position: #456789 β IN RANGE
Cost: $15.20 total gas (swap + LP entry)
Next Steps:
- Monitor: "How are my positions doing?"
- Rebalance when needed: "Rebalance position #456789"
- Collect fees: "Collect fees from position #456789"
These are the moments where the skill must stop and ask rather than assume:
| Situation | Action |
| ------------------------------------- | ---------------------------------------------------------------- |
| Capital amount not specified | Ask: "How much capital would you like to deploy?" |
| Multiple good opportunities | Present top 3-5, let user choose |
| Risk-assessor VETO | Stop. Show research + strategy + veto reason. |
| Swap needed for token preparation | USER CONFIRMATION #1: show swap details, ask to proceed |
| Ready to add liquidity | USER CONFIRMATION #2: show position details, ask to proceed |
| Capital exceeds safety spending limit | Stop. Show limit. Suggest reducing amount or adjusting limits. |
| Wallet doesn't have stated capital | Stop. Show actual balance. Ask to adjust amount. |
| Best opportunity is on a different chain than wallet funds | Explain cross-chain situation, suggest bridge or chain choice |
If the pipeline fails mid-way, report what was accomplished and what remains:
LP Workflow β Partial Completion
Completed:
[done] Step 1: Scan β 5 opportunities found, #1 selected
[done] Step 2: Strategy β V3 0.05%, Β±15% range designed
[done] Step 3: Risk β APPROVED (MEDIUM)
[FAIL] Step 4: Swap β Transaction reverted (insufficient gas)
Remaining:
[ ] Step 5: Add liquidity
[ ] Step 6: Portfolio report
Recovery Options:
- Ensure sufficient ETH for gas and retry: "Continue LP workflow"
- Add liquidity manually with the strategy above: "Add liquidity to WETH/USDC 0.05%"
- Start over: "Full LP workflow with $X"
Full LP Workflow Complete
Opportunity: {pool_pair} {fee}% on {chain}
Strategy: {version}, {range_width} range, {rebalance_frequency} rebalance
Risk: {decision} ({composite_risk})
Position: #{position_id} β {status}
Value: ${total_value}
Returns (moderate estimate):
Fee APY: {fee_apy}%
Est. IL: {il}%
Net APY: {net_apy}%
Cost: ${total_gas} gas across {n} transactions
Pipeline: Scan -> Strategy -> Risk -> Swap -> Enter -> Confirm (all passed)
| Error | User-Facing Message | Suggested Action |
| ---------------------------------- | -------------------------------------------------------------------------- | --------------------------------------- |
| No opportunities found | "No LP opportunities match your criteria on {chain}." | Broaden chain filter or lower minTVL |
| Opportunity-scanner fails | "Opportunity scan failed. Cannot identify LP targets." | Try scan-opportunities directly |
| LP-strategist fails | "Strategy design failed for {pool}. Scan results preserved." | Try lp-strategy or optimize-lp directly |
| Risk-assessor VETO | "Risk assessment vetoed: {reason}. Strategy: {summary}." | Pick a different opportunity or reduce size |
| Risk-assessor HARD_VETO | "Strategy blocked: {reason}. This cannot be overridden." | Choose a lower-risk opportunity |
| Insufficient balance for swap | "Not enough {token} to prepare for LP. Have {X}, need {Y}." | Reduce capital or acquire tokens |
| Swap execution fails | "Token swap failed: {reason}. Strategy and risk data preserved." | Retry or swap manually |
| Liquidity add fails | "Failed to add liquidity: {reason}. Tokens are still in your wallet." | Retry or use manage-liquidity directly |
| Position not confirmed | "Position created but not yet confirmed on-chain. Check back in a moment." | Wait and check with track-performance |
| Safety spending limit exceeded | "Capital of ${X} exceeds spending limit of ${Y}." | Reduce amount or adjust safety config |
| Wallet not configured | "No wallet configured. Cannot execute transactions." | Set up wallet with setup-agent-wallet |
| User declines swap confirmation | "Token swap cancelled. Strategy preserved β you can proceed manually." | Use manage-liquidity with manual prep |
| User declines LP confirmation | "LP entry cancelled. All prior research is shown above." | Adjust parameters and retry |
AI Usage Analysis
Analysis is being generated⦠refresh in a few seconds.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection