AI Prompts
Clerk's AI prompt library provides curated prompts to help you work more efficiently with AI-powered development tools. These prompts are designed to guide AI assistants in helping you implement Clerk authentication and user management features correctly.
How to use these prompts
These prompts can be copied into your AI-powered IDE or development tool, or pasted into your chat with an AI assistant. Here are some examples of how to use them:
- In Cursor, add the prompt to your project rules.
- In GitHub Copilot, save the prompt to a file in your project and reference it using
#<filename>
. - In Claude Code, include the prompt in your
CLAUDE.md
file.
Available prompts
Next.js App Router
Complete guide for implementing Clerk in Next.js 14+ applications using App Router.
View prompt
React
Comprehensive prompt for integrating Clerk into React applications.
View prompt
Best practices
- Customize the prompts: These prompts are starting points. Modify them based on your specific requirements.
- Keep them updated: As you discover patterns that work well, update your prompts.
- Version control: Store your prompts in your repository so your team can benefit from them.
- Security first: Always review AI-generated code for security best practices.
Contributing
Have a great prompt for working with Clerk? We'd love to see it! Open a PR in the clerk-docs repository.
Feedback
Last updated on