api-fetch-wrapper
@chronoaiproject · 收录于 1 周前
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.
适合你,如果需要在skill中安全调用外部API并处理常见故障
/ 通过 npx 安装 校验哈希
npx oh-my-skill add chronoaiproject/ornn/api-fetch-wrapper/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- chronoaiproject/ornn/api-fetch-wrapper/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify chronoaiproject/ornn/api-fetch-wrapper安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
19GitHub stars
~531最小装载
~1.3K含声明引用
~1.4K文本包总量
索引托管
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…