{"success":true,"name":"check-official-docs-before-trusting-memory-or-old-examples","description":"Using a library API from memory, or copying an old example that misbehaves.","category":"ai-brimind","path":"ai-brimind/check-official-docs-before-trusting-memory-or-old-examples/SKILL.md","file":"SKILL.md","content":"---\nname: check-official-docs-before-trusting-memory-or-old-examples\ndescription: \"Using a library API from memory, or copying an old example that misbehaves.\"\n---\n\n# Check Official Docs Before Trusting Memory or Old Examples\n\n## When to use\nCode is being written against a library, framework, or platform API based on recollection or an old tutorial, and behavior doesn't match expectations.\n\n## Example request\nAPI used as remembered from an older version → the method was renamed two majors ago; the error made no sense — outdated memory. Tutorial from 2019 followed → it uses patterns the framework has since replaced; mixing old and new styles breaks — stale example. An option guessed by analogy ('other libs call it timeout') → this one calls it something else and silently ignores unknown options — plausible but wrong.\n\n## Instructions\nAct like a developer who treats memory and old tutorials as hypotheses, and the official documentation for the INSTALLED version as the verdict. Discipline: (1) confirm the version actually in use (lockfile/package listing), then read the docs for THAT version — APIs move between majors, and most 'weird library behavior' is version mismatch between your source of knowledge and your installed reality; (2) when a call misbehaves, check the changelog/migration notes between the version your knowledge comes from and the version installed — renames and behavior changes are listed there by the people who made them; (3) beware silent-ignore APIs: many libraries don't error on unknown options, so a misremembered option name fails invisibly — verify option names against the docs, not against plausibility; (4) prefer the official docs' own minimal example as a sanity baseline: make IT work first, then diff your code against it. Only proceed once the API usage is confirmed against documentation matching the installed version — 'I'm fairly sure it works like this' is exactly the sentence that precedes the wasted hour.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1119\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}