[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-672933-105":59,"doc-detail-672933-en":130,"doc-similar-672933":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","a-tutorial-on-prompt-engineering-from-messy-thoughts-to-ai-workflows","A Tutorial on Prompt Engineering: From Messy Thoughts to AI Workflows","","This paper treats prompt engineering as a discipline for converting informal human intent into structured AI work specifications. It presents reusable design moves that define the work, constrain context, select roles, and set affirmative quality targets while reserving prohibitions for hard boundaries. To keep prompts lean, it adapts Occam’s razor and Chekhov’s gun, and for high-consequence tasks it adds critique via steelmanning and premortems, then verification plus agentic operating loops with explicit boundaries and escalation.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/a-tutorial-on-prompt-engineering-from-messy-thoughts-to-ai-workflows/672933/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/a-tutorial-on-prompt-engineering-from-messy-thoughts-to-ai-workflows/672933.png","ImageObject",300,407,{"name":92,"@type":93},"lugxt","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28","2026-11-02",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How does the paper define prompt engineering in practice?","Question",{"text":112,"@type":113},"Prompt engineering is treated as a problem-formulation and workflow-design discipline that converts informal intent into an explicit work specification an AI system can execute and then refine via review.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What makes a prompt “strong” according to the paper?",{"text":117,"@type":113},"A strong prompt makes desired behavior, required sources/checks, and success criteria unmistakable. The paper emphasizes that strong prompts are not necessarily the longest prompts.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the framework handle complex or agentic tasks?",{"text":121,"@type":113},"It designs context, constraints, tools, critique loops, verification steps, and human oversight, using explicit boundaries, stop rules, and escalation in agentic operating loops.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},672933,1793615336,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},3985747862600,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","A Tutorial on Prompt Engineering: From Messy Thoughts to AI Workflows  \nErfan Loweimi 1 ,2 , Hadi Daneshvar , Samira Loveymi 3 , Samir Ouelha 1 , Zhengjun Yue 4 ,  \nHajar Mozaffar 5 , Saturnino Luz 2  \narXiv : 2609 .22249v 1 [cs .CL] 5 Sep 2026  \nAbstract—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, asan attention lens, and state affirmative quality targets, reserving prohibitions for hard boundaries. 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.  \nIndex Terms—Agentic AI, context engineering, generative artificial intelligence, human-AI interaction, large language models, problem formulation, prompt engineering  \nI. INTRODUCTION  \nMODERN large language model (LLM) interfaces make  \nit easy to get a workable answer from a casual request. A technical treatment of prompt engineering should begin from that fact. Weak prompts can work; they often do. The better question is what changes when the task becomes ambiguous, repeated, high-consequence, multi-step, or agentic. In those settings, the prompt stops being merely a request and becomes a specification for work: a translation of informal human intent into terms an AI system can act on. In the agentic AI era, prompt engineering also requires designing context, constraints, tools, critique loops, verification steps, and human oversight so that AI systems can perform useful work within explicit, reviewable boundaries.  \nThis paper therefore treats prompt engineering as a problemformulation and workflow-design discipline. A good prompt makes the task, constraints, evidence requirements (what sources or checks the answer should rely on), and success  \n1Cisco, UK  \n2Centre for Medical Informatics, Usher Institute, University of Edinburgh, UK  \n3Department of Computer Engineering, Ahvaz Campus, Islamic Azad University, Iran  \n4 SLAI & CUHK-SZ, China  \n5Business School, University of Edinburgh, UK  \nCorresponding author: Erfan Loweimi (e-mail: [eloweimi@cisco.com](eloweimi@cisco.com)).  \ncriteria clearer to the model and to the human reviewer. Clarity is not correctness, however: a clear prompt can still produce a wrong answer. Prompt engineering must be paired with verification, source checking, and human judgment.  \nA strong foundation model can often recover from a vague request. Prompt engineering matters because it helps the user get the intended result with less waste, fewer hidden assumptions, and clearer review points. In this sense, prompt engineering can be read as an optimisation problem, where the quantities to be reduced are turns, tokens, retries, repairs, side problems, and downstream errors. The paper does not measure those quantities; it argues for the design choices that reduce them by making assumptions, criteria, and review points explicit.  \nScope and contributions. The paper makes six practical contributions:  \n1) a work-specification view of prompts rather than a ","cbCaibyGYRi5Ayeh","https://ap.wps.com/l/cbCaibyGYRi5Ayeh","pdf",480020,11,"English","# Introduction\n# Related Work\n# Framework Construction\n# Step-by-Step Framework Development\n# Checklists and Design Principles\n# Boundaries, Risks, and Practical Implications\n# Conclusion","[{\"question\":\"How does the paper define prompt engineering in practice?\",\"answer\":\"Prompt engineering is treated as a problem-formulation and workflow-design discipline that converts informal intent into an explicit work specification an AI system can execute and then refine via review.\"},{\"question\":\"What makes a prompt “strong” according to the paper?\",\"answer\":\"A strong prompt makes desired behavior, required sources/checks, and success criteria unmistakable. The paper emphasizes that strong prompts are not necessarily the longest prompts.\"},{\"question\":\"How does the framework handle complex or agentic tasks?\",\"answer\":\"It designs context, constraints, tools, critique loops, verification steps, and human oversight, using explicit boundaries, stop rules, and escalation in agentic operating loops.\"}]","A Tutorial on Prompt Engineering: From Messy Thoughts to AI Workflows | PDF",28,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/190a4882e96cae5ae6c3949b7238b666.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/9d2a7f8d41f9518fc31564af8e336a66.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/317e4e537bc778484b6c168c226899dd.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1e0c45c5473061de8b376ea1676027e5.webp",980,1268,{"list":163,"token":66},[164,170,176,183,190,197,204,211,218,225],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":81,"category_name":40,"create_tm":169},703185,"The New SDLC With Vibe Coding - From ad-hoc prompting to Agentic Engineering","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013432556/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=lC53VnuqGfJ%2BrT8zLt8P4RyubNA%3D","the-new-sdlc-with-vibe-coding-from-ad-hoc-prompting-to-agentic-engineering",1794562118,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":144,"category_name":40,"create_tm":175},85516,"JADE Expert-Grounded Dynamic Evaluation for Open-Ended Professional Tasks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809320213/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=KzjmaXvwpqohgQHV3nT2Q4%2BFbIc%3D","jade-expert-grounded-dynamic-evaluation-for-open-ended-professional-tasks",1784204118,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":40,"create_tm":182},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=ttdoltlE4wygwjkFT23BSP9uc38%3D","xnx-gas-detector-calibration-2023",7896,1776136863,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":40,"create_tm":189},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=paukXkGFiIEfFk7EYgIV8jxqzuY%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6934,1776136851,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":40,"create_tm":196},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=dprrMPJZYxSPz0p3MIh02Os8mqE%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5867,1788211707,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":40,"create_tm":203},32070,"Blueprint Pengelolaan Sumber Daya Manusia Kesehatan (SDMK) Tahun 2025–2029","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229758685683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=dIwtOdwCYRwU0sln0HqORv0y%2Bs8%3D","healthcare-human-resources-management-blueprint-sdmk-20252029",1292,1780779716,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":209,"category_name":40,"create_tm":210},148514,"Developmental Biology - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229868853261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=JMD6ydxHGoQHiDK%2FivOQ5z9dnW8%3D","developmental-biology-twelfth-edition",1250,1787780705,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":40,"create_tm":217},121,"Letter of Intent Sample for School","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693418846/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=gR0AOMOOX5DKVQAbWlMc6aOamrw%3D","letter-of-intent-sample-for-school",1059,1776135210,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":40,"create_tm":224},129209,"Laboratory Manual for Principles of General Chemistry - J. A. Beran - 11th Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840760175/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=%2B8G%2Frm%2B4oJxk%2B%2FYaMabbrFfLV2g%3D","laboratory-manual-for-principles-of-general-chemistry-j-a-beran-11th-edition",887,1786011673,{"doc_id":226,"doc_title":227,"file_type":137,"home_preview_img_url":228,"slug":229,"view_count":230,"category_name":40,"create_tm":231},117724,"The Trading Edge - Vivek Bajaj","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834707110/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=qRZRX3WaLJMDqDxq1OnIbho9bIk%3D","the-trading-edge-vivek-bajaj",874,1785678693]