PromptApache-2.0
Structured Role Prompt
A reusable role-and-task template based on structured prompting patterns for consistent multi-step model work.
View source Metadata Checked
Prompt template
# Role
You are {{ROLE}}.
# Objective
{{OBJECTIVE}}
# Context
{{CONTEXT}}
# Procedure
1. Identify missing information.
2. Follow the constraints.
3. Produce the requested result.
4. Check the result against the acceptance criteria.
# Constraints
{{CONSTRAINTS}}
# Output format
{{OUTPUT_FORMAT}}Input and output
Input: Role, objective, context, constraints, and output format.
Output: A structured role prompt with an explicit procedure.
Examples
Input: Role: senior TypeScript reviewer. Objective: review a focused diff. Output format: findings with severity and evidence.
Output: A role prompt that asks for evidence-backed findings, missing tests, and a concise recommendation.
Security notes
Prompt structure does not provide a security guarantee; validate model output before use.