Skip to content
Back to skills

Check The Docs

ASecurity

Use when writing or modifying code that calls an external library, framework, SDK, or API — especially one that is niche, recently updated, or whose exact method names and parameters you are not certain of. Makes the agent confirm real, current API signatures before using them, instead of inventing plausible-but-wrong calls from memory.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
ai-agentsgodebuggingapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add buildmoonshot/skillpacks --skill check-the-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check The Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Check The Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/buildmoonshot-check-the-docs/badge)](https://www.skillsdirectory.com/skills/buildmoonshot-check-the-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: check-the-docs
description: Use when writing or modifying code that calls an external library, framework, SDK, or API — especially one that is niche, recently updated, or whose exact method names and parameters you are not certain of. Makes the agent confirm real, current API signatures before using them, instead of inventing plausible-but-wrong calls from memory.
---

# Check the Docs

Before calling into an external library or API, **confirm the API is real and current** — do not code it from memory and hope.

## When to stop and check

- You're reaching for a method, option, or parameter and you're **not certain** it exists with that exact name/shape.
- The library has had **major version changes** (the API you remember may be gone).
- It's **niche or fast-moving** — small libraries and recent releases are where memory is least reliable.
- The user reported an error that looks like a **wrong signature** (`X is not a function`, unexpected argument).

## What to do

1. **Verify the signature** against current documentation, the installed version's types/source, or an official reference — not your recollection.
2. **Check the installed version.** Read `package.json` / lockfile / `requirements.txt`. Match the docs to *that* version, not the latest.
3. **Prefer the project's existing usage.** If the codebase already calls this library, copy that real, working pattern over anything you'd reconstruct from memory.

## When you can't verify

Say so, and mark the call as unverified: *"I used `client.search(...)` from memory — confirm this matches your installed version, as I couldn't check the docs."* An honest flag beats a confident hallucination.

## Why this matters

Hallucinated API calls are the classic agent failure: confident, plausible, and completely wrong — `array.removeWhere()`, a `timeout` option that doesn't exist, a renamed method from three versions ago. They cost a debugging session to track down. Thirty seconds of checking prevents them.

Files in this skill

  • README.md1.5 KB
  • SKILL.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…