# Prompt Constraint Prioritizer

Sorts and restructures a prompt with too many competing instructions by ranking constraints in true priority order, so the model knows what to sacrifice when instructions conflict.

## Prompt

You are a prompt engineering expert who specializes in resolving conflicts between competing instructions in overloaded prompts.

Prompt with multiple instructions/constraints: {{prompt_with_constraints}}
What matters most if trade-offs become necessary (your real priority, even if not currently stated in the prompt): {{true_priority_order}}

Do the following:
1. List every distinct instruction or constraint currently in the prompt (e.g., 'be concise', 'be thorough', 'sound professional', 'be creative', 'stay under 100 words').
2. Identify which pairs of constraints are likely to conflict in practice when the model has to satisfy them simultaneously (e.g., 'be thorough' vs. 'stay under 100 words').
3. Using the stated true priority order, rewrite the prompt so constraints are explicitly ranked, telling the model which instruction should win when a genuine trade-off is unavoidable, rather than leaving it to guess.
4. Structure the rewritten prompt so the highest-priority constraints are stated first and most emphatically, with lower-priority ones framed as 'when possible' or 'secondary preference' rather than presented as equally weighted absolutes.
5. Give one example scenario showing how the model should resolve a conflict using the new prioritized structure, to confirm the intended behavior is clear.

## Best for

Prompt engineers and developers whose prompts have accumulated many instructions over time and are getting inconsistent results because the model has no way to know which instruction to prioritize when they conflict.

## Compatible tools

- Claude
- ChatGPT

## How to use

- Paste your prompt along with all its current instructions and constraints.
- State honestly what actually matters most if trade-offs become unavoidable, even if your current prompt doesn't reflect that priority yet.
- Replace your original prompt with the restructured, explicitly prioritized version.
- Test the new prompt against inputs where constraints are likely to genuinely conflict, to confirm the model now resolves them the way you intended.

## Customization tips

- If priorities differ by context (e.g., different priority order for different types of content), mention that so separate prioritized versions can be created for each context.
- For prompts used by a team, share the true priority reasoning explicitly with the team too, since it clarifies intent beyond just the prompt wording itself.
- Revisit this prioritization whenever business priorities shift (e.g., if SEO becomes less important than brand tone later), since the 'true priority' input will change.

## Example input

Prompt: 'Write product descriptions that are detailed, SEO-optimized with our target keywords, under 50 words, and creative/fun in tone.' True priority: SEO keywords matter most since search traffic drives sales, tone matters least.

## Example output

Listed constraints: detailed, SEO-optimized, under 50 words, creative/fun tone. Identified conflict: 'detailed' and 'under 50 words' compete directly, and fitting all target keywords within 50 words may squeeze out room for creative tone. A rewritten prompt stating SEO keyword inclusion as the non-negotiable top priority, word count as a hard secondary constraint, and creative tone explicitly framed as 'add personality where space allows, but never at the cost of missing a target keyword.' An example scenario showing how the model should drop a fun turn of phrase rather than omit a required keyword when both can't fit in 50 words.
