integrate

A workflow for connecting software to an external API, which is a service that lets programs exchange data and request actions.

In plain words
What is it for?
Use it to design or implement typed API clients, support API keys or OAuth login, handle retries and rate limits, and cache responses when appropriate.
Why use it?
It organizes the details that integrations commonly require, such as authentication, request limits, data conversion, failures, and caching.

Command

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/integrate
Clone the repo
git clone --depth 1 https://github.com/srstomp/pokayokay
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 555 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.00005 $0.00555
Opus 5 $0.00003 $0.00278
Sonnet 5 $0.00001 $0.00111
Haiku 4.5 $0.00001 $0.00056

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

Security

Grade A, and why

integrate 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 2d 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/integrate.md · 108 lines

How it starts

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

API Integration Workflow

Integrate with: $ARGUMENTS

Steps

1. Gather API Information

From $ARGUMENTS, identify:

  • API documentation URL
  • Authentication method (API key, OAuth, etc.)
  • Rate limits
  • Available endpoints

2. Analyze Integration Requirements

  • Which endpoints do we need?
  • What data transformations required?
  • Error handling requirements
  • Caching strategy

3. Design Integration

Client Architecture:

// api/[service]/client.ts
export class ServiceClient {
  constructor(config: ServiceConfig) {}

  // Typed methods for each endpoint
  async getResource(id: string): Promise<Resource> {}
  async createResource(data: CreateData): Promise<Resource> {}
}

Key Components:

  • Typed client wrapper
  • Request/response interceptors
  • Error handling with retries
  • Rate limit handling
  • Response caching (if appropriate)

4. Handle Authentication

API Key:

headers: {
  'Authorization': `Bearer ${process.env.SERVICE_API_KEY}`
}

OAuth 2.0:

  • Token storage
  • Refresh token flow
  • Token expiration handling

5. Implement Error Handling

class ServiceError extends Error {
  constructor(
    message: string,
    public code: string,
    public status: number
  ) {
    super(message);
  }
}

6. Add Observability

  • Log all external API calls
  • Track latency metrics
  • Alert on error rates

7. Create Implementation Tasks

npx @stevestomp/ohno-cli create "Integration: [service] [endpoint]" -t feature

Covers

  • API client design
  • Authentication patterns
  • Error handling
  • Rate limit management
  • Response caching
  • Type safety
  • Testing strategies
  • /pokayokay:api - Design internal API for integration
  • /pokayokay:test - Test integration
  • /pokayokay:security - Review API security
  • /pokayokay:observe - Monitor integration
  • /pokayokay:work - Implement integration

Skill Integration

When integration work involves:

  • API design → Also load api-design skill
  • Security review → Also load security-audit skill
  • Monitoring → Also load observability skill
  • Testing → Also load testing-strategy skill

Read the full file on GitHub · 108 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. 2d ago First seen · 108 lines · 5 tokens per session scan A 8acced16bd08

Subscribe to this mod's changes

integrate is a command published in the GitHub repository srstomp/pokayokay (9 stars, last pushed 1mo ago), licensed MIT. It adds 5 tokens to every session and 555 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.