Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

grimoire-pendle魔法书彭德尔

Agent Skill

grimoire-pendle 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

23,755

周安装

980

GitHub Stars

5

下载量

7,762
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:grimoire-pendle(魔法书彭德尔)
来源仓库:https://github.com/franalgaba/grimoire
仓库路径:skills/grimoire-pendle
安装命令:
npx skills add https://github.com/franalgaba/grimoire --skill grimoire-pendle
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/franalgaba/grimoire --skill grimoire-pendle

简介

获取 Pendle SDK 元数据并通过 CLI 命令验证路由配置。

  • 从 Pendle 托管的 API 查询支持的链、聚合器、市场、资产和市场代币详细信息
  • 六种命令类别:信息, 链, 支持聚合器, 市场, 资产
  • 和市场代币
  • 按链、活动状态和资产类型进行过滤
  • 支持JSON和表格输出格式;通过标志或环境变量可配置 API 基本 URL
  • 通过《魔法书》场地医生可进行飞行前验证
  • 在运行咒语之前测试适配器设置

SKILL.md

Grimoire Pendle Skill

Use this skill to inspect Pendle metadata and preflight Pendle routing configuration before running spells.

Preferred invocations:

  • grimoire venue pendle...
  • npx -y @grimoirelabs/cli venue pendle... (no-install)
  • bun run packages/cli/src/index.ts venue pendle... (repo-local)
  • grimoire-pendle... (direct binary from @grimoirelabs/venues)

Recommended preflight:

  • grimoire venue doctor --adapter pendle --chain 1 --rpc-url <rpc> --json

Commands

  • grimoire venue pendle info [--base-url <url>] [--format <auto|json|table>]
  • grimoire venue pendle chains [--base-url <url>] [--format <auto|json|table>]
  • grimoire venue pendle supported-aggregators --chain <id> [--base-url <url>] [--format <auto|json|table>]
  • grimoire venue pendle markets [--chain <id>] [--active <true|false>] [--base-url <url>] [--format <auto|json|table>]
  • grimoire venue pendle assets [--chain <id>] [--type <PT|YT|LP|SY>] [--base-url <url>] [--format <auto|json|table>]
  • grimoire venue pendle market-tokens --chain <id> --market <address> [--base-url <url>] [--format <auto|json|table>]

Examples

grimoire venue pendle info --format table
grimoire venue pendle chains
grimoire venue pendle supported-aggregators --chain 1 --format json
grimoire venue pendle markets --chain 1 --active true --format table
grimoire venue pendle assets --chain 8453 --type PT --format table
grimoire venue pendle market-tokens --chain 8453 --market 0x... --format json

Authoring Workflow

Pendle requires a market-first approach. Do NOT write a Pendle spell without first querying available markets.

  1. Query markets for the target chain and underlying: grimoire venue pendle markets --chain 1 --active true --format json
  2. Pick a market — note its address and expiry. Each market has specific PT/YT/SY tokens.
  3. Query market tokens to get the exact token addresses: grimoire venue pendle market-tokens --chain 1 --market 0x... --format json
  4. Write the spell using token addresses from step 3: pendle.add_liquidity(0x<SY_address>, params.amount) with (max_slippage=100)

Common mistakes

  • pendle.deposit(USDC,...) — Pendle has no deposit action. Use add_liquidity, mint_py, mint_sy, or swap.
  • Using token symbols without addresses — PT/YT/SY tokens are auto-resolved via the Pendle API, but standard tokens like USDC need raw amounts in the token's smallest unit.
  • Missing enable_aggregator — Some routes require an aggregator. If no route is found, retry with enable_aggregator=true in the with() clause.

Supported actions

ActionDescriptionInputOutput
swapSwap between any Pendle tokensSingle tokenSingle token
add_liquidityAdd single-sided liquidityUnderlying/SYLP token
remove_liquidityRemove single-sided liquidityLP tokenUnderlying/SY
mint_pyMint PT + YT from underlyingUnderlying/SYPT + YT
redeem_pyRedeem PT + YT to underlyingPT + YTUnderlying/SY
mint_syWrap underlying into SYUnderlyingSY
redeem_syUnwrap SY to underlyingSYUnderlying

Metric Surface (Spell Comparisons)

Pendle exposes quote_out for route output comparisons:

pendle_out = metric("quote_out", pendle, USDC, "asset_out=DAI,amount=1000000,slippage_bps=1000")

Selector fields:

  • required: asset_out
  • optional: amount (defaults to 1 unit of input asset), slippage_bps, enable_aggregator

Spell Constraints

When writing Pendle actions in .spell files, use with clauses:

pendle.swap(PT_TOKEN, SY_TOKEN, params.amount) with (
  max_slippage=100,
  require_quote=true,
)
ConstraintTypeDescription
max_slippageinteger (bps)Maximum slippage, validated as integer in [0, 10000], converted to decimal for API
min_outputinteger (wei)Minimum output amount floor
require_quotebooleanFail if Pendle API quote fails
max_gasinteger (wei)Gas estimate cap

Pendle swap only supports mode: exact_in. exact_out is not supported.

When the Pendle API returns multiple routes, the adapter selects the first (best) route and emits a warning via onWarning. This is logged in non-JSON CLI runs.

PT/YT/SY Token Resolution

Pendle PT, YT, and SY tokens (e.g. PT_FXSAVE, YT_EETH, SY_WSTETH) are automatically resolved via the Pendle API at build time. You can use these symbols directly in spells without providing explicit addresses:

pendle.swap(PT_FXSAVE, USDC, params.amount) with (max_slippage=100)

The adapter converts underscore-delimited names (e.g. PT_FXSAVE) to the Pendle API format and picks the best match. If multiple expiries exist, the first (nearest) is selected.

To target a specific expiry or disambiguate, use the full 0x address instead:

pendle.swap(0xb1e926428ebec4421cce1ec6d9ff65d27f4b4bb6, USDC, params.amount)

Use grimoire venue pendle assets --chain <id> --type PT to discover available tokens and addresses.

Notes

  • Default API base URL is https://api-v2.pendle.finance/core.
  • Override base URL with --base-url or PENDLE_API_BASE_URL.
  • Use --format json for automation and nested payloads.
  • Pendle swap currently supports mode: exact_in only.
  • Aggregators are disabled by default in adapter actions unless explicitly enabled.
  • For Pendle token outputs (assetOut, outputs), use bare address literals (0x...) and not quoted strings (\"0x...\").
  • Quoted address-like token values trigger validator code QUOTED_ADDRESS_LITERAL.
  • max_slippage is validated as integer bps in [0, 10000] and converted to decimal (bps / 10000) before API requests.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.15%
按下载量换算2,884

Claude

30.72%
按下载量换算2,384

Cursor

19.57%
按下载量换算1,519

Gemini CLI

10.02%
按下载量换算778

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills