api-to-example
Turns REST API documentation into a runnable curl, fetch, or code example with required headers, request body, and placeholders for secrets.
Skill by surfmind-space
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/surfmind-space-api-to-example
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/api-to-example
What's inside
- Skill name
api-to-example- Description
- Turns REST API documentation into a runnable curl, fetch, or code example with required headers, request body, and placeholders for secrets. Use when the user wants to generate a request from API docs, an endpoint, or a Swagger/OpenAPI spec — "give me a curl for this", "show a fetch example", "how do I call this API".
- License
- MIT
- Metadata
- icon: Code
- Instructions
- 35 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# API to Example
Turn the documented API endpoint into the smallest runnable example the user can paste and run — curl, fetch, or a language-specific snippet — complete with the required headers, request body shape, and placeholders for every secret. Work only from what the docs show; don't invent undocumented fields or claim a parameter is required when the docs don't say so.
1. Extract the endpoint, method, auth scheme, required headers, parameters, request body schema, and the success response shape from the visible docs or OpenAPI/Swagger spec.
2. Build the minimal example that would actually succeed, using placeholders like `$API_KEY` or `<account-id>` for secrets and private values.
3. Verify the example carries every required header and parameter the docs list before presenting it; note any required field the docs leave unspecified.
4. Add the expected response and the one or two errors a caller is most likely to hit (bad auth, missing field).
Return concise headings and include these sections when they fit: **Runnable example**, **Required inputs**, **Expected response**, **Common mistakes**. Preserve exact endpoint paths, header names, and field names. Be specific but don't overclaim; never include real secrets, and if the docs are incomplete, say what's missing and give the best supported example. Respond in the same language as the user's request.
## Example
Docs (an endpoint that creates a charge):
> `POST /v1/charges` — requires `Authorization: Bearer <key>`. Body: `amount` (integer, required), `currency` (string, required), `description` (string, optional).
Example:
> **Runnable example** (curl):
>
> ```bash
> curl https://api.example.com/v1/charges \
> -H "Authorization: Bearer $API_KEY" \
> -H "Content-Type: application/json" \
> -d '{"amount": 2000, "currency": "usd", "description": "Test charge"}'
> ```
>
> **Required inputs:** `$API_KEY` (secret bearer token); `amount` in the smallest currency unit; a supported `currency` code.
>
> **Expected response:** `200` with the created charge object, including its `id` and `status`.
>
> **Common mistakes:** Omitting `Content-Type: application/json` (the body is ignored); sending `amount` as a decimal instead of an integer; a stale key returns `401`.From surfmind-space/awesome-surfmind, MIT.
More from surfmind-space/awesome-surfmind
- 0.539score
interview-prep
surfmind-space
Prepares for a specific company and role by mapping likely interview rounds, audience-specific questions, proof points, STAR story gaps, and questions to ask…
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
bilingual-reader
surfmind-space
Translates selected text and explains the idioms, cultural nuance, key terms, and phrasing that should not be read literally.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
calendar-prep
surfmind-space
Turns an event page, calendar invite, email, or notes into key details, an agenda, a preparation checklist, and follow-up reminders.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
caption-assistant
surfmind-space
Writes captions, accessibility alt text, and short image or page descriptions tailored to the visible content and audience.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
chart-explainer
surfmind-space
Explains a visible chart by identifying axes, trends, outliers, and the practical takeaway while flagging missing context.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
code-translator
surfmind-space
Converts a code snippet from one programming language to another while preserving behavior and flagging library, runtime, and type-system differences.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
competitor-snapshot
surfmind-space
Summarizes a competitor's page into positioning, audience, offers, pricing cues, proof points, and differentiation opportunities.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
coupon-hunter
surfmind-space
Finds legitimate discount codes for the store the user is shopping, points to the sources most likely to carry a working code, and flags suspicious or…
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
course-fit-check
surfmind-space
Evaluates whether a specific course, certification, bootcamp, or training is worth the time and money for the user's stated career goal, weighing recruiter…
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
cover-letter-builder
surfmind-space
Builds a tailored cover letter from a job description and the user's background — researches the company, mirrors keywords, handles gaps, and drafts an…
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
deal-checker
surfmind-space
Judges whether a product's price is worth it by checking typical prices, alternatives, total cost, and timing, then giving a clear buy / wait / skip call.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
draft-from-notes
surfmind-space
Turns rough notes, bullet points, outlines, or copied fragments into a coherent draft (email, memo, post, report, or document section) while preserving facts…
SkillCFreshness: C★ 7Claude Code +9
Signals
- Stars
- 7
- Forks
- 2
- Open issues
- 1
- Last commit (this folder)
- Jun 29, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- surfmind.ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from surfmind-space
- 0.539score
interview-prep
surfmind-space
Prepares for a specific company and role by mapping likely interview rounds, audience-specific questions, proof points, STAR story gaps, and questions to ask…
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
calendar-prep
surfmind-space
Turns an event page, calendar invite, email, or notes into key details, an agenda, a preparation checklist, and follow-up reminders.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
caption-assistant
surfmind-space
Writes captions, accessibility alt text, and short image or page descriptions tailored to the visible content and audience.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
chart-explainer
surfmind-space
Explains a visible chart by identifying axes, trends, outliers, and the practical takeaway while flagging missing context.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
code-translator
surfmind-space
Converts a code snippet from one programming language to another while preserving behavior and flagging library, runtime, and type-system differences.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
bilingual-reader
surfmind-space
Translates selected text and explains the idioms, cultural nuance, key terms, and phrasing that should not be read literally.
SkillCFreshness: C★ 7Claude Code +9
Cite this page
api-to-example skill. Agent Mart. https://agentmart.dev/skills/surfmind-space-api-to-example (last updated 2026-10-24)