Skip to content
Back to skills

Ramp Sdk Patterns

ASecurity

Build a small typed Ramp Developer API adapter with secure token management, pagination, structured errors, rate control, idempotency, and schema drift checks. Use when replacing scattered raw requests in application code. Trigger with "Ramp API client" or "Ramp SDK patterns".

  • 2,719 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 21, 2026
ai-agentsgoapisecuritydocumentation

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

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

Scanned September 21, 2026

npx -y skills add jeremylongshore/claude-code-plugins-plus --skill ramp-sdk-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ramp Sdk Patterns?

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

Security grade badge for Ramp Sdk Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jeremylongshore-ramp-sdk-patterns-ee61b1d2/badge)](https://www.skillsdirectory.com/skills/jeremylongshore-ramp-sdk-patterns-ee61b1d2)

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: ramp-sdk-patterns
description: >-
  Build a small typed Ramp Developer API adapter with secure token management, pagination, structured errors, rate control, idempotency, and schema drift checks. Use when replacing scattered raw requests in application code. Trigger with "Ramp API client" or "Ramp SDK patterns".
allowed-tools: Read,Glob,Grep,Write,Edit
version: 2.0.0
argument-hint: "[integration-or-environment]"
model: inherit
effort: high
author: Jeremy Longshore <jeremy@intentsolutions.io>
license: MIT
compatibility: Requires current Ramp Developer API documentation and approved access for any live financial, card, identity, accounting, application, or configuration change
tags: [saas, ramp, client, api, reliability]
---
# Typed Ramp API Client Patterns

## Overview

Generate or handcraft only the surface the application needs. Wrap transport concerns once, expose business-safe methods, and keep the official OpenAPI checksum next to the generated or reviewed client.

## Prerequisites

- Identify the Ramp application, environment, business entities, affected data and workflows, accountable owner, and rollback boundary.
- Read `references/official-docs.md` and re-check endpoint schemas, scopes, limits, and support status before a live operation.
- Use synthetic fixtures or Ramp sandbox until production access and business effects are explicitly approved.
- Prepare approved secret storage and a sanitized evidence location.

## Current Contract

- Ramp publishes an OpenAPI schema and plain-text current documentation; client code must track the exact reviewed contract.
- The API base uses `/developer/v1`; token acquisition, resource paths, and special surfaces such as Vault may use distinct hosts or controls.
- List pagination, monetary values, errors, idempotency, and deferred tasks are endpoint-specific.
- Unknown fields are not uniformly handled, so outgoing requests need schema validation.

## Authentication

Centralize the approved OAuth grant and server-side bearer-token lifecycle in the adapter. Cache tokens only in protected memory or an approved secret mechanism, refresh before expiry, and bind every client instance to one explicit Ramp environment and minimum scope set.

## Instructions

1. Inventory required endpoint/verb/scope pairs and select the smallest generated or handwritten client surface.

2. Centralize environment allowlists, token caching before expiry, redacted headers, timeouts, shared rate budget, trace-ID capture, and structured `error_v2` parsing.

3. Implement reusable cursor iteration that yields committed pages and preserves empty-page, continuation, cancellation, and resume behavior.

4. Require typed integer monetary values with currency, endpoint-specific idempotency keys for writes, and explicit deferred-task or reconciliation results.

5. Pin the OpenAPI checksum, test success and failure fixtures, and produce a reviewed diff before regenerating or exposing new operations.

## Tool Discipline

- Use **Glob** to locate candidate code, manifests, fixtures, and evidence without widening scope.
- Use **Grep** to find relevant endpoints, fields, permissions, identifiers, errors, and stale assumptions.
- Use **Read** to inspect the smallest required local files and authoritative evidence.
- Use **Write** only for a new approved local draft, test, configuration, or evidence artifact.
- Use **Edit** only for a bounded approved change with a known rollback.
- Local file tools do not authorize a Ramp operation or replace owner approval.

## Approval Boundaries

Application owners approve the client surface; security approves credential handling; finance/data owners approve exported write methods.

## Output

A minimal client interface, endpoint/scope manifest, contract checksum, transport policy, pagination and money types, retry/idempotency matrix, and deterministic tests.

## Error Handling

| Condition | Response |
|---|---|
| Generated code exposes every endpoint | Wrap and export only approved capabilities; generation is not authorization. |
| Token refresh stampedes | Use single-flight acquisition with early refresh and never log the token. |
| A retry duplicates a write | Reconcile by idempotency/source identifier and redesign the method to return an explicit commit state. |

## Examples

### Example 1

Create a read-only transaction iterator that resumes from the last durably committed cursor and surfaces Ramp trace IDs.

### Example 2

Wrap accounting sync submission so a caller must provide an idempotency key and receive a typed success/failure receipt.

## Validation

- Every exported method maps to a reviewed endpoint, scope, data owner, and error contract.
- Hosts and tokens cannot cross environments.
- Pagination, money, retries, timeouts, idempotency, and deferred states have tests.
- Contract drift fails visibly and never regenerates silently.

## Resources

- [Official documentation and contract notes](references/official-docs.md)
- Re-check the dated contract and current OpenAPI schema before any live request.
- Treat unresolved vendor behavior, authority, or financial state as a stop condition.

Files in this skill

  • SKILL.md5 KB
  • references/official-docs.md804 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.