Skip to content

Research · Benchmark · May 20, 2026

The Prompt Pattern Library, 2026

Twenty-four prompt patterns, A/B-tested against the rubric. Which framings move correctness, regression, and defensibility — and which don't. Effect sizes with confidence intervals, paired results, and adoption rates.

24 patterns · 8,640 paired sessions · v2.6 rubric
Codritium Research

Why this matters

The library of named prompt patterns has grown faster than the evidence that any of them work. Chain-of-thought, persona priming, self-critique, anti-examples — every team has a favored framing, and every team has a story about why it helps. Almost none of those stories are tested against a fixed rubric on production-shaped tasks. We built this benchmark to settle a narrow but useful question: holding the engineer, the task type, and the codebase constant, which prompt patterns actually move the composite rubric score, and by how much?

We test twenty-four patterns. Some are well-known and well-loved. Some are folkloric. Three are patterns we made up to fail, as decoy controls. The point is not to rank them once and walk away — it is to publish a frozen set of effect sizes that other teams can compare against. The full A/B harness, the v2.6 rubric, and the paired-session protocol all sit upstream of this report.

Methodology in one paragraph

Each pattern was tested as a within-engineer A/B: the same engineer attempts two matched tasks from the same category and difficulty band, with one task prompted using the pattern (treatment) and the other prompted without (control). Pattern assignment was randomized at the task level. The engineer did not know which side they were on, though the experienced ones could often guess. Each pattern was run with at least 360 paired sessions across at least 90 distinct engineers. Effects are reported as the difference in composite rubric score on a 0–100 scale, with 95% CIs from a paired bootstrap (10,000 resamples). All sessions were scored on rubric v2.6 with the AI model held constant at a single frozen version for the study window. We pre-registered the patterns, the rubric weights, and the analysis plan in February 2026.

24

Patterns tested

21 pre-registered + 3 decoys

8,640

Paired sessions

360+ per pattern · 318 engineers

11

Significant lifts

p < 0.05, two-tailed, BH-adjusted

+2.4

Median effect size

Rubric points, treatment vs control

The forest plot, read top to bottom

The headline visual sorts every pattern by its effect on composite score. The reference line is zero — anything to its right is a lift; anything to its left is a drag. Confidence intervals that cross zero are noise.

Worked-example pair7.4 (5.9, 8.8)Constraint-first scaffold6.1 (4.8, 7.4)Adversarial-reviewer persona5.3 (4.1, 6.4)Decomposition request4.7 (3.4, 6.0)Pre-mortem step4.4 (3.0, 5.7)Test-first restatement4.1 (2.8, 5.3)Counter-example required3.6 (2.2, 4.9)Self-critique pass3.2 (1.9, 4.4)Cite-the-source clause2.8 (1.6, 4.0)Reflection-then-answer2.4 (1.1, 3.6)Invariant restatement2.1 (0.8, 3.3)Stepwise verification1.7 (0.4, 2.9)Format constraint1.2 (-0.1, 2.4)Senior-engineer persona0.9 (-0.3, 2.1)Plan-then-code0.6 (-0.7, 1.8)Tone constraint0.4 (-0.9, 1.6)Anti-pattern list0.2 (-1.1, 1.4)Politeness opener-0.1 (-1.3, 1.2)Verbosity request-0.4 (-1.7, 0.8)Confidence rating-0.8 (-2.0, 0.4)Roleplay framing-1.2 (-2.4, 0.0)Emotional emphasis-1.6 (-2.9, -0.3)Multi-persona debate-2.1 (-3.3, -0.9)Decoy: 'breathe deeply'-2.4 (-3.7, -1.2)
Effect on composite rubric score, all 24 patterns, sorted descending.n=8,640 paired sessions · 95% CIs from paired bootstrap

Two observations from the plot. First, the top of the chart is the half of the library that earns its place — eleven patterns clear statistical significance after Benjamini-Hochberg adjustment, and the top three deliver lifts large enough to matter at the team level. Second, the bottom is more interesting than the top. Several patterns that show up in every prompt-engineering tutorial — politeness, verbosity, roleplay framing — are statistical noise on this rubric, and three patterns actively harm the score. The decoy "breathe deeply" sits at the bottom as expected; the surprise is that "multi-persona debate" and "emotional emphasis" do worse than the decoy. We did not pre-register a prediction that those would lose; we did pre-register them as patterns we expected to come out near zero.

What categories of pattern dominate

Patterns sort into six categories. The donut shows the share of patterns we tested in each category, not their effect weight — the goal here is to characterize the library, not to weight by performance.

Pattern categories, count of patterns tested.Pre-registered taxonomy, February 2026

The category-level finding is the same one academic prompt-engineering work has been converging on: example-driven patterns and constraint patterns are doing most of the work. The two strongest patterns overall — worked-example pair and constraint-first scaffold — are simply different vehicles for "show the model the shape of the answer." Decomposition patterns are reliably positive but small, which is consistent with the model's general tendency to do its own decomposition when the task is well-specified. Persona patterns are the loudest category in popular guides and the weakest in our data; "senior-engineer persona" produces a +0.9 lift with a CI that crosses zero, and the more elaborate persona framings actively underperform.

Defensibility lift in the top eight

The composite score is the headline, but practitioners often care about a single rubric dimension. We pull defensibility out below — the panel's score on how clearly the engineer can defend the diff in replay — for the top eight patterns by composite effect.

Defensibility-subscore lift, top-eight patterns by composite effect.Paired lift on the defensibility axis (0–25 scale)

The reordering is informative. Adversarial-reviewer persona moves up the defensibility list because the framing seems to teach engineers what a reviewer will ask about, and they answer it before being asked. Decomposition slides down because decomposed code is easier to write but no clearer to explain. The biggest gap between composite-rank and defensibility-rank is on the adversarial-reviewer pattern — third in composite, third in defensibility, but the defensibility lift is disproportionately large relative to its correctness lift. Teams optimizing for review velocity should reach for it first.

The replication problem: adoption is not effect

Engineers replicate the patterns they encounter on Twitter, not the patterns that win on the rubric. The data table below ranks all twenty-four patterns by effect and shows adoption across the previous six quarters. A spiking sparkline next to a low-rank pattern is a tell.

#PatternCategoryEffectpAdoption 6Q
1Worked-example pairExample-driven+7.4<.001
2Constraint-first scaffoldConstraint+6.1<.001
3Adversarial-reviewer personaPersona+5.3<.001
4Decomposition requestDecomposition+4.7<.001
5Pre-mortem stepReflection+4.4<.001
6Test-first restatementConstraint+4.1<.001
7Counter-example requiredAnti-example+3.6<.001
8Self-critique passReflection+3.2<.001
9Cite-the-source clauseConstraint+2.8.002
10Reflection-then-answerReflection+2.4.004
11Invariant restatementConstraint+2.1.011
12Stepwise verificationReflection+1.7.028
13Format constraintConstraint+1.2.091
14Senior-engineer personaPersona+0.9.146
15Plan-then-codeDecomposition+0.6.341
16Tone constraintConstraint+0.4.524
17Anti-pattern listAnti-example+0.2.751
18Politeness openerPersona−0.1.872
19Verbosity requestConstraint−0.4.510
20Confidence ratingReflection−0.8.194
21Roleplay framingPersona−1.2.061
22Emotional emphasisPersona−1.6.014
23Multi-persona debateDecomposition−2.1.002
24Decoy: 'breathe deeply'Reflection−2.4<.001
All 24 patterns, ranked by effect, with six-quarter adoption.Adoption = share of platform prompts using the pattern, quarterly

The most-adopted patterns on the platform are not the most effective. "Reflection-then-answer" — the dominant cousin of chain-of-thought — sits at rank 10, with adoption above sixty percent and a real but modest effect. "Plan-then-code" is rank 15 with an effect indistinguishable from zero and rising adoption. The decoy "breathe deeply" has measurable uptake despite being a control. The mechanism is straightforward — adoption follows social proof, and social proof is uncorrelated with rubric performance on production-shaped tasks. The next time we run the study we will publish the adoption-versus-effect quadrant explicitly.

Adoption shifts across categories

The category-level adoption chart shows the slow migration of platform usage. Persona-heavy prompts dominated 2023 and 2024; reflection patterns took over in 2025; constraint and example-driven patterns are gaining now but from a smaller base.

Share of platform prompts using each pattern category, 2025–2026.Sessions can use multiple patterns; shares do not sum to 1

The migration is healthy. Engineers are slowly moving toward the patterns that work. The lag between effect discovery and adoption shift is on the order of eighteen months, which is roughly the length of one full hiring cycle. We expect the constraint and example-driven shares to keep climbing through 2026.

One pattern, dissected

The worked-example pair is the standout. We zoom in below — a slope chart of the composite score before and after, and a radar of the per-axis lift on the six rubric dimensions.

ControlWith worked-example pairJunior54.164.8Mid62.771.3Senior71.476.9Staff78.681.1
Composite score, control vs treatment, by experience band.n=410 paired sessions · within-engineer A/B

The lift is real at every band, but the slope is steepest at the junior and mid bands. Staff engineers get a +2.5 lift; junior engineers get +10.7. The pattern is doing more to compensate for missing context at the junior level than it is to push experienced engineers further. This is a useful and slightly uncomfortable finding — if you are running a training cohort, the pattern is straightforwardly worth teaching. If you are evaluating senior candidates, you should be aware that the same pattern flattens the distribution and makes band differentiation harder.

Per-dimension lift on the v2.6 rubric.Treatment − control, 0–25 dimensional scale

The radar shows that the pattern is broad-spectrum — every axis improves — but its biggest wins are on defensibility and replay clarity. That is consistent with our read of the mechanism: showing the model a worked example anchors the engineer's own mental model, and when the panel asks them to defend the diff afterward, they have an example to reach for. The smallest lift is on AI-rejection rate, which makes sense — the pattern makes the engineer trust the AI more, not less, which is the right call when the model has good examples to imitate and the wrong call when it does not.

Anti-patterns, named

Three patterns hurt the composite score with confidence intervals that do not cross zero after adjustment. We are naming them so other teams can stop running them. "Emotional emphasis" — prepending or appending phrasing meant to convey urgency or stakes — pulls the score down by 1.6 points, mostly through defensibility and AI-rejection. The mechanism appears to be that engineers under emotional framing rush their replay and accept more AI suggestions on autopilot. "Multi-persona debate" — asking the model to play multiple roles arguing different sides — costs 2.1 points; the diffs are longer, the explanations are more confused, and the panel scores both correctness and replay clarity lower. "Roleplay framing" — wrapping the task in a fictional scenario — comes in at minus 1.2, just outside conventional significance, and we expect it to clear the bar in the next replication. All three patterns are widely circulated in popular prompt-engineering guides. None of them survive a paired A/B against the rubric.

Caveats

Effects are measured on a single AI model version, frozen for the study window; we cannot promise the same ranking on a different model. The A/B is at the prompt level only — we did not test patterns in combination, and the field is full of evidence that pattern interactions are real and non-additive. Engineer skill drowns the effect at the top decile, which is the right way for a rubric to behave but makes per-pattern claims for senior candidates noisier than the table suggests. The benchmark is observational about adoption and experimental about effect; you cannot conclude that any team will see the published lifts if they teach the pattern, because uptake of a pattern in the wild interacts with how it is taught, which we did not vary. Finally, the decoys are limited — three controls is enough to anchor the bottom of the plot but not enough to estimate a true noise floor. The next run doubles the decoy count.

What we'll do next

We re-run this benchmark every six months as part of the rubric versioning cycle. The next cut adds eight patterns we did not have time to pre-register, drops the three patterns whose CIs are clearly in the wash, and switches the composite metric to v2.7 of the rubric — which reweights toward AI-rejection rate and will likely shrink the headline effects across the board. The full per-session data and the pre-registered analysis plan are available for replication. Independent teams who want to test a pattern not in our library can use our paired-session harness; the protocol, randomization code, and bootstrap notebook live in the public methodology repo. Replication is the only way to know what really moves the score.