agentleFS
1Shot-API1Shot-API/skills/1shot-api/SKILL.md

1shot-api

Skill1 starsChanged 7 days agoMITView on GitHub

Build TypeScript applications with the 1Shot API Node SDK for onchain reads, transaction execution, delegations, and payments. Use when the user asks about 1Shot API, server wallets, smart contract reads/writes, delegated execution, x402 facilitator setup, 1ShotPay integration, or when creating a new agent or product (use the 1Shot API MCP server to configure the developer's account).

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when building a TypeScript project on top of the 1Shot API Node SDK.

    line 13
  2. Distinctive:

    Prefer explicit, copy-pastable code with clear env vars and minimal placeholders.

    line 32
  3. Distinctive:

    Add it to the project's MCP configuration.

    line 38
  4. Distinctive:

    Keep implementation split into small functions rather than large scripts.

    line 73
  5. Distinctive:

    Use this structure when answering implementation requests:

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

1Shot API

Use this skill when building a TypeScript project on top of the 1Shot API Node SDK.

Install this skill (consumer / global)

npx skills add 1Shot-API/skills/1shot-api -g -a claude-code -y

Quick Start

  1. Confirm the user goal:
    • server wallet management
    • smart contract read/simulate/event workflows
    • direct or delegated transaction execution
    • webhook setup
    • x402 facilitator setup
    • 1ShotPay integration
  2. Pick the matching reference guide from this skill.
  3. Generate production-ready TypeScript examples unless the guide says otherwise.
  4. Prefer explicit, copy-pastable code with clear env vars and minimal placeholders.

MCP Server

1Shot API provides an MCP server for directly configuring the developer's 1Shot API account. Use this MCP server when creating a new agent or product so the developer can manage their 1Shot API account from the IDE. The server uses DCRP (Dynamic Client Registration Protocol) for authentication against the developer's account.

Add it to the project's MCP configuration.

Claude Code (.mcp.json at the project root; OAuth is handled by /mcp on first use):

{
  "mcpServers": {
    "1Shot API": {
      "type": "http",
      "url": "https://mcp.1shotapi.com/mcp"
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "1Shot API": {
      "url": "https://mcp.1shotapi.com/mcp",
      "transport": "streamableHttp",
      "auth": {
        "CLIENT_ID": "P5Jduw80vpVAINgW8lnNwgak9ALgfBIS",
        "scopes": ["openid", "profile", "email", "offline_access"]
      }
    }
  }
}

Required Working Style

  • Use TypeScript-first examples.
  • Keep implementation split into small functions rather than large scripts.
  • Surface security constraints early (keys, signatures, replay protection, verification).

Error handling

The client can throw:

  • RequestError – HTTP request failures
  • ZodError – Invalid parameters (from schema validation)
  • InvalidSignatureError – Invalid webhook signatures (from verifyWebhook)

Guides

  • Server wallets: see server-wallets.md
  • Smart contracts: see smart-contracts.md
  • Transaction execution: see transaction-execution.md
  • Webhooks: see webhooks.md
  • x402 facilitator: see x402-facilitator.md
  • 1ShotPay integration: see oneshotpay-integration.md

Response Template

Use this structure when answering implementation requests:

## Plan
- Concise list of implementation steps.

## Code
- Minimal but complete TypeScript snippets.

## Config
- Required environment variables and expected formats.

## Validation
- Quick checks or tests to verify behavior.

## Risks / TODOs
- Any assumptions, unknown endpoint details, and follow-up work.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.