Skip to content
Back to skills

Create Adapter

ASecurity

Use when a pipeline needs a vendor, API, or data source gtme does not ship — "gtme doesn't have X", "add Hunter/Clearbit/our CRM", a custom endpoint — or when the records are not people or companies (posts, jobs, events, repos) and need a new entity type.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
ai-agentsgitapi

Works with

  • api

Security analysis

A100/100

Scanned November 13, 2026

npx -y skills add gtme-run/gtme --skill create-adapter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Adapter?

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

Security grade badge for Create Adapter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gtme-run-create-adapter/badge)](https://www.skillsdirectory.com/skills/gtme-run-create-adapter)

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: create-adapter
description: Use when a pipeline needs a vendor, API, or data source gtme does not ship — "gtme doesn't have X", "add Hunter/Clearbit/our CRM", a custom endpoint — or when the records are not people or companies (posts, jobs, events, repos) and need a new entity type.
---

# Create an adapter

A vendor is one YAML file, no code, verified offline before its first
live call. The contract is generated by the binary; read it, do not
recall it.

**Preflight.** `gtme version`. `gtme init` if `~/.gtme` is missing.

## Steps

1. **Binding or process?** One request per record (or per page) with a
   fixed response shape → **binding** (YAML). Conditionals, several calls
   per record, OAuth, computation → **process adapter** (an executable,
   NDJSON in and out); the wire protocol reference documents that
   protocol (gtme.run/docs/reference/wire-protocol, generated from
   `spec/schemas/msg-*.schema.json`).
   `http/enrich` covers a one-off GET into one field with no
   credential declaration; a binding is for anything reused, priced, or
   keyed.

2. **Read the contract.**
   ```sh
   gtme help --bindings          # schema, discovery path, a reference binding, the fixtures rule
   gtme adapters                 # what is installed, and where
   ```
   Copy the nearest shipped binding (`spec/bindings/` in the repo, or
   the reference printed above) and edit. Id is `<vendor>/<operation>`;
   directory is `~/.gtme/adapters/<vendor>-<operation>/`.

3. **Write `binding.yaml`.** `needs` = the `{{record.*}}` placeholders
   in the request. `provides` = canonical field names where they exist
   (`email`, `email_status`, `headline`), `<vendor>.<name>` where they do
   not. Declare `credentials`, `auth`, `errors` (404 → `skip` for "not
   found"), `cost` (a `{{config.*}}` template if the price is
   plan-dependent), `freshness_days`. Request leaves are Liquid objects in
   gtme's one dialect: `{{ record.a | default: record.b }}` is the
   fallback (never `{{a|b}}`, which verify refuses), and no block tags.

4. **Fixtures: `fixtures/conformance.json`.** Preferred: one real,
   sanitized response per request, recorded live. Otherwise write it to
   the documented shape and say so in a `"note"` field; record a real one
   before any armed run. `match` is a substring of `"METHOD path"` **or
   of the full URL**, so per-record fixtures are a query value:
   `"match": "domain=acme.com"`. A query-parameter match names each
   parameter exactly (key and full value), so `page=2&` never answers
   `per_page=2`. First match wins; put the catch-all last.

5. **Verify, then simulate.**
   ```sh
   gtme adapters verify <vendor>/<operation>     # schema + fixtures, offline; prints hosts and credentials
   gtme run one-step.yaml --simulate             # a pipeline that says use: <vendor>/<operation>
   ```
   Then hand to `/gtme:run-pipeline`.

6. **A new entity type** (records that are not person or company):
   `types/<name>.json` beside the binding, keyed on a URL (`"identity":
   [{"field": "url"}]`), fields with tier and normalization. The
   shipped `post.json` (`gtme help --agent`, registry) is the model. A
   traverse binding (`role: traverse`, `from`, `relation`) is how such
   records enter a run from people or companies.

7. **Share.** `CONTRIBUTING.md` in the repo. Install someone else's with
   `gtme adapters add github.com/<owner>/<repo>/<dir>@main`.

## Do not

- Present a hand-written fixture as a recording.
- Put a key anywhere but `gtme secret set`.
- Write logic into a binding; that is the graduation rule, and the answer is a process adapter.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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