Skip to content

1. Prompt Tips ​

Clear, testable prompts that are easy to iterate.

Structure of a good prompt ​

A well-structured prompt contains:

  1. Objective — what the app should do
  2. Modules — main functional domains
  3. Entities — the main data objects (with fields and types)
  4. Business rules — validations and automations
  5. Screens — minimum required UI

Template ​

Create a project named: [NAME]

Goal: [one sentence describing the app's purpose]

Modules:
- [Module 1]
- [Module 2]

Entities:
- [Entity]:
  - [field] ([type], required/optional)
  - [field] ([type], picklist: Option A | Option B)
  - [relationship] (relationship: N [Entity])

Business rules:
- [Rule 1]
- [Rule 2]

Minimum screens:
- [Screen 1 with filter/action]
- [Screen 2]

Reports: [none / list needed reports]

Best practices ​

  • Be specific about field types: text, number, date, boolean, picklist, relationship
  • Name entities consistently: avoid synonyms for the same concept
  • One domain per prompt: don't mix CRM + Finance + HR in the first step
  • Small batches: generate a working core first, then add features incrementally
  • Review the specification before approving — treat it as a contract

Anti-patterns ​

Anti-patternWhy it's badBetter approach
"Build a complete ERP"Too broad, unpredictable outputBreak into modules, one per prompt
Mixing many domains at onceIncreases errors and reworkGenerate core first, add features later
Vague field descriptionsAI fills in the blanks incorrectlySpecify type, required, picklist options
Changing names mid-projectBreaks references silentlyDecide naming upfront

Examples ​

Simple (task manager) ​

Create a project named: TaskFlow

Goal: simple task management with priorities and assignments.

Modules:
- Tasks

Entities:
- Task:
  - title (required)
  - status (picklist: New | In Progress | Review | Done)
  - priority (picklist: Low | Medium | High)
  - dueDate (date)
  - assignedTo (relationship: 1 User)

Business rules:
- Status can only advance forward (New → In Progress → Review → Done).

Minimum screens:
- Task list with filter by status and priority
- Create/edit task form

Intermediate (CRM) ​

See Prompt Templates for complete CRM, ERP, and Helpdesk templates.


Next: 2. Quick Prompts →

© Madrix Software. All rights reserved.