Prompt Decorators: A Declarative and Composable Syntax for Reasoning, Formatting, and Control in LLMs
Mostapha Kalami Heris

TL;DR
Prompt Decorators provide a declarative, composable syntax for controlling LLM behavior, enhancing transparency, modularity, and reproducibility in prompt design.
Contribution
This work introduces a formal syntax and framework for controlling LLM outputs through compact, declarative decorators, improving prompt modularity and interpretability.
Findings
Enhanced reasoning transparency and control
Reduced prompt complexity and improved standardization
Demonstrated applicability across diverse domains
Abstract
Large Language Models (LLMs) are central to reasoning, writing, and decision-support workflows, yet users lack consistent control over how they reason and express outputs. Conventional prompt engineering relies on verbose natural-language instructions, limiting reproducibility, modularity, and interpretability. This paper introduces Prompt Decorators, a declarative, composable syntax that governs LLM behavior through compact control tokens such as +++Reasoning, +++Tone(style=formal), and +++Import(topic="Systems Thinking"). Each decorator modifies a behavioral dimension, such as reasoning style, structure, or tone, without changing task content. The framework formalizes twenty core decorators organized into two functional families (Cognitive & Generative and Expressive & Systemic), each further decomposed into subcategories that govern reasoning, interaction, expression, and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsScientific Computing and Data Management · Explainable Artificial Intelligence (XAI) · Ethics and Social Impacts of AI
