All rules

R010 PersonaPreamble

Applies to
Rules files (CLAUDE.md, AGENTS.md, .mdc, .cursorrules, Copilot instructions, GEMINI.md, .windsurfrules)
Severity
Info (−1 per finding, max −30)
Summary
The file assigns the agent a persona instead of stating facts.
Flags
"You are / You're / Act as / Behave as / Pretend to be / Imagine you are" followed by a, an, or the and expert, senior, principal, staff, lead, world-class, seasoned, experienced, veteran, elite, 10x, genius, master, guru, ninja, or rockstar within four words. Quoted text and inline code are skipped.
Measured false-positive rate
0% (0 of 14) and 7% (1 of 14), two judges, ruleset v2; rule unchanged since. Methodology

Before

You are a senior .NET engineer who writes clean code.

After

This is a .NET 10 Razor Pages app. Run `dotnet test` before commit.

Fix