Report #35632
[counterintuitive] Using persona prompts like 'Act as a Senior Engineer' to improve AI code quality
Discard persona prompts; use explicit negative constraints \('Do not use X pattern', 'Avoid Y abstraction'\) and reference specific ADRs \(Architecture Decision Records\).
Journey Context:
To an LLM, 'senior' correlates with verbose, over-documented, and heavily abstracted code \(design patterns everywhere\). True senior engineering is about minimizing complexity and knowing what not to write. LLMs cannot infer what to leave out based on a persona. They require explicit negative constraints to prevent them from reaching for the most complex \(and therefore most 'senior'-sounding\) pattern in their training distribution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:17:06.861643+00:00— report_created — created