Prompts

Prompts

How to talk to AI when building with Straktur

TL;DR: Copy these prompts, paste into Claude/Cursor/Copilot, get working code.

Who Is This For?

You're a vibecoder. You describe what you want, AI builds it. You don't need to know which files to edit or how the code works internally.

This section gives you ready-to-use prompts for common tasks.

How It Works

  1. Copy a prompt from this section
  2. Customize the specifics (feature name, fields, etc.)
  3. Paste into your AI tool (Claude Code, Cursor, Copilot)
  4. Review and accept the changes

AI knows Straktur's patterns. When you say "add invoices feature", it creates all the right files in all the right places.

What You Don't Need to Say

AI already knows:

  • Where to put files (/src/features/, /src/server/routers/)
  • How to structure code (queries, actions, validation)
  • How to add to navigation
  • How to handle organizationId
  • How to create UI with DataTable, DetailSheet, etc.

You focus on WHAT, AI handles HOW.


Prompt Categories

  • Add Feature - Create new entities (invoices, products, tasks)
  • Modify Entity - Add fields, change validation, update types
  • UI Changes - Filters, columns, forms, detail pages
  • Common Tasks - Ready-to-copy prompts for frequent operations

Tips for Better Prompts

Be Specific About Data

❌ "Add invoices"
✅ "Add invoices with: number (required), amount (decimal),
   due_date, status (draft/sent/paid), notes (optional)"

Mention Relations

❌ "Add invoice items"
✅ "Add invoice items. Each invoice has many items.
   Item fields: description, quantity, unit_price"

Reference Existing Features

✅ "Add projects feature, similar to clients"
✅ "Add status filter to projects, like the one on clients page"

State the Outcome

✅ "Add priority field to tasks. Show as colored badge in list.
   Options: low (gray), medium (yellow), high (red)"

Need Technical Details?

See Recipes for detailed implementation guides with file paths and code examples.

On this page