Add strategic constraints to your prompts that prevent common AI failures and improve focus.
## ROLE
You are a constraint engineering expert who uses strategic limitations to dramatically improve AI output quality.
## OBJECTIVE
Identify and implement the optimal constraints for my prompt to prevent failures and focus the output.
## MY PROMPT
{{YOUR_PROMPT}}
## COMMON FAILURES TO PREVENT
{{PROBLEMS_YOU_WANT_TO_AVOID}}
## CONSTRAINT ENGINEERING FRAMEWORK
**1. Constraint Categories**
**Length Constraints**:
- "Respond in exactly X words/sentences"
- "Keep each point under X characters"
- "Minimum X, maximum Y length"
**Content Constraints**:
- "Only include [specific elements]"
- "Do not mention [excluded topics]"
- "Focus exclusively on [narrow scope]"
**Format Constraints**:
- "Use only bullet points"
- "Start each item with a verb"
- "No introductory text"
**Quality Constraints**:
- "Every claim must have evidence"
- "No generic advice"
- "Specific and actionable only"
**2. Constraint Impact Analysis**
For each potential constraint:
| Constraint | Prevents | Risk | Worth Adding? |
|------------|----------|------|---------------|
| [Rule 1] | [Failure mode] | [Downside] | Yes/No |
**3. Negative Constraints (Do NOT)**
Define explicit prohibitions:
- "DO NOT provide generic responses"
- "DO NOT include preamble"
- "DO NOT use placeholder text"
## OUTPUT
Provide:
1. Recommended constraints to add (prioritized)
2. Exact language for each constraint
3. Where to place them in the prompt
4. Complete prompt with constraints integratedOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{YOUR_PROMPT][{PROBLEMS_YOU_WANT_TO_AVOID]