Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
franalgaba avatar

Grimoire Uniswap

  • 1.1k installs
  • 6 repo stars
  • Updated May 8, 2026
  • franalgaba/grimoire

grimoire-uniswap provides documented workflows for Retrieves Uniswap router metadata using the Grimoire venue CLI. Use when you need router addresses, adapter information, or Uniswap V3/V4 details.

About

The grimoire-uniswap skill retrieves Uniswap router metadata using the Grimoire venue CLI Use when you need router addresses adapter information or Uniswap V3 V4 details Grimoire Uniswap Skill Use this skill to inspect Uniswap metadata and produce token pool snapshots for spells Preferred invocations grimoire venue uniswap npx y grimoirelabs cli venue uniswap no-install bun run packages cli src index ts venue uniswap repo-local grimoire-uniswap direct binary from grimoirelabs venues Recommended preflight grimoire venue doctor adapter uniswap chain 1 rpc-url rpc json Commands grimoire venue uniswap info adapter metadata grimoire venue uniswap routers chain id router addresses per chain grimoire venue uniswap tokens chain id symbol sym address addr source url token list lookup grimoire venue uniswap tokens-snapshot chain id symbol sym address addr source url generate spell params block for tokens agent-only grimoire venue uniswap pools token0 address symbol token1 address symbol chain id fee bps limit n source url endpoint url graph-key key subgraph-id id rpc-url url factory address find pools for a token pair grimoire venue uniswap

  • `grimoire venue uniswap ...`
  • `npx -y @grimoirelabs/cli venue uniswap ...` (no-install)
  • `bun run packages/cli/src/index.ts venue uniswap ...` (repo-local)
  • `grimoire-uniswap ...` (direct binary from `@grimoirelabs/venues`)
  • `grimoire venue doctor --adapter uniswap --chain 1 --rpc-url <rpc> --json`

Grimoire Uniswap by the numbers

  • 1,058 all-time installs (skills.sh)
  • +1 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #230 of 1,039 Mobile Development skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

grimoire-uniswap capabilities & compatibility

