CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

agent-payment-x402

タスクごとのバジェット、支出コントロール、ノンカストディアルウォレットを備えた x402 決済実行を AI エージェントに追加します。agentwallet-sdk を通じて Base を、OKX Payments / OKX エージェント決済プロトコルを通じて X Layer を、アップストリームの x402 パッケージとファシリテーターベースの決済を通じて Solana とマルチネットワーク EVM をサポートします。

Quality

74%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Fix and improve this skill with Tessl

tessl review fix ./docs/ja-JP/skills/agent-payment-x402/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

71%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 delivers exceptionally concrete, executable, and security-conscious guidance with strong validation checkpoints — the actionability is about as good as it gets. Its weaknesses are structural: a monolithic 590-line file with no reference bundle, and inline time-sensitive details (version pins, 'as of writing' facilitator listings, unmerged PR references) that inflate token cost and will drift.

Suggestions

Create a references/ bundle and split the deep dives out of SKILL.md — e.g. references/seller-replay-protection.md (the ~150-line claim-store guide), references/facilitators.md (the facilitator comparison and discovery endpoints), references/solana-ata.md — leaving SKILL.md as a decision-tree overview with one-level-deep pointers.

Move time-sensitive details (pinned versions like @x402/fetch@2.22.0 and Python x402 2.9.0, the 'as of writing' facilitator roster, the unmerged PR x402-foundation/x402#4005) into a dedicated versioned or 'current state' reference file so the main body stays lean and does not silently go stale.

Trim the two large TypeScript listings to their essential skeleton (policy registration, confirmation boundary, session reservation) in the body and move the full implementations to references/, keeping only the short MCP config and one compact example inline.

DimensionReasoningScore

Conciseness

Most of the ~590-line body is genuinely non-obvious operational knowledge (replay-claim design, ATA derivation, Solana address case-sensitivity, fail-closed budget enforcement) rather than concepts Claude already knows, so it is not anchor-2 padding. However, it could be tightened considerably: two 120–140-line TypeScript listings, and inline time-sensitive details — '執筆時点では...' facilitator listings, the unmerged 'x402-foundation/x402#4005', 'Python x402 2.9.0' — which the guidelines say should penalize conciseness since they are not in a deprecated/old-patterns section. Anchor 3 ('mostly efficient but could be tightened') is the best fit.

3 / 5

Actionability

Fully executable, copy-paste-ready guidance covering the common cases: pinned MCP config ('npx', 'agentwallet-sdk@6.0.0'), a complete buyer client with policy registration and confirmation flow, seller middleware with a Redis replay guard, a ready curl command to verify the derived ATA via getAccountInfo, and spl-token CLI provisioning commands. The one stub ('declare function confirmWithUser') is explicitly justified in the text ('Supply this from your harness — a real prompt, never a stub'), matching anchor 5.

5 / 5

Workflow Clarity

A decision-tree table routes the integration choice, Options B and C give numbered flows that include explicit user-confirmation steps ('最初の有料リクエストの署名または送信の前に明示的なユーザー確認を求める'), and validation checkpoints are pervasive — confirm set_policy success ('if (policyResult.isError) throw'), verify the ATA exists before accepting payments, adversarially test policies, check the facilitator /supported endpoint before production. Since payments are irreversible but validation is clearly present, the destructive-operation cap does not apply. It falls short of anchor 5 because the full workflow must be assembled across sprawling sections and Option A lacks an explicit step sequence, so anchor 4 fits best.

4 / 5

Progressive Disclosure

No bundle files exist (references/, scripts/, assets/ are all absent), so everything — including a ~150-line seller replay-protection guide and a facilitator comparison — is inlined in a single monolithic SKILL.md. Section headers and the upfront decision tree provide real structure and navigation, which rules out anchor 2's 'minimal structure', but content that clearly belongs in separate reference files is inline, which is exactly anchor 3.

3 / 5

Total

15

/

20

Passed

Description

70%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 specific, well-scoped description that clearly names the capability set and the exact SDK/network paths, with excellent distinctiveness. Its main weakness is the complete absence of 'when to use' trigger guidance, which caps completeness, and keyword coverage that leans on protocol/SDK jargon over natural user phrasings like paying for API calls.

Suggestions

Add an explicit trigger clause to the description, e.g. 'Use when an agent needs to pay for 402-gated APIs or services, charge for API access, enforce per-task spending limits, or manage a non-custodial agent wallet' — this directly addresses the completeness cap.

Include natural user phrasings alongside the SDK names: 'pay for API calls', '402 Payment Required', 'USDC micropayments', 'agent payments', so users describing the need in plain words still match.

Lead with the core action verbs (pay for APIs, charge for access, enforce budgets) before the network/SDK enumeration, so the 'what' reads as operations rather than a feature list.

DimensionReasoningScore

Specificity

The description states concrete capabilities — 'タスクごとのバジェット、支出コントロール、ノンカストディアルウォレットを備えた x402 決済実行を AI エージェントに追加します' — and names the exact stack per path ('agentwallet-sdk を通じて Base', 'OKX Payments... を通じて X Layer', 'アップストリームの x402 パッケージ... を通じて Solana とマルチネットワーク EVM'). It sits between anchor 4 and 5: several specific capabilities are listed, but they read as feature/network enumeration rather than a comprehensive list of operations (e.g., paying for 402-gated APIs or charging for access is only implied), so 4 fits better than 5.

4 / 5

Completeness

The 'what' is clear and concrete (adding x402 payment execution with budgets, spending controls, and non-custodial wallets across named networks), but there is no 'Use when...' clause or any equivalent explicit trigger guidance in the description — the 使用タイミング section exists only in the body, which does not count. Per the rubric guideline, a missing 'Use when' clause caps completeness at 3, and anchor 3 ('clear what, when missing') is the exact fit.

3 / 5

Trigger Term Quality

Good natural keyword coverage: 'x402', '決済' (payments), 'バジェット' (budget), '支出コントロール' (spending control), 'ウォレット' (wallet), plus chain names 'Base', 'Solana', 'X Layer'. A few natural phrasings a user would actually say are missing — 'pay for API calls', '402 Payment Required', 'micropayments', 'USDC' — so it matches anchor 4 rather than the comprehensive synonym coverage of anchor 5.

4 / 5

Distinctiveness Conflict Risk

The description occupies a clear niche with distinct triggers — x402 protocol payments for AI agents via named SDKs (agentwallet-sdk, OKX Payments, upstream @x402 packages) and named chains (Base, X Layer, Solana, EVM). It would not plausibly trigger for any unrelated skill, matching anchor 5; anchor 4's 'minor overlap risk with closely related skills' does not apply since no generic capability terms are used.

5 / 5

Total

16

/

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 (592 lines); consider splitting into references/ and linking

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

referenced_paths_exist

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

Warning

Total

13

/

16

Passed

Repository

affaan-m/ECC

Path

docs/ja-JP/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.