Skip to content

docs(polygon-defi): add proactive session prerequisites for DeFi contracts#102

Merged
JamesLawton merged 3 commits intomainfrom
docs/defi-session-prerequisites
Apr 27, 2026
Merged

docs(polygon-defi): add proactive session prerequisites for DeFi contracts#102
JamesLawton merged 3 commits intomainfrom
docs/defi-session-prerequisites

Conversation

@JamesLawton
Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Session Prerequisites section at the top of skills/polygon-defi/SKILL.md listing the contracts that wallet create auto-whitelists (USDC, Aave V3 Pool, Morpho vaults), so the agent proactively ensures the session is current before any DeFi operation
  • Updates the deposit bullet in the main skills/SKILL.md to name the Aave V3 Pool address explicitly and tell the agent to re-run wallet create --usdc-limit 5 if the user has an older session

Context

The code already has AUTO_WHITELISTED_CONTRACTS in wallet.ts that includes these addresses, but the skill files only told agents to fix a missing contract after a 400 rejection. This change makes the guidance proactive: when the polygon-defi skill is invoked, the agent verifies (and if needed recreates) the session upfront.

Test plan

  • Verify skills/polygon-defi/SKILL.md renders the session prerequisites block correctly at agentconnect.polygon.technology
  • Confirm no regressions in the existing whitelisting table lower in the file

…racts

When the polygon-defi skill is invoked, the agent now knows to ensure
the wallet session was created with the CLI (which auto-whitelists USDC,
Aave V3 Pool, and Morpho vault contracts). Previously the skill only
told the agent to fix a missing contract after a 400 rejection.
Tell the agent to include all DeFi contracts in the initial wallet
create when the user's goal involves deposit, yield, swap, Aave, or
Morpho — so the user approves once instead of going through a second
auth round-trip when the deposit is later attempted.
@JamesLawton JamesLawton merged commit 12571d8 into main Apr 27, 2026
4 checks passed
@JamesLawton JamesLawton deleted the docs/defi-session-prerequisites branch April 27, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant