Persona + expertise prompting turns generic reviews into senior-engineer code audits

JafarNajafov · x · 2026-10-13

Part 1 of a context-engineering series: give the model a specific role, years of experience, named skills and communication style, and it activates different reasoning. The screenshot shows a 'senior frontend engineer, 12 years' persona auditing React code far beyond generic feedback: useEffect deep clones on every state change, broken useMemo deps, O(n) includes → Set, duplicate IDs in selectAll, inline style objects, missing React.memo — each with fixes.

Original post →

More from coding & agent

coding & agent channel →