Prompt file imported from fabioc-aloha/youtube-mcp-vscode (
.github/prompts/audit-apis.prompt.md). Copyright stays with the author.
Audit External APIs
Refresh .github/EXTERNAL-API-REGISTRY.md and surface drift in skills/scripts that depend on it. The mechanical part (date arithmetic, URL reachability) runs in a muscle. The semantic part (deciding what changed, what to update) is your job — do not skip it.
Steps
-
Check registry exists — confirm
.github/EXTERNAL-API-REGISTRY.mdis present. If missing, refuse and suggest a/upgrade. -
Run mechanical drift check:
node .github/muscles/audit-api-drift.cjs --probeCapture the report. Exit codes: 0 = all fresh, 1 = stale, 2 = expired or unreachable. The report groups entries into FRESH / STALE / EXPIRED / UNPARSABLE / UNREACHABLE.
-
If everything is fresh — say so and stop. No further work. (Empty registry is also "all fresh".)
-
For each STALE / EXPIRED / UNREACHABLE entry, do the LLM job:
- Visit the
Source URL(use a web fetch tool if available; otherwise ask the user to paste the current contents). - Compare against the row's
Latest Models/Endpointscell. - Identify any of:
- New model versions (e.g.,
flux-2-pro→flux-3-pro) - Deprecated models or endpoints
- Pricing or rate-limit changes that affect documented patterns
- Breaking API changes
- New model versions (e.g.,
- Note which
Brain Files(skills, instructions, scripts) reference this entry.
- Visit the
-
Propose a unified change set — one message, grouped by entry. For each, list:
- Registry row updates (new models list, new
Last Checked= today's ISO date) - Skill / instruction / script edits implied by the change (file path + brief rationale; do not paste full files)
- Any patterns that became incorrect (e.g., a SKILL.md's example uses a model that no longer exists)
- Registry row updates (new models list, new
-
Confirm before applying — wait for the user to approve. After approval:
- Update the registry rows in-place. Use ISO
YYYY-MM-DDforLast Checked. - Apply the proposed downstream edits.
- Re-run
node .github/muscles/audit-api-drift.cjsto verify all entries are fresh.
- Update the registry rows in-place. Use ISO
-
Report — one-line summary: how many entries were updated, how many downstream files changed.
Boundaries
- The muscle never patches scripts or skills. It only detects drift. All semantic edits flow through this prompt with user approval.
- Do not invent entries. If the registry has no rows for a category, do not add one unless the user installs a skill that requires it.
- Probe failures are not always drift. A 403 or rate-limit means "couldn't check", not "deprecated". Flag for the user; do not auto-update those rows.
- ISO dates only. Convert any legacy
Apr 2026-style entries toYYYY-MM-DDwhen you touch them.