L

Skill Entry

Library docs in the loop

Keeps AI assistant answers anchored to the actual library documentation, changelog, and typed signatures that are shipped rather than to memory or stale blog summaries. This is essential during major version bumps, unfamiliar SDK integration, or on-call hotfixes where confident but incorrect guesses about API behavior cause more damage than the original bug.

Category Research
Platform Codex / Cursor
Published 2026-04-15
documentationdependenciesaccuracy

Use cases

  • Upgrading to a major new version of a library and needing to understand what changed in the typed API signatures
  • Integrating an unfamiliar SDK during a time-pressured on-call session where you cannot afford wrong API assumptions
  • Refactoring code that uses a library and wanting to ensure the replacement API has the same semantics
  • Reviewing AI-generated code that uses a library and wanting to verify the API usage is correct before merging
  • Writing a migration guide for a library upgrade and needing accurate information about what changed between versions

Key features

  • Name the specific package and target version you are working with before asking any implementation questions
  • Pull the canonical documentation slice—README, API reference, or changelog—into the context window so the model answers from the actual docs
  • Ask for a change that is scoped to the diff size needed (a function, a file, a small feature) and request citations to specific functions or parameters in the documentation
  • Verify the suggested API usage against the actual function signature before applying the change, as documentation can occasionally be outdated

When to Use This Skill

  • When using a library with a complex or frequently-changing API where memory-based answers are unreliable
  • When reviewing AI-generated code that uses unfamiliar library calls
  • When upgrading library versions and needing accurate migration guidance rather than generic upgrade suggestions

Expected Output

Verified implementation changes with citations to specific sections of the official documentation, reducing API assumption errors.

Frequently Asked Questions

How do I handle libraries with sparse or outdated documentation?
Use the source code as the source of truth when documentation is insufficient. If a function is not documented, treat its behavior as potentially unstable and consider filing a documentation PR alongside your implementation.
What if the documentation and the actual behavior differ?
Treat the source code as authoritative over the documentation. Document the discrepancy and consider submitting a correction to the library maintainers. In the meantime, add a code comment explaining the actual behavior.
How does this relate to type signatures as documentation?
Typed function signatures are a form of documentation that the compiler enforces. Always check the type signature first—it is always accurate because the compiler validates it. Use prose documentation to explain intent that types alone cannot convey.

Related

Related

3 Indexed items

Fine-tuning preparation

Research

Curates, deduplicates, and formats training datasets for fine-tuning so that the resulting model actually improves on target behaviors rather than learning noise. Fine-tuning preparation covers dataset quality filtering, output format consistency, train/test splits, and avoiding common pitfalls like data leakage that invalidate fine-tuning results.

AI memory and HBM supply-chain claims due diligence

Research

Structures verification of public claims about AI-driven memory shortages, high-bandwidth memory (HBM) demand, and trillion-dollar memory-chip valuations into an evidence checklist for finance, procurement, and platform teams. The workflow separates analyst price-target moves, year-to-date equity rallies, and vendor statements about agentic-AI workloads from independently observable supply signals (long-term agreements, stated capacity constraints, peer pricing power). It cites CNBC reporting that Micron crossed a $1 trillion market cap on May 26, 2026 after UBS raised its price target from $535 to $1,625, and that SK Hynix joined the trillion-dollar club on May 27, 2026 with shares up roughly 250% year to date amid AI chip demand lifting South Korea's Kospi—without endorsing any single stock call.

OpenAI documentation lookup

Research

Prioritizes official OpenAI documentation, model cards, and API references when researching integration details, model capabilities, or API behavior changes. This avoids the noise and staleness of third-party blog posts that may summarize older model versions or incomplete information.