AIAssistant.prompts.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. export 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. export const codeSnippetPrompts = [
  29. {
  30. title: 'Explain code',
  31. prompt: 'Explain what this code does and how it works',
  32. },
  33. {
  34. title: 'Improve code',
  35. prompt: 'How can I improve this code for better performance and readability?',
  36. },
  37. {
  38. title: 'Debug issues',
  39. prompt: 'Help me debug any potential issues with this code',
  40. },
  41. ]