API Fetch Wrapper

Reference TypeScript pattern for wrapping an external HTTP API: env secrets, bounded retry

Tested · Works

Test report

Verdict
Tested · Works
Score
8.8/10
Tested
Jul 20, 2026
Environment
Claude Code 2.x (agent harness)
Upstream re-checked
Jul 30, 2026 · 78d9a3f

This skill is no longer available upstream. Our re-check on Aug 10, 2026 couldn't find it any more (repo unreachable/deleted). The test below is what we measured on Jul 20, 2026 and we're leaving it up as a record — but there is nothing left to install, so we've removed the command.

Ran the bundled code live against the real Open-Meteo endpoint: happy path returned 16.5C / 17.4 km/h, malformed input produced a structured {error} with exit 1, and an unreachable host triggered the retry (a 500ms delay was observed in wall time) then returned {error,cause} with no upstream body leaked. Against a naive baseline wrapper it adds three non-obvious touches an average implementation skips: no-leak-on-failure error mapping, draining the response body for socket reuse, and a deliberate transient-only (408/429/5xx) retry filter. The example is small but every claim in its frontmatter held up under execution.

Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works

  • Installs cleanly 5/5
  • Triggers reliably 5/5
  • Output vs. baseline 7/10
  • Docs & honesty 5/5

What API Fetch Wrapper does

A runnable TypeScript example that wraps a public HTTP API (keyless Open-Meteo demo) with env-based credential handling, one bounded retry on transient failures, and error normalisation that never echoes the upstream body. Triggers when you ask to build a skill or client that calls an external service with proper retry and secret hygiene. Reuse the retry/error skeleton and swap the URL plus process.env key for an authed API.

How to install API Fetch Wrapper

Nothing to install: the source repository no longer has this skill. If the author brings it back, our daily re-check will pick it up and the command will reappear here.

Commands — how to trigger API Fetch Wrapper

  • /api-fetch-wrapper Reference TypeScript pattern for wrapping an external HTTP API: env secrets, bounded retry

It also activates on plain-language prompts like these:

  • Show me a TypeScript pattern for wrapping an external API safely
  • Build a fetch wrapper with bounded retry and no leaked error bodies
  • Wrap this authed API client with env secrets and retry logic

Frequently asked questions

Is the API Fetch Wrapper skill free?
Yes. The skill itself is free from ChronoAIProject/Ornn. SkillProof publishes the install command and an independent test verdict at no cost.
Does API Fetch Wrapper work with Claude Code?
We tested it with Claude Code 2.x (agent harness) on Jul 20, 2026. Verdict: Tested · Works. Ran the bundled code live against the real Open-Meteo endpoint: happy path returned 16.5C / 17.4 km/h, malformed input produced a structured {error} with exit 1, and an unreachable host triggered the retry (a 500ms delay was observed in wall time) then returned {error,cause} with no upstream body leaked. Against a naive baseline wrapper it adds three non-obvious touches an average implementation skips: no-leak-on-failure error mapping, draining the response body for socket reuse, and a deliberate transient-only (408/429/5xx) retry filter. The example is small but every claim in its frontmatter held up under execution.
What is the API Fetch Wrapper SkillProof Score?
8.8/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 7/10, docs & honesty 5/5.
How do I install API Fetch Wrapper?
Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
Can I use API Fetch Wrapper with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.