SKILLEMALL.ai

CD uniswap-v4

Swap tokens and read pool state on Uniswap V4 (Base, Ethereum). Use when the agent needs to: (1) swap ERC20 tokens or ETH via Uniswap V4, (2) get pool info (price, tick, liquidity, fees), (3) find the best pool for a token pair, (4) quote expected swap output via the on-chain V4Quoter, (5) set up Permit2 approvals for the Universal Router, or (6) execute exact-input swaps with proper slippage protection. Supports Base and Ethereum mainnet, plus Base Sepolia testnet. TypeScript with strict types. Write operations need a private key via env var.

modbender/skill-library-mcp Agent Skills author: modbender MIT 36 files · 6 scripts body ≈ 1 836 tokens Open the sourcegithub.com analyzed 2 d ago

Swap tokens and read pool state on Uniswap V4 (Base, Ethereum).

As a process D 46/100 · Unfinished process — weak spots: result and completion, when it triggers, inputs and preconditions

GeneratorSoftware developmentAI and agentstype and topics are labelled automatically from the skill text
JSON
Technical rating
C
65/100
safety, quality, tests
Safety 60%
51
Quality 40%
85
Run on models
none yet
Process rating
D
46/100
Unfinished process
Result and completion w 14
0
Inputs and preconditions w 11
0
Progress reporting w 2
0
the three weakest of ten parameters · all ten

What is at stake

Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.

Dangerous commands medium severity

Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.

If you install

The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.

For the author

Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.

Risky intent medium severity

Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.

If you install

The purpose itself is risky: wallets, browser password stores, offensive security. Even an honest implementation gives the agent access to things that cost money.

For the author

Explain in the description why the access is needed and how it is limited; add tests that show refusals on dangerous requests.

