grimoire-yellow

📁 franalgaba/grimoire 📅 5 days ago
1
总安装量
1
周安装量
#42745
全站排名
安装命令
npx skills add https://github.com/franalgaba/grimoire --skill grimoire-yellow

Agent 安装分布

amp 1
pi 1
opencode 1
cursor 1
codex 1

Skill 文档

Grimoire Yellow Skill

Use the Grimoire CLI to execute Yellow app-session lifecycle actions through the yellow adapter.

Preferred:

  • grimoire simulate ...
  • grimoire cast ... --dry-run

If you installed packages directly, you can use @grimoirelabs/core + @grimoirelabs/venues programmatically.

When to use

  • You need session lifecycle operations in a spell:
    • session_open
    • session_update
    • session_close_settle
    • session_transfer helper
  • You want deterministic CLI validation (simulate / cast --dry-run) for Yellow flows.

Prerequisites

  • Global CLI: npm i -g @grimoirelabs/cli
  • No install: npx -y @grimoirelabs/cli ...
  • Environment:
    • YELLOW_RPC_URL (required)
    • YELLOW_APP_ID (recommended)
    • YELLOW_CHAIN_ID (optional)

VM snapshot usage

Yellow currently does not have a dedicated grimoire venue yellow ... metadata CLI. For VM runs, provide explicit session payloads in spell params:.

Commands

  • grimoire validate <spell>
  • grimoire simulate <spell> [--no-state] [--json]
  • grimoire cast <spell> --dry-run [--no-state] [--json]

Examples

grimoire validate spells/defihack/yellow-session-track.spell
grimoire simulate spells/defihack/yellow-session-track.spell --no-state --json
grimoire cast spells/defihack/yellow-session-track.spell --dry-run --no-state --json

Notes

  • Keep Yellow actions in a dedicated spell/skill for failure isolation.
  • Typical manual flow is open -> updates loop -> close/settle with emit events.
  • Update intents must be one of operate, deposit, or withdraw.
  • Session version must increment by exactly 1 for updates.
  • Update allocations must be non-empty.
  • Signatures must satisfy configured quorum/signer set.