Capabilities
`grimoire venue uniswap ...` · `npx y @grimoirelabs/cli venue uniswap ...` (no · `bun run packages/cli/src/index.ts venue uniswap · `grimoire uniswap ...` (direct binary from `@gri · `grimoire venue doctor adapter uniswap chain
Use cases
documentation
From the docs

What grimoire-uniswap says it does

# Grimoire Uniswap Skill Use this skill to inspect Uniswap metadata and produce token/pool snapshots for spells.
SKILL.md
Built-in subgraph IDs for Ethereum, Optimism, Polygon, Base, Arbitrum.
SKILL.md
npx skills add https://github.com/franalgaba/grimoire --skill grimoire-uniswap

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.1k
repo stars6
Security audit1 / 3 scanners passed
Last updatedMay 8, 2026
Repositoryfranalgaba/grimoire

How do I use grimoire-uniswap for the task described in its SKILL.md triggers?

Retrieves Uniswap router metadata using the Grimoire venue CLI. Use when you need router addresses, adapter information, or Uniswap V3/V4 details.

Who is it for?

Teams invoking grimoire-uniswap when the user request matches documented triggers and prerequisites.

Skip if: Skip when cached docs are missing, the request is a negative trigger, or another sibling skill owns the workflow.

When should I use this skill?

Retrieves Uniswap router metadata using the Grimoire venue CLI. Use when you need router addresses, adapter information, or Uniswap V3/V4 details.

What you get

Step-by-step guidance grounded in grimoire-uniswap documentation and reference files.

  • Router metadata JSON
  • Token and pool snapshots

By the numbers

  • Covers Uniswap V3 and V4 router metadata through the Grimoire venue adapter
  • Documents four preferred CLI invocation paths including npx no-install

Files

SKILL.mdMarkdownGitHub ↗

Grimoire Uniswap Skill

Use this skill to inspect Uniswap metadata and produce token/pool snapshots for spells.

Preferred invocations:

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

Recommended preflight:

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

Commands

  • grimoire venue uniswap info — adapter metadata
  • grimoire venue uniswap routers [--chain <id>] — router addresses per chain
  • grimoire venue uniswap tokens [--chain <id>] [--symbol <sym>] [--address <addr>] [--source <url>] — token list lookup
  • grimoire venue uniswap tokens-snapshot [--chain <id>] [--symbol <sym>] [--address <addr>] [--source <url>] — generate spell params: block for tokens (agent-only)
  • grimoire venue uniswap pools --token0 <address|symbol> --token1 <address|symbol> [--chain <id>] [--fee <bps>] [--limit <n>] [--source <url>] [--endpoint <url>] [--graph-key <key>] [--subgraph-id <id>] [--rpc-url <url>] [--factory <address>] — find pools for a token pair
  • grimoire venue uniswap pools-snapshot --token0 <address|symbol> --token1 <address|symbol> [--chain <id>] [--fee <bps>] [--limit <n>] [--source <url>] [--endpoint <url>] [--graph-key <key>] [--subgraph-id <id>] [--rpc-url <url>] [--factory <address>] — generate spell params: block for pools (agent-only)

Pool Data Sources

Pools can be fetched from The Graph (subgraph) or directly from on-chain factory contracts:

  • Subgraph (default when GRAPH_API_KEY is set): queries The Graph decentralized network. Built-in subgraph IDs for Ethereum, Optimism, Polygon, Base, Arbitrum.
  • RPC (fallback): if no usable graph config is present, pools uses on-chain factory lookups (with --rpc-url/RPC_URL when provided, otherwise chain default RPC where available).
  • To force RPC mode: provide --rpc-url and omit --graph-key.

Environment Variables

VariableDescription
GRAPH_API_KEYThe Graph API key for subgraph queries (get one at https://thegraph.com/studio/apikeys/)
RPC_URLFallback RPC URL for on-chain pool lookups

Examples

grimoire venue uniswap info --format table
grimoire venue uniswap routers
grimoire venue uniswap routers --chain 1
grimoire venue uniswap tokens --chain 1 --symbol USDC --format spell
grimoire venue uniswap pools --chain 1 --token0 USDC --token1 WETH --fee 3000 --format spell
grimoire venue uniswap pools --chain 8453 --token0 USDC --token1 WETH --fee 500 --rpc-url $RPC_URL --format table
grimoire venue uniswap pools --chain 8453 --token0 USDC --token1 WETH --fee 500 --graph-key $GRAPH_API_KEY --subgraph-id <id>
grimoire venue uniswap tokens-snapshot --chain 1 --symbol USDC
grimoire venue uniswap pools-snapshot --chain 1 --token0 USDC --token1 WETH --rpc-url $RPC_URL

Use tokens-snapshot or pools-snapshot to emit a params: block for spell inputs. These are agent-only commands (output suppressed in interactive mode).

Metric Surface (Spell Comparisons)

Uniswap V3 and V4 expose quote_out for protocol comparison:

v3_out = metric("quote_out", uni_v3, USDC, "asset_out=WETH,amount=1000000,fee_tier=3000")
v4_out = metric("quote_out", uni_v4, USDC, "asset_out=WETH,amount=1000000,fee_tier=3000,tick_spacing=60")

Selector fields:

  • required: asset_out
  • optional: amount (defaults to 1 unit of input asset), fee_tier
  • V4 optional: tick_spacing

Spell Constraints

When writing swap actions in .spell files targeting Uniswap, use with clauses to set constraints:

uniswap_v3.swap(USDC, WETH, params.amount) with (
  fee_tier=3000,
  max_slippage=50,
  min_output=900000000000000,
  deadline=300,
)

`fee_tier` is required. The adapter throws if fee_tier is not specified. It is an action parameter (not a constraint) and is extracted from the with() clause.

Common fee tiers: 500 (0.05%), 3000 (0.3%), 10000 (1%).

ParameterTypeDescription
fee_tierinteger (bps)Required. Uniswap pool fee tier (e.g. 500, 3000, 10000)
ConstraintTypeDescription
max_slippageinteger (bps)Maximum slippage in basis points (e.g. 50 = 0.5%)
min_outputinteger (wei)Minimum output amount floor
max_inputinteger (wei)Maximum input amount cap
deadlineinteger (seconds)Transaction deadline from now
require_quotebooleanFail if on-chain quote fetch fails
require_simulationbooleanFail if simulation unavailable
max_gasinteger (wei)Gas estimate cap

Always set both max_slippage and min_output for swaps to prevent unexpected losses.

Supported Adapters

AdapterRouterApproval Flow
@uniswap_v3SwapRouter02Standard ERC20 approve
@uniswap_v4Universal RouterPermit2

Notes

  • CLI currently exposes V3 metadata. V4 adapter is available programmatically via createUniswapV4Adapter().
  • For metadata lookups (tokens, pools), use grimoire venue uniswap ... even when your spell venue is uniswap_v4.
  • Outputs JSON/table; tokens and pools also support --format spell.
  • Prefer --format json for automation and reproducible snapshots.
  • Only metadata is exposed (no on-chain quote endpoints).

Related skills

How it compares

Choose grimoire-uniswap when you already standardize on Grimoire venue CLI and need Uniswap-specific router and pool snapshots rather than generic block explorer lookups.

FAQ

What does grimoire-uniswap do?

Retrieves Uniswap router metadata using the Grimoire venue CLI. Use when you need router addresses, adapter information, or Uniswap V3/V4 details.

When should I use grimoire-uniswap?

Retrieves Uniswap router metadata using the Grimoire venue CLI. Use when you need router addresses, adapter information, or Uniswap V3/V4 details.

What are common prerequisites?

--- name: grimoire-uniswap description: Retrieves Uniswap router metadata using the Grimoire venue CLI.

Is Grimoire Uniswap safe to install?

skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.