verifying-external-integrations
Diagnose stale API integrations and 403 permission failures.
- License 许可
- MIT
- 最近更新
- 2026-10-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- verifying-external-integrations
- author
- Hermes Agent
- hermes
- { "tags": [ "integrations", "api", "debugging", "auth", "cli", "mcp", "verification" ], "related_skills": [ "social-analytics", "systematic-debugging" ] }
- license
- MIT
- version
- 1.0.0
- description
- Diagnose stale API integrations and 403 permission failures.
02 资源文件 1
- 参考文档references/probe_recipes.md2.0 KB
03 SKILL.md 正文
Verifying External Integrations
When to Use
- A tool or skill wrapping an external API errors with "model not found", 400, 401, or 403.
- A skill-documented subcommand fails with "unknown command" (doc drift).
- "It used to work" / "it doesn't work" on a third-party CLI, MCP server, or skill.
- You suspect hardcoded model/option allow-lists are stale versus the live provider.
When a skill or tool that wraps an external API "used to work" or "doesn't work," the cause is almost always one of three things: (1) the provider deprecated a model/option in a hardcoded allow-list, (2) the skill doc cites a subcommand that no longer exists, or (3) auth succeeds but the identity lacks a per-resource ACL (403). This skill gives a fast, evidence-first path to the real cause instead of guessing or editing code blind.
Phase 1 — Reconcile the documented surface with the binary / live API
CLI subcommands
Run the help chain and diff against what the skill says:
<bin> --help
<bin> <group> --help # e.g. ga4 gsc --help (NOT ga4 gsc list — that command doesn't exist)
Then use the real subcommands. A documented command that errors with
"unknown command" means the skill doc is stale — fix the doc, not the tool.
Model / option allow-lists
Do NOT trust a hardcoded list in code or a skill. Query the live provider catalog:
- Groq:
GET https://api.groq.com/openai/v1/models(HeaderAuthorization: Bearer $KEY) → filter ids for whisper/audio/transcribe. (Confirmed 2026-08: onlywhisper-large-v3+whisper-large-v3-turboexist;distil-whisper-large-v3-enwas decommissioned → 400 "no longer supported".) - OpenAI:
GET https://api.openai.com/v1/models. - General: find the provider's
/models(or/v1/models) endpoint; list, then keep only ids present in the live response. The live response is the source of truth — reconcile code/skill to it.
Phase 2 — Auth vs permission (the 403 trap)
- 401 / "unauthorized" / "API key not set" → credential missing or invalid.
- 403 "does not have sufficient permission for site X" → identity is VALID but lacks a per-resource ACL. This is the most common "it authenticates but fails" case. Example: a GCP service account authenticates to Google Search Console but was never added as a user on the property — GSC permission is per-property and is NOT inherited from the GCP project that owns the service account. Fix: grant the identity the resource-level permission (Search Console → Settings → Users and permissions → Add user → Owner), not just project-level IAM.
Phase 3 — Fix propagation
Skills often live in several copies. After editing, find and sync all of them:
find ~ -path '*/<skill-name>/references/<file>.md'
Common dirs: ~/.hermes/skills, ~/skills, ~/.gemini, ~/.agents, ~/hermes-repo,
~/hermes-setup. Edit the canonical one, then cp to the rest so they don't drift
back to the stale text.
Pitfalls
- "Command not found" is not "not installed": the binary may exist under a
different name (e.g.
ga4-managervsga4) and/or only be on PATH in the interactive shell (zsh~/.zshrcmay export~/go/binwhile bash~/.bashrcdoes not). Symlink<name>→ the real binary inside a PATH dir; add the dir to both rc files. Verify with the actual interactive shell (e.g.zsh -ic 'command -v ga4'). - Don't encode provider state as a permanent rule ("X model is gone forever"). Model lists change — re-probe live each time you suspect drift.
- Don't write up untested retry sequences as "best practice." Only capture what you actually verified against the live API.
References
- references/probe_recipes.md — copy-paste probes (Groq live models list; GA4/GSC 403 diagnosis & fix recipe).
04 同仓库更多 Skills
blocked-page-recovery
Use when a fetch fails: 403/429, paywall, WAF, bot wall.
gemini-vision-fallback
Vision fallback: Gemini REST API if vision_analyze blocked.
twitter-cli
Use twitter-cli for ALL Twitter/X operations — reading tweets, posting, replying, quoting, liking, retweeting, following, searching, user lookups. Invoke whenever user requests any Twitter interaction.
prism-scan
Structural analysis through dynamically generated cognitive lenses. Generates the optimal analytical lens for the specific code/artifact, then executes it. Finds conservation laws, structural invariants, and concrete bugs that vanilla analysis misses. Use on any code file, system design, or text artifact.
prism-reflect
Constraint transparency: analyzes an artifact structurally, then analyzes what its own analysis concealed. Produces a conservation law AND a constraint report showing what was maximized, what was sacrificed, and what to investigate next. The only AI skill that knows what it can't see.
prism-full
Full Prism: multi-pass structural analysis with mandatory adversarial self-correction. Designs custom analytical passes, executes them with chaining, then attacks its own findings before synthesizing. Use for maximum depth on important code or artifacts.