Index of every page on this site: llms.txt
All skills
chronoaiproject avatar

/api-fetch-wrapper

@88f2d78
Run it yourself

Wrap a public HTTP API (Open-Meteo weather as the demo) with credential handling, error normalisation, and a single retry on transient network failures. Demonstrates the production-shaped baseline for any "skill that calls an external service" — env-based secrets, structured error output, no leaked API keys in logs, and a deliberate retry policy. The Open-Meteo endpoint used here is keyless on purpose so the example runs without setup; replace `OPEN_METEO_URL` with your own host and add `process.env.MY_API_KEY` for an auth'd version.

  • 4 files
  • 6.7 KB
  • MIT
  • Updated 6 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/chronoaiproject/ornn/api-fetch-wrapper

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈118 tokens on demand. Your agent reads this file only when SKILL.md points to it.

api-fetch-wrapper

Call a public HTTP API with retries, structured errors, and no-leak credential handling. Demo target is Open-Meteo (keyless, so the example runs out of the box).

Run: echo '{"latitude":52.52,"longitude":13.41}' | bun run src/index.ts

Adapt: swap the upstream URL + shape; add Authorization header reading from env. The retry-and-error-mapping skeleton is the load-bearing part — don't drop it.

See SKILL.md for the full contract.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 88f2d78. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 days ago.

Activeupdated 6 months ago
version
1.0
Other metadata
metadata
{
  "category": "integration",
  "tag": [
    "example",
    "http",
    "external-api",
    "typescript"
  ]
}

README badge

README badge for chronoaiproject/ornn/api-fetch-wrapper