Have AI retrieve current development docs first
Use Context7 for library and framework documentation for your version. Specify the name, version and question, request sources and a minimal example, then check it against your project.
Start with Context7 for documentation
Use Context7 when adopting a library, upgrading a framework or checking an API. Libraries and frameworks supply reusable code; APIs are the interfaces you use to work with them. Context7 retrieves relevant documentation and code examples for the assistant.
Name the library, version and question. The newest documentation may not apply to an older project version, so use the version your project actually runs.
Prepare before starting
CLI means using a tool through terminal commands. This website does not collect keys, and the plan does not require a new paid service. Check official guidance for current account requirements and limits.
- Confirm the library name and version from your dependency files or installation records. Describe the feature or error you need help with.
- Connect Context7 using the instructions for your assistant and check its documentation tools. It also offers CLI plus a skill; you do not need both entry points.
- Complete any Context7 authorization or key configuration on your own device and check available access limits.
Copy this first prompt
Use Context7 to retrieve the official usage of [API or feature] in [library or framework] version [actual project version]. Confirm the version of the retrieved material, provide original documentation links and a minimal example, and explain its prerequisites. State clearly if that version or material is unavailable. Explain the usage first without changing project files. use context7How can you check the retrieved material?
- Confirm an actual Context7 call and check the selected library. A similarly named project is not sufficient.
- Open the documentation links and check the publisher, version and API name. Investigate further when a source does not identify a version.
- Compare the example with your project environment. Run relevant local checks before adopting the usage in your project.
Actual example
When should you use Serena instead?
Use Serena when the question is where a function lives, what calls it or how your existing code is organized. It retrieves project code using functions, classes and references. That is a different task from retrieving dependency documentation.
Serena is an alternative for understanding existing code, rather than a replacement for documentation retrieval. An upgrade can involve both tasks. Start with the free open-source language-server backend; this plan does not require the paid JetBrains plugin.
For Serena, provide the project directory, prepare uv through its Quick Start and check language support. uv is the installation tool used by Serena.
Sources and next step
Sources checked on 2026-10-13. This explains a retrieval method and prompt template; retrieving documentation is not evidence that code has passed validation.