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.
As a process D 46/100 · Unfinished process — weak spots: result and completion, when it triggers, inputs and preconditions
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
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.
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.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The purpose itself is risky: wallets, browser password stores, offensive security. Even an honest implementation gives the agent access to things that cost money.
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
- 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-shellscripts/bootstrap.sh:21Downloads 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-secretsSKILL.md:124Handles 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-securityCHANGELOG.md:60Offensive-security / dual-use content (legitimate for authorised testing; review intended use)**Security Fixes (from PhD Review + Pentest):**
-
low Secrets in code
secret-high-entropy-tokenpackage-lock.json:36High-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-tokenpackage-lock.json:53High-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-tokenpackage-lock.json:121High-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-tokenpackage-lock.json:155High-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-tokenpackage-lock.json:444High-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-tokenpackage.json:46High-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-tokenpackage.json:48High-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-tokenREADME.md:21High-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-tokenREADME.md:24High-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-tokenREADME.md:27High-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-tokenreferences/addresses.md:9High-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-tokenreferences/addresses.md:11High-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-tokenreferences/addresses.md:15High-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-tokenreferences/addresses.md:18High-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-tokenreferences/addresses.md:19High-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-tokenscripts/approve.sh:22High-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-tokenscripts/approve.sh:23High-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-tokenscripts/approve.sh:26High-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-tokenscripts/approve.sh:27High-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-tokenscripts/swap.sh:6High-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-tokenscripts/swap.sh:30High-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-tokenscripts/swap.sh:31High-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-tokenscripts/swap.sh:34High-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-tokenscripts/swap.sh:35High-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-tokenscripts/v4_read.py:14High-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-tokenscripts/v4_read.py:18High-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-tokenSKILL.md:21High-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-tokenSKILL.md:22High-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-tokenSKILL.md:23High-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-tokenSKILL.md:47High-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-tokenSKILL.md:60High-entropy token-like string (may be an id, hash or a credential)--token-out 0x83…913 \
-
low Risky intent
intent-wallet-secretssrc/approve.ts:57Handles 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-tokensrc/lib/addresses.ts:24High-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-tokensrc/lib/addresses.ts:29High-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-tokensrc/lib/addresses.ts:31High-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-tokensrc/lib/addresses.ts:40High-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-tokensrc/lib/addresses.ts:41High-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-secretssrc/swap.ts:76Handles crypto-wallet secrets (seed / mnemonic / private key) — a classic stealer target (quoted — discussed, not commanded)PRIVATE_KEY Wallet private key (REQUIRED)
quoted
Files scanned: 27. 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 1794 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.