CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk, X Layer through OKX Payments / OKX Agent Payments Protocol, and Solana plus multi-network EVM through the upstream x402 packages with facilitator-based settlement. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

Quality

81%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Critical

Do not install without reviewing

SKILL.md
Quality
Evals
Security

Quality

Content

70%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is exceptionally actionable and workflow-safe: executable, version-pinned code with explicit validation and fail-closed behavior for a high-risk payment domain. Its weaknesses are token efficiency and structure — a monolithic 590-line file with inlined reference-grade material that belongs in one-level-deep reference files.

Suggestions

Move the Option C buyer-side payOnce implementation and the seller-side replay-guard implementation into separate reference files (e.g. references/buyer-policy.md and references/seller-replay.md), keeping only the decision table and key security principles in SKILL.md.

Trim repeated security caveats (user confirmation, fail-closed, orchestrator-held keys) to a single 'Security invariants' section referenced from each option, and shorten multi-sentence in-code comments to the non-obvious insight only.

Relocate volatile details — pinned package versions, 'As of writing' facilitator/discovery catalogs, and the vendor disclosure — into a dedicated, clearly-labeled reference file so SKILL.md stays stable as versions change.

DimensionReasoningScore

Conciseness

The ~590-line body is noticeably verbose: the same security caveats (confirm with user, fail closed, orchestrator-only keys) are repeated across sections, code blocks carry paragraph-length commentary, and time-sensitive details (pinned versions like '@x402/fetch@2.22.0', 'As of writing' facilitator lists) are inlined rather than isolated. It is not anchor 1 — almost none of it explains concepts Claude already knows — but well above efficient.

2 / 5

Actionability

Fully executable throughout: pinned MCP config JSON, complete runnable TypeScript for buyer policy enforcement and seller replay protection, specific bash/curl commands (ATA existence check, spl-token provisioning), and exact endpoints. Copy-paste ready code covers the common buyer and seller cases.

5 / 5

Workflow Clarity

A decision tree routes users to the right integration path, each option has numbered steps, and validation is explicit for a payment (destructive-capability) skill: adversarial policy tests, ATA existence verification before settling, fail-closed budget checks with distinct error paths, and replay-claim testing. Error recovery guidance (e.g. transaction_simulation_failed diagnosis, payment_replayed reconciliation) is included.

5 / 5

Progressive Disclosure

Section headers, a decision table, and clear external links give reasonable structure, but roughly 400 lines of full implementations (buyer payOnce, seller replay guard), facilitator catalogs, and discovery endpoints are inlined in SKILL.md with no bundle files at all. This matches anchor 3 — content that should be separate is inline — though structure keeps it above anchor 2.

3 / 5

Total

15

/

20

Passed

Description

87%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: it states concrete capabilities with named SDKs and networks, gives an explicit 'Use when' trigger clause, and occupies a distinct niche. Its main weaknesses are jargon density and missing natural synonyms that would broaden trigger matching.

DimensionReasoningScore

Specificity

The description names concrete capabilities ('per-task budgets, spending controls, and non-custodial wallets', 'facilitator-based settlement') and specific SDKs/networks (agentwallet-sdk, OKX Payments, Solana, EVM). It stops short of anchor 5's breadth of distinct actions — the list is one core capability (payment execution) with modifiers rather than many separate operations.

4 / 5

Completeness

It clearly answers what ('Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets') and explicitly when ('Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet') with a concrete trigger phrase, matching the anchor 5 example pattern.

5 / 5

Trigger Term Quality

It includes natural phrases a user would say ('pay for something itself', 'budgets', 'spending controls', 'wallet') plus the domain keyword x402. However it is heavy on jargon ('facilitator-based settlement', 'multi-network EVM') and misses common variations like 'crypto payments', 'micropayments', or 'agent spending limits', keeping it below anchor 5.

4 / 5

Distinctiveness Conflict Risk

A clear niche — x402 protocol payments via named SDKs and networks (agentwallet-sdk/Base, OKX/X Layer, upstream x402/Solana) — with distinct triggers that would not fire for unrelated payment, wallet, or API skills.

5 / 5

Total

18

/

20

Passed

Validation

81%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 13 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (593 lines); consider splitting into references/ and linking

Warning

metadata_version

'metadata.version' is missing

Warning

referenced_paths_exist

Referenced path issues: 1 possibly missing (assets/decimals)

Warning

Total

13

/

16

Passed

Repository

affaan-m/ECC

Path

skills/agent-payment-x402/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.