Prompts

Common Tasks

Ready-to-copy prompts for frequent operations

TL;DR: Copy, customize the [brackets], paste into AI.

Quick Reference

Add Simple Feature

Add [feature_name] feature with fields:
- [field1]: [type]
- [field2]: [type]
- [field3]: [type]

Add Field

Add [field_name] field to [entity].
Type: [text/number/date/select/relation].

Add Filter

Add [field] filter to [entity] list.

Add Relation

Add relation: [parent] has many [children].
Show on [parent] detail page.

Add to Navigation

Add [entity] to sidebar. Icon: [icon_name].

Feature Templates

Basic CRUD

Add [name] feature.
Fields: name (required), description, status (active/inactive), created_at.
List page with status filter.

With Parent Relation

Add [child_name] feature.
Fields: [field1], [field2], [field3].
Belongs to [parent_name] (many [children] per [parent]).
Show on [parent] detail page as related list.

With Dictionary

Add [name] feature.
Fields: name, [category_field] (use [dictionary_name] dictionary), status.
Add filter for [category_field] on list page.

Permission Prompts

Restrict by Role

Only [role] and above can [action] [entity].

Examples:

Only admin and above can delete clients.
Only member and above can create invoices. Viewers can only see.

Hide UI Element by Role

Hide [element] for viewers in [entity].

Example:

Hide delete button for viewers in projects list.
Hide edit form for viewers on project detail page.

Data Display Prompts

Format Field

Format [field] in [entity] as [format].

Examples:

Format amount in invoices as currency ($1,234.56).
Format created_at in tasks as relative time (2 hours ago).
Format phone in contacts as (123) 456-7890.

Conditional Styling

In [entity] list, highlight rows where [condition].
Style: [color/bold/badge].

Examples:

In tasks list, highlight rows where due_date is past and status is not done.
Style: red background.
In inventory list, highlight rows where quantity < min_quantity.
Style: yellow background with "Low Stock" badge.

Calculated Display

Show [calculated_field] in [entity] [list/detail].
Calculate: [formula].

Example:

Show total in invoice detail.
Calculate: sum of items (quantity * unit_price).
Format as currency.

Export & Actions

Add Export

Add export to [entity] list.
Formats: [CSV/JSON/Excel].
Export visible/filtered data.

Add Bulk Action

Add "[action_name]" bulk action to [entity] list.
[What it does].

Example:

Add "Mark as Paid" bulk action to invoices list.
Sets status to "paid" and paid_date to today.
Only for invoices with status "sent".

Add Quick Action

Add [action] quick action to [entity] list rows.
Icon: [icon_name].

Search & Filter Combos

Full Search Setup

Add search and filters to [entity] list:
- Search in: [field1], [field2]
- Filters: [field3], [field4], [date_field] (date range)
- Default sort: [field] [asc/desc]

Example:

Add search and filters to products list:
- Search in: name, sku, description
- Filters: category, status, price range
- Default sort: name asc

Complete Feature Prompts

Invoice System

Create invoices feature:

Fields:
- invoice_number: auto-generated (INV-0001)
- client: relation to clients (required)
- issue_date: date (default today)
- due_date: date (required)
- status: draft/sent/paid/overdue
- notes: textarea

Invoice items (child):
- description, quantity, unit_price
- Show line total (quantity * unit_price)
- Show invoice total (sum of line totals)

List page:
- Filters: status, client, date range
- Show total as currency
- Status as colored badge
- Quick action: Mark as Paid

Detail page:
- Header with invoice_number, client name, status badge
- Items as editable table
- Totals section at bottom

Task Management

Create tasks feature:

Fields:
- title (required)
- description: textarea
- project: relation to projects
- assigned_to: relation to users
- due_date
- priority: low/medium/high (default medium)
- status: todo/in_progress/review/done

List page:
- Filters: status, priority, assigned_to, project
- Overdue highlight (red) for past due_date + status not done
- Priority as colored badge
- Assigned user avatar

Detail page:
- Quick status change buttons
- Activity log section

Board view (optional):
- Kanban board grouped by status
- Drag to change status

Troubleshooting Prompts

Fix Type Error

Fix TypeScript error in [entity] [file/component].
Error: [paste error message]

Debug Issue

[entity] [describe what's not working].
Expected: [expected behavior].
Actual: [actual behavior].

Refactor

Refactor [entity] [component/query/action] to [desired improvement].
Keep existing functionality.

On this page