LLMs
Kysely provides LLM-friendly documentation to help AI tools like Cursor, Windsurf, GitHub Copilot, ChatGPT, Claude, and Claude Code understand and work with it.
llms.txt
documentation is automatically generated and kept up-to-date with each push on GitHub and is based on the llms.txt standard.
Documentation Structure
The llms.txt file acts as a summary and index to all the docs pages.
The llms-full.txt file includes all of the Kysely docs in a single file.
Usage with AI Tools
Cursor
In Cursor, you can reference the documentation using the @Docs
feature:
- Type
@Docs
in your prompt - Reference the Kysely documentation URL:
https://kysely.dev/llms-full.txt
- Ask questions about Kysely queries, types, or database operations
Windsurf
For Windsurf users:
- Reference the documentation using
@https://kysely.dev/llms-full.txt
- Or add it to your
.windsurfrules
file for persistent access
ChatGPT & Claude
When using ChatGPT or Claude:
- Mention that you're using Kysely
- Reference the documentation URL:
https://kysely.dev/llms-full.txt
- The AI will fetch and use the documentation to provide accurate answers
GitHub Copilot
While Copilot doesn't directly support external documentation, you can:
- Include relevant documentation snippets in your comments
- Reference query builder methods and types accurately for better suggestions
Claude Code
For Claude Code users:
- Reference the documentation by mentioning the URL:
https://kysely.dev/llms-full.txt
- Ask Claude Code to analyze the documentation for specific Kysely patterns
- Use commands like:
claude -p "Using the Kysely docs at https://kysely.dev/llms-full.txt, help me build a type-safe query"
Example Prompts
Here are some example prompts you can use with AI tools:
- "Using Kysely, how do I build a type-safe SELECT query with JOINs?"
- "Show me how to define a database schema interface for Kysely"
- "How can I use transactions with Kysely?"
- "Create a complex query with subqueries and aggregations"
- "How to handle database migrations with Kysely?"