You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -48,8 +48,6 @@ Apply `/pb-preamble` thinking: challenge your own output before anyone else does
48
48
49
49
## The Surgeon Rule
50
50
51
-
A surgeon doesn't narrate while cutting. Doesn't explain the scalpel. Doesn't add tissue. Doesn't nick adjacent structures.
52
-
53
51
Minimal sufficient. No bloat. No clipping.
54
52
55
53
---
@@ -77,7 +75,7 @@ Some projects enforce this explicitly. Most don't but will judge it. The standar
77
75
78
76
## Horizontal Sweep (External Code Contributions)
79
77
80
-
Before the six lenses, sweep horizontally: does the new code follow existing idioms, or does it introduce new ways of doing old things?
78
+
Before the seven lenses, sweep horizontally: does the new code follow existing idioms, or does it introduce new ways of doing old things?
81
79
82
80
- How does the project parse directives? Use the same parser.
83
81
- How does the project manage slice fields on structs? Add the same lifecycle methods.
@@ -114,6 +112,8 @@ The work must be indistinguishable from what the target maintainer would write t
114
112
- Error wrapping style (project's error package or stdlib?)
115
113
- Import grouping (stdlib / external / internal?)
116
114
115
+
**Exit:** Did you read the target codebase, or match from memory? (Fails when you match from memory — you'll miss convention drift.)
116
+
117
117
### Lens 2: AI Tell Scan
118
118
119
119
Read every line looking for machine patterns. If a line makes you think "a human wouldn't write it that way," rewrite it.
@@ -147,11 +147,14 @@ Read every line looking for machine patterns. If a line makes you think "a human
147
147
- Numbered lists where prose would be more natural
148
148
- Summary at the end restating what was just said
149
149
- Opener repetition across posts (scan last 5 before writing new)
150
+
- Repeated section anatomy — identical beat structure (scene → diagnosis → prescription → close) across N > 1 sections. Break one section's rhythm.
150
151
151
152
**Typography tells:**
152
153
- Em dashes anywhere -- use `--` for internal docs, match project conventions for external output
153
154
- Exotic/unicode symbols -- stick to ASCII
154
155
156
+
**Exit:** Did you flag at least one tell you initially overlooked? (Fails when you've read so much AI output you've normalized the patterns — you literally can't see them anymore.)
157
+
155
158
### Lens 3: Bloat Check
156
159
157
160
Remove anything that doesn't earn its place.
@@ -166,6 +169,10 @@ Remove anything that doesn't earn its place.
166
169
167
170
**The test:** cover each line with your hand. Does removing it lose information? If no, cut it.
168
171
172
+
**The structure test:** scan section openings. If Lens 2 flagged repeated section anatomy, verify you broke at least one section's rhythm. Uniform structure is bloat regardless of who (or what) wrote it.
173
+
174
+
**Exit:** Did you remove anything, or did everything earn its place on first pass? (Fails when attachment to your own prose makes every line feel load-bearing.)
175
+
169
176
### Lens 4: Clipping Check
170
177
171
178
Verify nothing was accidentally removed.
@@ -177,6 +184,8 @@ Verify nothing was accidentally removed.
177
184
178
185
**The test:** diff against the original. For each removed line, confirm it's genuinely unnecessary.
179
186
187
+
**Exit:** Did you diff against the original and confirm every removal? (Fails when the diff is large and you skim instead of checking each line.)
188
+
180
189
### Lens 5: Scope Check
181
190
182
191
The reader built the system. Don't explain their code, their spec, their domain, or their role back to them.
@@ -194,6 +203,8 @@ The reader built the system. Don't explain their code, their spec, their domain,
194
203
195
204
**Why it matters:** Reviewer text that explains a maintainer's own system back reads as outsider, AI-assisted, or condescending -- even when factually correct. The strongest review comments show the bug, the proof, and the fix without restating what the reader built.
196
205
206
+
**Exit:** Did you cut anything that explained the reader's domain back to them? (Fails when you assume the reader needs context you'd find condescending if roles were reversed.)
207
+
197
208
### Lens 6: Register Check
198
209
199
210
Apply project-specific voice guidelines. If the project defines a voice guide or `/pb-voice` has been configured, use those rules. Otherwise, match the register of the target project's existing docs and comments.
@@ -208,24 +219,41 @@ General dev-to-dev register:
**Conversational check:** read the output aloud as if saying it to a colleague over a drink. Mouth the words — silent reading skips what the tongue catches.
223
+
224
+
- Would you actually say this sentence to another human in conversation?
225
+
- Would they check their phone midway through?
226
+
- Does it sound like you typed this live, or like a generated artifact?
227
+
228
+
If the conversational check flags something your eye skipped, the problem is register, not cadence. Fix it here.
229
+
230
+
**Exit:** Would you say every sentence aloud to a colleague without hedging or apologizing? (Fails when you read silently — your eye skips what your tongue would catch.)
231
+
211
232
### Lens 7: Read-Aloud Check
212
233
234
+
This is a detection method, not a problem category. Your eyes skip what your tongue catches — reading aloud surfaces issues the other lenses miss, regardless of what kind of issue it is.
235
+
213
236
Read the output as if speaking it to the maintainer over a call.
214
237
215
238
- Does any sentence feel robotic when spoken?
216
239
- Are sentence lengths varied, or is it mechanical?
217
240
- Does the flow have rhythm, or does it plod?
218
-
- Would you actually say this to a colleague?
219
241
220
242
If it sounds like a press release, rewrite until it sounds like a person.
221
243
222
244
**For conversational artifacts (PR/issue comments, emails, Slack):** beyond spoken rhythm, check the shape. Does it read like someone typed this live, or like a generated review artifact with section headers and bullet padding? Scene-setter up front, specific pointers, flowing prose. Structured submissions (GHSA fields, VRP forms) skip this sub-check -- required sections drive their shape.
223
245
246
+
**Exit:** Did reading aloud catch something silent reading skipped? (Fails when you mutter instead of reading aloud — whispering is still silent reading.)
247
+
248
+
### Final Re-Read
249
+
250
+
Not an eighth lens — a closing sweep. After all seven lenses, re-read the final output once from top to bottom. You changed things. Confirm the fixes didn't introduce new tells. If you find one, fix it and re-read; one clean pass is enough. Don't restart the lens pass.
251
+
224
252
---
225
253
226
254
## Submission Quality Gate (Security Reports)
227
255
228
-
Before any security submission -- GHSA, bounty platform, email -- verify these in addition to the six lenses:
256
+
Before any security submission -- GHSA, bounty platform, email -- verify these in addition to the seven lenses:
229
257
230
258
-**PoC or traced input path.** "I tested this" or "I traced input from annotation to fmt.Sprintf with no sanitization." Code analysis is silver; observable output is gold. Prefer gold.
231
259
-**Realistic scenario.** What does the attacker do, what breaks. State preconditions (RBAC, auth, config).
@@ -237,7 +265,11 @@ Before any security submission -- GHSA, bounty platform, email -- verify these i
237
265
238
266
---
239
267
240
-
## Review Comment Craft
268
+
## Per-Artifact
269
+
270
+
Extensions for specific artifact types that need more than the seven lenses.
271
+
272
+
### Review Comments
241
273
242
274
Before posting any review comment on a PR, issue, or thread, check:
243
275
@@ -293,6 +325,7 @@ Run after work is functionally complete, before presenting externally. Integrate
293
325
-`/pb-review` -- Code review (bugs, logic, tests)
294
326
-`/pb-linus-agent` -- Peer review persona
295
327
-`/pb-commit` -- Commit message quality
328
+
-`/pb-llm-guidelines` -- LLM coding guardrails referenced in Scope Guard
0 commit comments