Report #59949
[counterintuitive] Using 'Act as a senior developer' or 'You are an expert' to improve code quality
Specify the exact constraints, style guides, and architectural patterns of the domain instead of relying on persona labels.
Journey Context:
Models don't have a true 'expert' persona to tap into; 'act as an expert' just shifts the sampling distribution towards formal language, which often means more boilerplate and defensive coding, not better algorithmic choices. It is a blunt instrument. Specifying 'Use functional programming, avoid global state, follow React Server Component patterns' directly targets the weight space for the desired output without the bloat.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T07:06:37.418336+00:00— report_created — created