A Tutorial on Prompt Engineering: From Messy Thoughts to AI Workflows

Erfan Loweimi, Hadi Daneshvar, Samira Loveymi, Samir Ouelha, Zhengjun Yue +2 more
9/5/2026
cs.CLcs.AIcs.HC

No confident code implementation found for this paper.

Abstract

This paper treats prompt engineering as a discipline for turning informal human intent into structured AI work specifications. It develops the practice as a sequence of reusable design moves: define the work, construct only the context the answer depends on, choose a role, or a moderated panel of roles, as an attention lens, and state affirmative quality targets, reserving prohibitions for hard boundaries.

Show full abstract

To keep prompts lean, it adapts two classical principles, Occam's razor and Chekhov's gun, so that every instruction earns its place. For consequential tasks, it adds structured critique through steelmanning and premortems, followed by verification and, where tools or multi-step actions are involved, agentic operating loops with explicit boundaries and escalation. Aimed at a general readership, this tutorial is not a benchmarking study; it offers a practical, technically grounded path from casual prompting to disciplined AI workflow design, illustrated by a worked example that carries one task from a weak prompt to a strong specification. The framework is presented as principles and checklists that remain useful as models and tools change. The strongest prompt is rarely the longest prompt; it is the one that makes desired behaviour, required sources and checks, and success criteria unmistakable.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{loweimi2026tutorial,
  title  = {A Tutorial on Prompt Engineering: From Messy Thoughts to AI Workflows},
  author = {Erfan Loweimi and Hadi Daneshvar and Samira Loveymi and Samir Ouelha and Zhengjun Yue and Hajar Mozaffar and Saturnino Luz},
  year   = {2026},
  eprint = {2609.22249},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.22249v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.22249.svg)](https://codeofpaper.com/paper/2609.22249)

Discussion