prompt-decorators
A standardized framework for enhancing how LLMs process and respond to prompts through composable decorators, featuring an official open standard specification and Python reference implementation. Claude Code plugin and MCP server integration.
Install / Use
claude mcp add synaptiai -- npx -y github:synaptiai/prompt-decoratorsIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of prompt-decorators
prompt-decorators scores 86/100 on our quality scale, 537th of 965 AI & Machine Learning skills we index.
Its MCP Server is 11 KB long, well organised into 28 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
It has 44 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 10 days ago, so prompt-decorators is actively maintained.
- Our last check on 2026-10-21 found the source still online.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
prompt-decorators compared with similar skills
All 4 of these similar skills score higher than prompt-decorators; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| prompt-decorators (this skill)by synaptiai | 86 | 44 | 10d ago | MCP Server |
| claude-memby thedotmack | 100 | 113.5k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 109.2k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 90.9k | 10d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.9k | today | CLAUDE.md |
Frequently asked questions
- How do I install prompt-decorators?
- Run
claude mcp add synaptiai -- npx -y github:synaptiai/prompt-decorators. The install tabs above show the steps for each supported agent. - Which AI agents does prompt-decorators work with?
- It is written for Claude Code, Claude Desktop and Zed, as a MCP Server file. Other agents that read the same format can often use it too.
- Is prompt-decorators safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is Apache-2.0-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is prompt-decorators still maintained?
- The repository was last updated 10 days ago, so prompt-decorators is actively maintained.
Skill content
View source on GitHubPrompt Decorators
<div align="center"> <img src="https://synaptiai.github.io/prompt-decorators/assets/logo.png" alt="Prompt Decorators Logo" width="400"/>Prompt Decorators is a comprehensive framework that standardizes how prompts for Large Language Models (LLMs) are enhanced, structured, and transformed. This repository contains both the official Prompt Decorators Specification and its complete Python reference implementation.
Documentation • Prompt Decorators Specification
</div>📋 Table of Contents
🔍 Overview
What Are Prompt Decorators?
Prompt Decorators introduces a standardized annotation system inspired by software design patterns that allows users to modify LLM behavior through simple, composable "decorators." By prefixing prompts with annotations like +++Reasoning, +++StepByStep, or +++OutputFormat, users can consistently control how AI models process and respond to their requests across different platforms and implementations.
This project addresses the growing complexity of AI interactions by providing:
- The Specification: A formal standard that defines decorator syntax, behavior, and extension mechanisms
- The Python Implementation: A production-ready reference implementation with comprehensive tooling
- MCP Integration: A Model Context Protocol server that enables prompt decorator functionality in tools like Claude Desktop
Key Components
- 📝 Specification: The formal Prompt Decorators Specification (v1.0) defining the standard
- 🛠️ Core Framework: A Python implementation with registry-based decorator management
- 🧩 140+ Decorators: A comprehensive library of pre-built decorators covering reasoning, formatting, and more
- 🔌 MCP Server: Integration with the Model Context Protocol for use with desktop AI applications
- 🧷 Claude Code Plugin: A drop-in Claude Code plugin that expands inline
::Name(params)sigils into precise instructions before the model sees the prompt. Ships with a/decorateslash command, always-on config, and an opt-in Haiku-powered auto-selector. - 📚 Extensive Documentation: API references, guides, and examples for both users and developers
Background & Motivation
As Large Language Models become increasingly integrated into workflows across industries, the need for standardized, consistent ways to interact with these systems has become apparent. Current prompt engineering approaches are largely ad-hoc, requiring extensive documentation, reinvention, and significant cognitive overhead when switching between systems or use cases.
Prompt Decorators address this challenge by providing a systematic approach to modifying AI behavior through simple, composable annotations. Inspired by the Decorator pattern in programming and Python's function decorators, they serve as a layer of abstraction that decouples the core prompt from instructions about how to process and present the response.
Challenges in Prompt Engineering
Current prompt engineering suffers from several limitations:
- Inconsistency: Instructions vary widely between users, platforms, and models
- Verbosity: Detailed instructions consume token context that could be used for content
- Cognitive Overhead: Users must remember or document specific prompting techniques
- Lack of Composability: Combining different instruction paradigms is cumbersome
- Undocumented Behavior: Expected model behavior is often implicit rather than explicit
Benefits of Prompt Decorators
Prompt Decorators solves key challenges in prompt engineering:
- Inconsistency: Provides a standard syntax and behavior across different LLM platforms
- Verbosity: Replaces lengthy instructions with concise annotations
- Cognitive Overhead: Simplifies prompt crafting with reusable patterns
- Lack of Composability: Enables clean combination of multiple instruction paradigms
- Undocumented Behavior: Explicitly defines expected model responses
Whether you're crafting prompts for specific reasoning patterns, structuring outputs in particular formats, or ensuring consistent responses across different models, Prompt Decorators provides a systematic approach that makes prompt engineering more modular, reusable, and maintainable.
The Prompt Decorators framework addresses these challenges through:
- Standardization: Common vocabulary and syntax across platforms and models
- Efficiency: Concise annotations that reduce token consumption
- Reusability: Consistent behaviors that can be reused across different contexts
- Composability: Ability to combine decorators for complex interaction patterns
- Explicit Behavior: Clear documentation of expected model responses
- Reduced Cognitive Load: Simple annotations instead of lengthy instructions
Key Features
- 📚 Registry-based decorator management: Centralized registry of decorators with metadata
- ✅ Parameter validation and type checking: Robust validation of decorator parameters
- 🔢 Decorator versioning: Support for semantic versioning of decorators
- 🔄 Compatibility checking: Verification of decorator compatibility
- 📝 Documentation generation: Automatic generation of documentation for decorators
- 🧩 Dynamic loading: Runtime decorator loading from definition files
- 🔍 Runtime decorator discovery: Dynamic discovery and registration of decorators
💡 Implementation Status
The Prompt Decorators project is currently in active development.
You can see the how prompt decorators work by testing out the demo or running the MCP server implementation together with your Claude Desktop.
Or you can use the .cursorrules in this repository as system instructions in Cursor (or chatGPT/Claude) to instruct it. Try it out and share your experiences!
Implemented Functionality
- ✅ Core Decorator Registry: Load decorators from standardized JSON definitions
- ✅ Decorator Application: Apply decorators to prompts with parameter validation
- ✅ Sophisticated Transformation: Convert decorator parameters into prompt adjustments
- ✅ Multiple Input Formats: Support for Python functions, strings, and JSON
- ✅ Parameter validation and type checking: Robust validation of decorator parameters
- ✅ Standard Decorators: Implementation of the standard decorators defined in the specification
- ✅ Extension Framework: Support for domain-specific decorator extensions
- ✅ Documentation Generation: Automated documentation generation from decorator definitions
For a detailed breakdown of implementation status, see our Implementation Status document.
Roadmap
The roadmap for this project is outlined in the ROADMAP file.
🚀 Getting Started
Installation
You can install the package from PyPI https://pypi.org/project/prompt-decorators/:
pip install prompt-decorators
For additional functionality, you can install optional dependencies:
# For Model Context Protocol (MCP) integration
pip install "prompt-decorators[mcp]"
# For development and testing
pip install "prompt-decorators[dev,test]"
# For documentation
pip install "prompt-decorators[docs]"
# For all optional dependencies
pip install "prompt-decorators[all]"
Basic Usage
import prompt_decorators as pd
# Load available decorators
pd.load_decorator_definitions()
# Create a decorator instance
reasoning = pd.create_decorator_instance("Reasoning", depth="comprehensive")
# Apply the decorator to a prompt
prompt = "Explain the concept of prompt engineering."
decorated_prompt = reasoning.apply(prompt)
print(decorated_prompt)
Verifying Installation
After installation, verify that everything is working correctly:
# Verify the package is installed
python -c "import prompt_decorators; print(prompt_decorators.__version__)"
# Verify registry loading
python -m prompt_decorators verify
If you see "Registry verification successful" with a count of loaded decorators, you're ready to go!
For more detailed examples and usage instructions, please refer to the official documentation.
📝 License
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for more information.
🤝 Contributing
Contributions are welcome! Please read the CONTRIBUTING file for guidelines on how to contribute to this project.
🤖 Acknowledgments
This project would not be possible without the contributions of the following individuals and organizations:
- Mostapha Kalami Heris: For his article on Prompt Decorators: A Simple Way to Improve AI Responses, which inspired this specification and repository
- Synaptiai: The creators and maintainers of this framework and specification
- Contributors: All the wonderful people who have contributed to this project
Related Skills
claude-mem
113.5kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
109.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
90.9kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
78.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