How to improve

    For the model run — optional
    • Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
    • A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.

    Guard findings · 41

    ✓ No critical or high findings

    Medium and low: 41
    • medium Dangerous commands cmd-pipe-to-shell scripts/bootstrap.sh:21
      Downloads and executes remote code from an unrecognised host (pipe to shell) (string literal in code, not executed)
      check "cast" "curl -L https://foundry.paradigm.xyz | bash && foundryup"
      code literal
    • medium Risky intent intent-wallet-secrets SKILL.md:124
      Handles crypto-wallet secrets (seed / mnemonic / private key) — a classic stealer target
      | `PRIVATE_KEY`         | approve, swap  | Yes*     | Wallet private key (never CLI!) |
    • low Risky intent intent-offensive-security CHANGELOG.md:60
      Offensive-security / dual-use content (legitimate for authorised testing; review intended use)
      **Security Fixes (from PhD Review + Pentest):**
    • low Secrets in code secret-high-entropy-token package-lock.json:36
      High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)
      "integrity": "sha5…7pY+zoMV…h0x/Ptw8…8dg==",
      detector
    • low Secrets in code secret-high-entropy-token package-lock.json:53
      High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)
      "integrity": "sha5…b00+Gxjx…zRc/oZwU…hzA==",
      detector
    • low Secrets in code secret-high-entropy-token package-lock.json:121
      High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)
      "integrity": "sha512-vHk/hA7/1Ack…wbo+jaSh…Gtl+A5zq…HFg==",
      detector
    • low Secrets in code secret-high-entropy-token package-lock.json:155
      High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)
      "integrity": "sha5…Dsc+j03S…0oA==",
      detector
    • low Secrets in code secret-high-entropy-token package-lock.json:444
      High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)
      "integrity": "sha5…NS8+tHW7…WOF+PEzk…X4Q==",
      detector
    • low Secrets in code secret-high-entropy-token package.json:46
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      "PoolManager (Base)": "0x49…b2b",
      quoted
    • low Secrets in code secret-high-entropy-token package.json:48
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      "Permit2": "0x00…BA3",
      quoted
    • low Secrets in code secret-high-entropy-token README.md:21
      High-entropy token-like string (may be an id, hash or a credential)
      npx tsx src/pool-info.ts --token0 ETH --token1 0x83…913 --chain base --rpc https://mainnet.base.org
    • low Secrets in code secret-high-entropy-token README.md:24
      High-entropy token-like string (may be an id, hash or a credential)
      npx tsx src/quote.ts --token-in ETH --token-out 0x83…913 --amount 10000000000000000 --rpc https://mainnet.base.org
    • low Secrets in code secret-high-entropy-token README.md:27
      High-entropy token-like string (may be an id, hash or a credential)
      PRIVATE_KEY=0x... npx tsx src/swap.ts --token-in ETH --token-out 0x83…913 --amount 10000000000000000 --rpc https://mainnet.base.org --json
    • low Secrets in code secret-high-entropy-token references/addresses.md:9
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      - **PoolManager**: `0x49…b2b`
      quoted
    • low Secrets in code secret-high-entropy-token references/addresses.md:11
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      - **Permit2 (universal)**: `0x00…BA3`
      quoted
    • low Secrets in code secret-high-entropy-token references/addresses.md:15
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      - **USDC**: `0x83…913`
      quoted
    • low Secrets in code secret-high-entropy-token references/addresses.md:18
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      - **PoolManager**: `0x00…A90`
      quoted
    • low Secrets in code secret-high-entropy-token references/addresses.md:19
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      - **UniversalRouter**: `0x66…8Af`
      quoted
    • low Secrets in code secret-high-entropy-token scripts/approve.sh:22
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      [base]="0x49…C25"
      quoted
    • low Secrets in code secret-high-entropy-token scripts/approve.sh:23
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      [ethereum]="0x00…BA3"
      quoted
    • low Secrets in code secret-high-entropy-token scripts/approve.sh:26
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      [base]="0x6D…075"
      quoted
    • low Secrets in code secret-high-entropy-token scripts/approve.sh:27
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      [ethereum]="0x66…8Af"
      quoted
    • low Secrets in code secret-high-entropy-token scripts/swap.sh:6
      High-entropy token-like string (may be an id, hash or a credential)
      #   PRIVATE_KEY=0x... ./swap.sh --token-in ETH --token-out 0x83…913 --amount 10000000000000000 --chain base
    • low Secrets in code secret-high-entropy-token scripts/swap.sh:30
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      [base]="0x49…b2b"
      quoted
    • low Secrets in code secret-high-entropy-token scripts/swap.sh:31
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      [ethereum]="0x00…A90"
      quoted
    • low Secrets in code secret-high-entropy-token scripts/swap.sh:34
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      [base]="0x6D…075"
      quoted
    • low Secrets in code secret-high-entropy-token scripts/swap.sh:35
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      [ethereum]="0x66…8Af"
      quoted
    • low Secrets in code secret-high-entropy-token scripts/v4_read.py:14
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      "pool_manager": "0x49…b2b",
      quoted
    • low Secrets in code secret-high-entropy-token scripts/v4_read.py:18
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      "pool_manager": "0x00…A90",
      quoted
    • low Secrets in code secret-high-entropy-token SKILL.md:21
      High-entropy token-like string (may be an id, hash or a credential) (documentation table row)
      | PoolManager      | `0x49…b2b` | `0x00…A90` |
      table
    • low Secrets in code secret-high-entropy-token SKILL.md:22
      High-entropy token-like string (may be an id, hash or a credential) (documentation table row)
      | UniversalRouter  | `0x6f…b43` | `0x66…8Af` |
      table
    • low Secrets in code secret-high-entropy-token SKILL.md:23
      High-entropy token-like string (may be an id, hash or a credential) (documentation table row)
      | Permit2          | `0x00…BA3` | `0x00…BA3` |
      table
    • low Secrets in code secret-high-entropy-token SKILL.md:47
      High-entropy token-like string (may be an id, hash or a credential)
      npx tsx src/pool-info.ts --token0 ETH --token1 0x83…913 --chain base --rpc $BASE_RPC_URL
    • low Secrets in code secret-high-entropy-token SKILL.md:60
      High-entropy token-like string (may be an id, hash or a credential)
      --token-out 0x83…913 \
    • low Risky intent intent-wallet-secrets src/approve.ts:57
      Handles crypto-wallet secrets (seed / mnemonic / private key) — a classic stealer target (quoted — discussed, not commanded)
      PRIVATE_KEY             Wallet private key (REQUIRED, never pass on CLI)
      quoted
    • low Secrets in code secret-high-entropy-token src/lib/addresses.ts:24
      High-entropy token-like string (may be an id, hash or a credential)
      * Permit2 is universal: 0x00…BA3 on all chains.
    • low Secrets in code secret-high-entropy-token src/lib/addresses.ts:29
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      poolManager: "0x49…b2b",
      quoted
    • low Secrets in code secret-high-entropy-token src/lib/addresses.ts:31
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      permit2: "0x00…BA3",
      quoted
    • low Secrets in code secret-high-entropy-token src/lib/addresses.ts:40
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      poolManager: "0x00…A90",
      quoted
    • low Secrets in code secret-high-entropy-token src/lib/addresses.ts:41
      High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)
      universalRouter: "0x66…8Af",
      quoted
    • low Risky intent intent-wallet-secrets src/swap.ts:76
      Handles crypto-wallet secrets (seed / mnemonic / private key) — a classic stealer target (quoted — discussed, not commanded)
      PRIVATE_KEY             Wallet private key (REQUIRED)
      quoted

    Files scanned: 26. Evidence is masked. Grey chips explain why severity was lowered.

    Against the Agent Skills spec

    ✓ No remarks against the Agent Skills spec

    Process rating: all ten parameters 46/100

    • 0Result and completion. Does not say what the result is
    • 0Inputs and preconditions. Does not say what the process needs to start
    • 0Progress reporting. Says nothing while it works
    • 20When it triggers. No condition that starts the skill
    • 30Running it twice. 5 mutating operations with no state check
    • 50Failures and branches. 0 branches, has a failure section
    • 60Tools and files. Uses tools (bash) that frontmatter does not declare
    • 85Steps. 28 steps, 1 vague phrases
    • 100Consistency. Name and required fields are in place
    • 100Execution cost. Instruction body is 1836 tokens
    • medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing

    Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.

    Quality signals

    • +5Description has no quoted example phrases that should trigger the skill
    • +4Description does not say when NOT to use the skill (false activations)
    • +3Output format is not stated: the model decides each time
    • -37 of 7 scripts are never mentioned in SKILL.md
    • +1No license
    • +2Single-language instructions
    • +3Description length 549: enough signal without eating the budget
    • +4Structure: 14 headings
    • +3Step-by-step instructions: 28 items
    • +4Has examples (6 code blocks)
    • +4Reference files are cited in the instructions (3 of 3)

    Quality base 70; lint remarks subtract, signals add up to 100. Result: 85.