Report #38405
[counterintuitive] Prefixing prompts with 'Act as a senior engineer' or 'You are an expert' to improve output quality
Specify concrete constraints, standards, and context \(e.g., 'write code compliant with OWASP ASVS', 'optimize for p99 latency'\) instead of assigning personas.
Journey Context:
Persona prompting helped early models by activating specific latent spaces in their training data. Modern models are post-trained with RLHF to be highly capable regardless of persona. 'Act as an expert' often backfires, leading to verbose, condescending, or stereotyped outputs \(e.g., starting with 'As an expert, I...'\) rather than technically superior code. Specifying constraints directly alters the objective function of the generation, forcing the model to optimize for actual engineering metrics rather than performing a role.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:56:16.273778+00:00— report_created — created