Skip to content

Before prompting AI to build an app: specify what must work

Create a small, shared spec for no-code and vibe coding, covering inputs, validation, calculation and checkable outcomes.

Before prompting AI to build an app: specify what must work
In this article

“Build me a quote app” sounds clear until different tools interpret it differently. One may add taxes, another omit expenses, a third silently accept negative hours.

The best first move isn’t a longer prompt. It’s defining the behavior you can observe. A short specification lets you compare visual builders and AI generators against the same expectations.

In brief: describe the job, inputs, invalid states, calculation and a correct outcome. The editor is a means; acceptance criteria are the reference.

Advertisement Precivo

A task without imagined commercial proof

In this lab, a fictional solo provider enters an activity, estimated hours, hourly reference and additional expenses. The tool displays a subtotal.

This isn’t pricing advice or evidence that any customer would pay. It’s an invented math exercise with no real customer data or payment collection.

It’s useful for learning because you can check the result independently of the technology.

Define behavior explicitly

PartRule
ActivityOptional descriptive text
Hours0–1,000, up to two decimal places
Hourly referenceBRL 0–1,000,000
ExpensesBRL 0–1,000,000
FormulaHours × hourly reference, rounded to cents, plus expenses
Invalid inputMissing, negative or malformed numbers give no subtotal
OutputItemized fictional total in BRL
PrivacyNo automatic sending or saving inputs

These instructions are more useful than “make a modern-looking smart calculator.”

Advertisement Flokin

Five cases both builds must pass

  1. Ordinary: 5 hours × R$ 80 + R$ 30 = R$ 430.
  2. Decimals: 1.5 hours × R$ 39.90 + R$ 0.05 = R$ 59.90.
  3. Zero: 0 × 0 + 0 = R$ 0, without inventing a minimum fee.
  4. Invalid: missing values and negative hours never produce a subtotal.
  5. Editing: when a value changes, don’t keep displaying the old total as if it were confirmed.

Check how the tool handles commas, rounding and text in numeric fields. One successful example isn’t enough.

A file that travels with the reader

Read or save the shared English specification; the Portuguese version contains the same rules.

Both workshops use this exact contract. If a tool can’t satisfy something, the comparison must say so.

Ask AI to review the spec before building

Review this fictional quote-calculator specification. Find ambiguities and edge cases without adding sign-ins, payment, APIs, customer storage, AI-powered formulas or commercial claims. Do not change acceptance criteria without explaining why.

Treat its reply as a proposal. Asking whether decimal commas are allowed is useful; changing the business model without explanation isn’t.

Workshop: an agreement with the outcome

Write a one-page specification for another task you understand. A nonprogrammer should be able to explain what success looks like; a developer should be able to turn it into tests.

If you cannot say how to verify the output, it’s too early to delegate.

Next, follow the no-code workshop, then give the same spec to an AI builder.

References: Google Sheets — formulas and OWASP — AI-generated code review.

More in Tutorials

See all

Advertise

Solopreneurs, makers and creators who use AI and automation every day. Editorial and media formats for brands that bring real value to this reader.

Talk to us about formats

Every partnership goes through editorial approval. No misleading promises.

  1. Sponsored articles Useful content, in the Caminho Solo tone and standard.
  2. Banners and display Placements in strategic areas of the site.
  3. Commercial partnerships Series sponsorships, affiliate partnerships, and custom campaigns.
  4. Native content Guides, tutorials or comparisons featuring your product.

Get in touch

Let's talk

Have questions, suggestions, or want to collaborate? Fill out the form below and we'll get back to you soon.

Prefer email?

contato@caminhosolo.com.br

We respect your privacy. Your data will only be used to respond to your message.