sdk

sdk is a command for coding agents from srstomp/pokayokay. It costs 6 tokens per session (575 once invoked), scanned A, original, MIT.

A command for creating or extracting a TypeScript SDK, a reusable package that lets programs call an API through typed code. It covers the package structure, public interface, builds, and publishing details.

In plain words
What is it for?
Use it to build a new SDK, pull client code into one, add features, fix issues, prepare browser or server builds, and publish to npm.
Why use it?
It organizes API-client code into a reusable package with documented types and predictable imports.

Command

Part of the pokayokay plugin — 17 skills, 23 commands, 14 agents, 4 hooks, 1 MCP server shipped together

Install

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.

agentmods
npx agentmods add commands/srstomp/pokayokay/sdk
Clone the repo
git clone --depth 1 https://github.com/srstomp/pokayokay

Or install pokayokay, the plugin that ships this one along with the rest of its 17 skills, 23 commands, 14 agents, 4 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge for your README with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them.

agentmods badge for sdk

README.md
[![agentmods](https://agentmods.dev/badge/commands/srstomp/pokayokay/sdk.svg)](https://agentmods.dev/commands/srstomp/pokayokay/sdk)
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 575 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00006 $0.00575
Opus 5 $0.00003 $0.00287
Sonnet 5 $0.00001 $0.00115
Haiku 4.5 $0.00001 $0.00057

Measured 3d ago against content hash fc2a8b2b2013, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sdk scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/pokayokay/commands/sdk.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SDK Development Workflow

SDK task: $ARGUMENTS

Steps

1. Identify SDK Task Type

From $ARGUMENTS, determine:

  • Create: Build new SDK for existing API
  • Extract: Pull reusable code into SDK
  • Publish: Release SDK to npm
  • Update: Add features or fix issues

2. Design SDK Architecture

For Creation:

  • Analyze API endpoints
  • Design client interface
  • Plan type definitions
  • Choose HTTP client (fetch, axios)

For Extraction:

  • Identify reusable code
  • Define public API surface
  • Plan breaking changes
  • Design migration path

3. Implement SDK

Package Structure:

sdk/
├── src/
│   ├── index.ts         # Public exports
│   ├── client.ts        # API client
│   ├── types.ts         # TypeScript types
│   └── errors.ts        # Custom errors
├── package.json
├── tsconfig.json
└── README.md

Key Features:

  • Full TypeScript types
  • ESM and CJS builds
  • Tree-shakeable exports
  • Proper error handling
  • Request/response interceptors

4. Build Configuration

{
  "main": "./dist/index.cjs",
  "module": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "exports": {
    ".": {
      "import": "./dist/index.js",
      "require": "./dist/index.cjs",
      "types": "./dist/index.d.ts"
    }
  }
}

5. Documentation

  • Installation instructions
  • Quick start example
  • API reference
  • Error handling guide

6. Create Implementation Tasks

npx @stevestomp/ohno-cli create "SDK: [specific task]" -t feature

Covers

  • SDK architecture design
  • TypeScript configuration
  • Build setup (ESM/CJS)
  • Type definitions
  • Error handling patterns
  • Documentation generation
  • npm publishing
  • /pokayokay:api - Design underlying API
  • /pokayokay:docs - SDK documentation
  • /pokayokay:test - SDK testing strategy
  • /pokayokay:work - Implement SDK

Skill Integration

When SDK work involves:

  • API design → Also load api-design skill
  • Documentation → Also load documentation skill
  • Testing → Also load testing-strategy skill

Read the full file on GitHub · 105 lines

Changes

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.

  1. 3d ago First seen · 105 lines · 6 tokens per session scan A fc2a8b2b2013

Subscribe to this mod's changes

sdk is a command published in the GitHub repository srstomp/pokayokay (9 stars, last pushed 2mo ago), licensed MIT. It adds 6 tokens to every session and 575 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.