Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add 8dp6brm9hp-svg/lion-mcp-public --skill lion-screen-before-paygit clone --depth 1 https://github.com/8dp6brm9hp-svg/lion-mcp-publicWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/8dp6brm9hp-svg/lion-mcp-public/lion-screen-before-pay)<a href="https://agentmods.dev/skills/8dp6brm9hp-svg/lion-mcp-public/lion-screen-before-pay"><img src="https://agentmods.dev/badge/skills/8dp6brm9hp-svg/lion-mcp-public/lion-screen-before-pay/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/8dp6brm9hp-svg/lion-mcp-public/lion-screen-before-pay"><img src="https://agentmods.dev/badge/skills/8dp6brm9hp-svg/lion-mcp-public/lion-screen-before-pay.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.01801 |
| Opus 5.5 | $0.00026 | $0.00720 |
| Sonnet 5.5 | $0.00013 | $0.00360 |
| Haiku 4.5 | $0.00006 | $0.00180 |
Grade A, and why
lion-screen-before-pay scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
HDR=$(curl -sD - -o /tmp/lion_screen_body.json "$LION" | awk 'tolower($1)=="payment-required:" { gsub(/\r/,""); print $2; exit }') How it starts
The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
lion-screen-before-pay
x402 verifies the payment, never who you are paying. An agent will happily send USDC to a payTo that belongs to a sanctioned, fraudulent, or honeypot counterparty. Screen first, pay second.
When to use
Whenever the agent is about to pay an x402 resource — or onboard/transact with any wallet, domain, or company. Screen the payTo before signing the payment.
The gate (one keyless call, $0.001 USDC on Base)
GET https://lionx402.com/api/x402/wallet-screen-json?address=<PAYTO>
address= the wallet you are about to pay.- Response:
{ "verdict": "PASS" | "WARN" | "BLOCK", "ofac": { "snapshot_as_of", "total_listed_addresses" }, "attestation" }. - Proceed on
PASS. Abort onWARNorBLOCK. Do not look forCLEAR. - The $0.05 compliance bundle is optional, and only when this screen is not enough:
GET https://lionx402.com/api/x402/compliance-bundle-json?address=<PAYTO>&receipt=1.
Workflow
- Hit the target resource without paying. On
402, readpayTofrom thePAYMENT-REQUIREDheader (base64 JSON,accepts[0].payTo). Use the JSON body only if that header is absent. - Screen it — pay the $0.001 wallet screen for that
payTo(it is itself an x402 call; pay it with thecdp-x402buyer flow below). - Decide:
verdict == "PASS"→ proceed to pay the target.WARNorBLOCK→ ABORT. - Keep the signed body. It verifies offline (no callback) against LION's published key.
Screening the gate (reuses the cdp-x402 buyer flow)
PAYTO=0x... # the counterparty you're about to pay
LION="https://lionx402.com/api/x402/wallet-screen-json?address=$PAYTO"
# The challenge is the PAYMENT-REQUIRED header. Use the JSON body only when that header is absent.
HDR=$(curl -sD - -o /tmp/lion_screen_body.json "$LION" | awk 'tolower($1)=="payment-required:" { gsub(/\r/,""); print $2; exit }')
if [ -n "$HDR" ]; then
REQ=$(printf '%s' "$HDR" | python3 -c 'import sys,base64,json; s=sys.stdin.read().strip().replace("-","+").replace("_","/"); s+="="*((4-len(s)%4)%4); print(json.dumps(json.loads(base64.b64decode(s))["accepts"][0], separators=(",", ":")))')
else
REQ=$(jq -c '.accepts[0]' /tmp/lion_screen_body.json)
fi
addr=$(cdp evm accounts by-name name=$ACCOUNT | jq -r .address)
payload=$(cdp util x402 build --from $addr --payment-requirements "$REQ")
D=$(echo "$payload" | jq -c .domain); T=$(echo "$payload" | jq -c .types)
P=$(echo "$payload" | jq -r .primaryType); M=$(echo "$payload" | jq -c .message)
sig=$(cdp evm accounts sign typed-data $addr \
"domain:=$D" "types:=$T" "primaryType=$P" "message:=$M" | jq -r .signature)
header=$(cdp util x402 encode --payment-requirements "$REQ" \
--signature "$sig" --authorization "$M" --x402-version 2)
RESULT=$(curl -s -H "X-PAYMENT: $header" -H "PAYMENT-SIGNATURE: $header" "$LION")
verdict=$(echo "$RESULT" | jq -r '.verdict // .receipt.verdict')
if [ "$verdict" != "PASS" ]; then
echo "BLOCKED ($verdict): $(echo "$RESULT" | jq -c '.flags')"; exit 1 # fail-closed: do NOT pay
fi
echo "$RESULT" | jq -c '.' > last_wallet_screen.json # keep the proof
# verdict PASS -> now pay the original target resource.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +1 lines 5439fbbd60c9
- 1mo ago Changed · +6 lines 1d7a04e6c48d
- 1mo ago First seen · 85 lines · 65 tokens per session scan A be71e0658402
lion-screen-before-pay is a skill published in the GitHub repository 8dp6brm9hp-svg/lion-mcp-public (1 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 1,801 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.
lion-screen-before-pay compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lion-screen-before-pay8dp6brm9hp-svg/lion-mcp-public | Skill | 1 | 1mo ago | MIT | A | 65 | Claude Code, Codex |
| stablecoin-chain-explorerokx/plugin-store | Skill | 12 | 6d ago | MIT | A | 72 | Claude Code |
| aero-vote-radararaxis33/aero-vote-radar | Skill | 3 | today | MIT | A | 84 | Claude Code, Codex |
| stablecoin-chain-explorerbarkermoney/barker-mcp | Skill | 2 | 1mo ago | MIT | A | 102 | Claude Code |
| clicks-protocolclicks-protocol/clicks-protocol | Skill | 2 | 4mo ago | MIT | A | 57 | Claude Code, Codex |
| bitfencebitfenceai/bitfence | Skill | 1 | 3mo ago | Apache-2.0 | A | 55 | Claude Code, Codex |
| stipendstipend-sh/stipend | Skill | 1 | 5d ago | Apache-2.0 | C | 76 | Claude Code, Codex |