Skip to content
sinc-LLMBook a 30-minute call

How to Write Better AI Prompts: A Signal Processing Approach

A guide to the author's structured-prompt method, with before-and-after examples, constraints, and supporting tools.

On this page
By Mario Alexandre March 21, 2026 sinc-LLM Prompt Engineering

Most prompt advice is vague: "be specific," "give context," "use examples." That advice is not wrong. But it is not enough. It does not tell you how specific, how much context, or which examples. It gives you no way to check if your prompt is done.

My sinc-LLM framework swaps vague advice for a clear checklist. A prompt is complete when it covers all 6 parts well. No more guessing.

The 6 Things Every Prompt Needs

x(t) = Σ x(nT) · sinc((t - nT) / T)

See the author’s prompt-format discussion for six task-specification fields:

  1. PERSONA: Tell the AI who it is. Not just "helpful assistant." Say something like "a data scientist who works with time series data."
  2. CONTEXT: Give the situation. What project is this? What stage are you in? What have you already tried?
  3. DATA: Share the real inputs. This could be code, numbers, a document, or examples.
  4. CONSTRAINTS: write the rules, limits, and things to avoid.
  5. FORMAT: Say exactly what the answer should look like. JSON? Bullet points? How long?
  6. TASK: The actual instruction. By the time you fill in the other parts, this is usually just one sentence.

Bad Prompt (1 band sampled)

"Analyze this data and give me insights."

This only covers TASK. The AI has to guess the persona, the context, the data, the constraints, and the format. Every guess can lead to a wrong answer.

Good Prompt (6 bands sampled)

PERSONA: Senior business analyst for e-commerce
CONTEXT: Q4 2025 sales data, comparing to Q3. Company sells B2B SaaS.
DATA: [attached CSV with columns: date, revenue, churn_rate, new_signups]
CONSTRAINTS: Focus on churn trends only. Do not speculate on causes
  without data support. Flag any metric that changed more than 15%.
  Max 500 words.
FORMAT: Executive summary (3 bullets), then detailed analysis
  with one table comparing Q3 vs Q4 metrics.
TASK: Analyze churn trends and identify the top 3 actionable findings.

The CONSTRAINTS-First Method

The author’s suggested preparation order starts with CONSTRAINTS, followed by the other fields:

  • CONSTRAINTS states rules, limits, and exclusions to check in the output.
  • Writing constraints makes you think about tricky cases before the AI does.
  • Constraints are the part people most often skip, so the AI has to fill them in by guessing.
  • A prompt with great constraints and a weak task beats a prompt with a great task but no constraints.

Simple rule: if your CONSTRAINTS section is shorter than your TASK section, your prompt is missing its most important part.

Tools to Help

You do not have to do this by hand every time:

The gap between a good prompt and a great one is not creativity. It is completeness. Cover all 6 parts, and the AI does the rest.

Review a prompt using six specification fields

Try sinc-LLM Free

This is the exact JSON format that sinc-LLM uses. Paste any raw prompt at sincllm.com to generate one automatically.

{
  "formula": "x(t) = Σ x(nT) · sinc((t - nT) / T)",
  "T": "specification-axis",
  "fragments": [
    {
      "n": 0,
      "t": "PERSONA",
      "x": "You are a practical AI coach who helps beginners get dramatically better results from ChatGPT, Claude, and Gemini. You focus on immediate, actionable improvements."
    },
    {
      "n": 1,
      "t": "CONTEXT",
      "x": "The reader has been using AI chatbots for 6 months and gets 'okay' results. They know their prompts could be better but do not know where to start. They have never heard of sinc-LLM or prompt frameworks."
    },
    {
      "n": 2,
      "t": "DATA",
      "x": "The format names PERSONA, CONTEXT, DATA, CONSTRAINTS, FORMAT, and TASK. CONSTRAINTS states rules and exclusions. Compare example prompts against the task and check their outputs separately."
    },
    {
      "n": 3,
      "t": "CONSTRAINTS",
      "x": "Write at a 10th-grade reading level. No jargon. Every tip must include a before/after example. Limit to 5 tips maximum. Each tip must be usable in under 30 seconds. Do not mention the word 'framework' or 'methodology.'"
    },
    {
      "n": 4,
      "t": "FORMAT",
      "x": "Return: (1) The One Thing Wrong With Your Prompts (1 paragraph). (2) 5 Tips with Before/After examples. (3) The Template they can copy-paste."
    },
    {
      "n": 5,
      "t": "TASK",
      "x": "Write 5 practical tips for writing better AI prompts that a beginner can apply immediately, using explicit task-specific constraints and output checks."
    }
  ]
}

Install: pip install sinc-llm | GitHub | Paper

// Production AI Engineering

Build AI systems that hold up in production.

sinc-LLM designs, audits, and stabilises production AI infrastructure: from vendor evaluation and cost accountability to incident controls and MCP architecture.

See what we do →
Scope and context

sinc-LLM About Blog Services

Methods, definitions, and examples for the topic discussed here. Check applicability against the task and operating conditions.