Prompt Decorators: A Declarative and Composable Syntax for Reasoning, Formatting, and Control in LLMs
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
Abstract (arXiv)
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 session-control. It defines a unified syntax, scoping model, and deterministic processing pipeline enabling predictable and auditable behavior composition. By decoupling task intent from execution behavior, Prompt Decorators create a reusable and interpretable interface for prompt design. Illustrative use cases demonstrate improved reasoning transparency, reduced prompt complexity, and standardized model behavior across domains. The paper concludes with implications for interoperability, behavioral consistency, and the development of declarative interfaces for scalable AI systems.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 9 of its 11 references that are in the map. First posted on arXiv 21 Oct 2025.
Builds on
9 of 11 references.
Closest ancestors · 2
Same direction, newest first
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Models21 Mar
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan
Other references · 7
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2022Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLPcited by 318
- 2024The Prompt Report: A Systematic Survey of Prompt Engineering Techniquescited by 121
- 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
- 2024A Survey of Prompt Engineering Methods in Large Language Models for Different NLP Taskscited by 47
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025Cognitive BASIC: An In-Model Interpreted Reasoning Language for LLMs
- 2025Why Prompt Design Matters and Works: A Complexity Analysis of Prompt Search Space in LLMs
- 2025Understanding LLM Scientific Reasoning through Promptings and Model's Explanation on the Answers
- 2024Language hooks: a modular framework for augmenting LLM reasoning that decouples tool usage from the model and its prompt
- 2025DMN-Guided Prompting: A Framework for Controlling LLM Behavior
- 2026Beyond Prompt or Skill? Attribution-Guided Optimization of Modular LLM Programs
- 2025Cognitive Foundations for Reasoning and Their Manifestation in LLMs
- 2026Enhancing LLM Instruction Following: An Evaluation-Driven Multi-Agentic Workflow for Prompt Instructions Optimization