# What are the basics of prompt writing ??

> Source: <https://dev.to/dikshaanand/what-are-the-basics-of-prompt-writing--2fn7>
> Published: 2026-08-26 14:01:10+00:00

Prompt writing (prompt engineering) is the practice of structuring instructions so an LLM generates precise, high-quality, and contextually accurate outputs. Rather than treating the model like an open-ended conversationalist, effective prompting treats it like a programmable engine that requires clear constraints, context, and schemas.

The Universal Prompt Architecture

Here is the modular framework to structure everyday professional prompts:

```
# ROLE & OBJECTIVE
Act as a [Specific Role/SME]. Your task is to [Specific Task/Deliverable].

# CONTEXT & INPUTS
- Target Audience: [e.g., Beginners / C-Suite / Technical Specialists]
- Source Data / Background: [Insert raw facts, parameters, or text]

# OPERATIONAL GUIDELINES
1. [Core instruction 1]
2. [Core instruction 2]

# NEGATIVE CONSTRAINTS (What to Avoid)
- Do NOT include conversational throat-clearing (e.g., "Sure, I can help with that", "Here is...").
- Do NOT summarize or repeat the prompt premise.
- Avoid generic adjectives; quantify claims with specific units or bounds.

# OUTPUT FORMAT
[Specify exact layout: JSON schema, Markdown tables, or numbered steps]
```


