kw-find-docs
Installation
SKILL.md
Find Docs (Context7)
Look up an external library's current API in Context7, but only when the code at hand cannot answer the question.
1. Gate: do not query anything yet
An external lookup is the last resort, not the first step. Check these in order and stop as soon as one of them answers the question:
- The installed package.
node_modules/<pkg>/package.jsongives the exact version in use and the bundled.d.tsfiles give the real signature for that version. This beats any documentation, because it is the code that will actually run. - The project's own call sites. Grep for the symbol. A working usage already in the repo settles the signature and the project's conventions at the same time.
- A dedicated skill. shadcn components, Supabase, Next.js and Vercel, and the Anthropic API each have their own skill. Those are closer to the source, use them.