Skip to content

feat(morpho-vault): replace morpho-builder with vault-integration skill - #29

Open
jinmel wants to merge 1 commit into
mainfrom
feat/morpho-vault-plugin
Open

feat(morpho-vault): replace morpho-builder with vault-integration skill#29
jinmel wants to merge 1 commit into
mainfrom
feat/morpho-vault-plugin

Conversation

@jinmel

@jinmel jinmel commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Part of SDK-266

Summary

Replaces the experimental morpho-builder plugin with morpho-vault, a plugin carrying the vault-integration skill: a full technical + UX guide for code-generation agents building Morpho Vault earn features (deposit apps, savings screens, treasury scripts).

The skill fuses two halves that fail together in real integrations:

  • Technical wiring — vault discovery and display via the GraphQL API (every field name verified against the live schema: netApyExcludingRewards, state.allRewards, listed, state.curators, liquidity), morpho-sdk deposit/withdraw flows, ERC-4626 mechanics (redeem for full exits, the Vault V2 max*-returns-0 quirk), token quirks (USDC decimals, USDT allowance reset, DAI permit).
  • Morpho Integrator Blueprint — product vocabulary (Earn, variable — not staking/guaranteed), Powered by Morpho attribution (verified embed snippet), first-interaction disclosure gate, APY composition split by payout token, and vault transparency (name, curator, TVL, liquidity).

Layout: a lean 93-line SKILL.md workflow (discover → display → disclose → transact → review) with six progressive-disclosure references.

Evals

Adds evals/suites/vault-integration, a Promptfoo suite modeled on Uniswap's uniswap-ai eval framework: three realistic integrator briefs (React earn tab, treasury deposit bot, misleading-copy review) graded by deterministic contains checks plus checklist-scored LLM rubrics (blueprint compliance ≥ 0.85, technical correctness ≥ 0.8).

Agentic benchmark during development (Claude with skill vs. no-skill baseline, one run each):

Case With skill Baseline
react-earn-tab 9/9 4/9
backend-deposit-bot 7/7 6/7
apy-copy-review 7/7 6/7

Baselines invented GraphQL fields (netApyWithoutRewards, a whitelisted filter), hardcoded memory-recalled vault addresses, and shipped no attribution or disclosure gate — the exact failure modes the skill's verified references close.

Other changes

  • marketplace.json: morpho-builder entry → morpho-vault
  • README.md: overview + install instructions updated
  • morpho-cli skill description now cross-references vault-integration for application-code work
  • skills/vault-integration symlink follows the repo convention

Test plan

  • JSON/YAML manifests validated (marketplace.json, plugin.json, promptfoo.yaml)
  • All GraphQL fields in the skill verified against the live api.morpho.org schema (introspection + real queries)
  • Agentic with-skill vs. baseline benchmark run and human-reviewed (results above)
  • npx promptfoo eval in evals/suites/vault-integration (needs ANTHROPIC_API_KEY; not wired to CI yet)

Remove the morpho-builder plugin and introduce morpho-vault, a plugin
carrying the vault-integration skill for code-generation agents building
Morpho Vault earn features. The skill pairs the technical wiring (GraphQL
API fields verified against the live schema, morpho-sdk deposit/withdraw
flows, ERC-4626 mechanics) with Morpho's Integrator Blueprint (product
vocabulary, Powered by Morpho attribution, disclosures, APY composition,
vault transparency).

Also add a Promptfoo eval suite (evals/suites/vault-integration) modeled
on Uniswap's uniswap-ai framework: three integrator-brief cases graded by
deterministic checks plus checklist-scored LLM rubrics. In agentic
benchmarks the skill scored 23/23 assertions vs 16/23 for a no-skill
baseline, with baselines inventing GraphQL fields (netApyWithoutRewards,
whitelisted) and omitting attribution/disclosure entirely.
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