AIAssistant.prompts.ts42 lines · main
1export const defaultPrompts = [
2 {
3 title: 'Create a back-end',
4 prompt:
5 'Create a messaging app with users, messages, and an edge function that uses OpenAI to summarize message threads.',
6 },
7 {
8 title: 'Health check',
9 prompt: 'Can you check if my database and edge functions are healthy?',
10 },
11 {
12 title: 'Query your data',
13 prompt: 'Give me a list of new users from the auth.users table who signed up in the past week',
14 },
15 {
16 title: 'Set up RLS policies',
17 prompt: 'Create RLS policies to ensure users can only access their own data',
18 },
19 {
20 title: 'Create a function',
21 prompt: 'Create an edge function that summarises the contents of a table row using OpenAI',
22 },
23 {
24 title: 'Generate sample data',
25 prompt: 'Generate sample data for a blog with users, posts, and comments tables',
26 },
27]
28
29export const codeSnippetPrompts = [
30 {
31 title: 'Explain code',
32 prompt: 'Explain what this code does and how it works',
33 },
34 {
35 title: 'Improve code',
36 prompt: 'How can I improve this code for better performance and readability?',
37 },
38 {
39 title: 'Debug issues',
40 prompt: 'Help me debug any potential issues with this code',
41 },
42]