Skip to content
Back to skills

tdm-agentpay

ASecurity

Handle the current public TDM payment contract and recovery guidance. Use when a TDM service returns HTTP 402 from POST /authorize, when the user needs help with Session Gas Tank behavior, or when the user should be guided toward tdm connect, tdm fuel, tdm sweep, or tdm cashout.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
ai-agentsapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add ToDealMarket/tdm-agentpay --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of tdm-agentpay?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for tdm-agentpay
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/todealmarket-tdm-agentpay/badge)](https://www.skillsdirectory.com/skills/todealmarket-tdm-agentpay)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tdm-agentpay
description: >
  Handle the current public TDM payment contract and recovery guidance.
  Use when a TDM service returns HTTP 402 from POST /authorize, when the user
  needs help with Session Gas Tank behavior, or when the user should be guided
  toward tdm connect, tdm fuel, tdm sweep, or tdm cashout.
metadata:
  author: ToDealMarket
  version: 0.0.1-beta
  sdk-package: tdm-sdk
  target-agents:
    - claude
    - claude-code
    - api-agents
---

# TDM AgentPay

## Use this skill for

- HTTP 402 responses from `POST /authorize`
- `billingMode`, `settlementMode`, `paymentOptions`, and `retryEndpoint`
- current JS helper names such as `createAuthorizeClient(...)`, `createGatewayClients(...)`, `createSessionTanksClient(...)`, and `createCheckoutClient(...)`
- session recovery using `tdm_get_session_state`
- `session_gas_tank` guidance
- sweep vs cashout clarification
- agent vault command guidance
- agent-first paid execution guidance for tools, APIs, routes, and runtime actions

## Read only what you need

- Read [references/adaptation-map.md](references/adaptation-map.md) for older terminology and draft wording.
- Read [references/authorize-contract.md](references/authorize-contract.md) for current public fields and endpoints.
- Read [references/mcp-runtime.md](references/mcp-runtime.md) for state-based recovery guidance.
- Read [references/sdk-sweep-capabilities.md](references/sdk-sweep-capabilities.md) before suggesting sweep flows.
- Read [references/vault-scenarios.md](references/vault-scenarios.md) for agent vault and cashout guidance.

## Hard rules

1. Do not invent undocumented payment fields.
2. Prefer exact current fields: `allowed`, `authorizationId`, `charged`, `balanceMinor`, `priceMinor`, `billingMode`, `settlementMode`, `paymentOptions`, and `retryEndpoint`.
3. Use `tdm_get_session_state` before asking the user for money.
4. If the state is `UNINITIALIZED`, instruct the user to run `tdm connect`.
5. If the state is `DEPLETED` and dust is available, prefer `tdm sweep`.
6. If the state is `DEPLETED` and no dust is available, suggest `tdm fuel`.
7. Do not describe `tdm sweep` as a cashout.
8. Do not suggest `tdm cashout` as a way to satisfy an active payment challenge.

## Recommended operator commands

- `tdm vault create <name> [--use]`
- `tdm vault use <name|default>`
- `tdm connect`
- `tdm login --gateway https://tdm.todealmarket.com` (advanced/manual only)
- `tdm fuel --amount <usd> --yes`
- `tdm sweep --network solana --resume-burner --deposit-address <solana_address>`
- `tdm sweep --network solana --resume-burner --target-agent <name>`
- `tdm sweep --network base --project-id <walletconnect_project_id> --treasury <base_address>`
- `tdm sweep status`
- `tdm cashout`
- `tdm agent list`
- `tdm agent boot <name>`

## Named vault guidance

- Prefer one named vault per business contour when operators manage many agents.
- For larger fleets, prefer multiple named vaults over one giant vault.
- If the operator uses named vaults, respect their active vault or explicit `--vault <name>` choice.

## Product framing guidance

- Treat TDM as agent-first and API-first.
- Default mental model: price a protected call, authorize it, then continue execution.
- Mention file, note, or content unlock flows only as an additional layer on top of the core agent/runtime payment surface.

## Bundled helpers

- [scripts/fetch_x402_price.mjs](scripts/fetch_x402_price.mjs)
- [scripts/run_tdm_sweep.mjs](scripts/run_tdm_sweep.mjs)

Files in this skill

  • SKILL.md3.4 KB
  • agents/openai.yaml378 B
  • references/adaptation-map.md2.5 KB
  • references/authorize-contract.md1.4 KB
  • references/mcp-runtime.md1.9 KB
  • references/sdk-sweep-capabilities.md2.6 KB
  • references/vault-scenarios.md1.4 KB
  • scripts/fetch_x402_price.mjs1.3 KB
  • scripts/run_tdm_sweep.mjs818 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.