Repository navigation
Description
Summary
/qa's first-pass review reliably finds AC violations and code-quality issues, but it doesn't reliably catch sibling code in the same file/module that exhibits the same root cause as the bug being fixed but wasn't named in the literal AC. This causes user-visible "any gaps?" follow-ups in workflows where the user has to manually prompt the second look.
Concrete failure (origin)
During /fullsolve 564, the AC named two specific regexes in pre-tool.sh (force-push at L108, git commit at L248). The fix was applied correctly to both, plus the four sibling git commit matches at L228/L260/L287/L298 (caught during /spec). The first-pass /qa declared READY_FOR_MERGE (modulo CI). When the user asked "any gaps?", a manual second-look revealed FOUR more regexes with the same root cause that were never surfaced by /spec OR /qa:
pre-tool.sh:95—sudo|rm -rf /|rm -rf ~|rm -rf $HOME(destructive command guard)pre-tool.sh:101—vercel|terraform|kubectl(deployment guard)pre-tool.sh:130—git reset.*(--hard|origin)(hard-reset guard)pre-tool.sh:170—gh workflow run(workflow-trigger guard)
All four exhibit the same body-content false-positive pattern that the issue described, all in the same file, all amenable to the same one-liner fix. Filed as #570 after the user's nudge — should have surfaced on the first /qa pass.
The relevant memory (feedback_qa_second_look.md) already states the principle ("structured QA biases positive on clean code; adversarial re-read of core logic surfaces real gaps") but the principle didn't fire on the first pass because the QA skill's checklist doesn't explicitly prompt for it.
Proposal
Add a single bullet to .claude/skills/qa/SKILL.md § "Risk Assessment" (or the adjacent "Failure Path & Edge Case Testing" / "A+ Status Verdict" sections) that prompts the sibling-site scan before issuing the verdict:
Sibling-site scan: Before declaring AC met, scan the same file/module for sibling code with the same pattern as the bug being fixed. If sibling sites would exhibit the same root cause but weren't part of the literal AC, surface them in the verdict (as either expanded scope, follow-up issue suggestion, or NEEDS_VERIFICATION note). Don't widen scope mid-PR; do file follow-ups.
Mirror the change across all three skill directories (.claude/skills/qa/, templates/skills/qa/, skills/qa/).
Acceptance Criteria
- AC-1:
.claude/skills/qa/SKILL.mdincludes a "Sibling-site scan" prompt in the verdict-determination phase, with one-line guidance on when to apply it (every PR with a focused AC + a localized fix in a multi-pattern file). - AC-2: Same change mirrored to
templates/skills/qa/SKILL.mdandskills/qa/SKILL.md.npx tsx scripts/check-skill-sync.tspasses. - AC-3: The prompt explicitly says "don't widen scope mid-PR; file follow-up issue" so this doesn't become a scope-expansion incentive.
- AC-4: Existing reference to
feedback_qa_second_look.mdis preserved (don't replace, augment). - AC-5: CHANGELOG entry under
[Unreleased] / ### Changedreferencing this issue.
Non-Goals
- Not widening QA scope to spawn an additional sub-agent or run a full file scan. The prompt is just a reminder added to the existing inline review checklist.
- Not changing the verdict-determination algorithm. Sibling sites that aren't part of the literal AC don't block merge — they get surfaced for follow-up.
- Not automating the scan via grep/regex (false-positive risk). This is a "look at the same file" prompt.
Risks / Open Questions
- Could expand scope on tight-AC PRs. Mitigation is in AC-3: explicit "don't widen mid-PR" guidance. The prompt should produce a follow-up issue, not a scope creep.
- Could become a checkbox that gets ignored. Mitigation: place it in the verdict-blocking section so it's read at the moment the verdict is decided, not earlier in the skill.
- Worth doing in /spec instead of /qa? /spec already has Open Questions and could surface sibling sites earlier (and bug(hooks): pre-tool.sh regexes match inside quoted gh issue/pr body content (line 108 force-push, line 248 git-commit) #564's /spec actually did — Open Question 1 broadened from L260 to all 4 git-commit sites). But /qa is the safety net — even if /spec misses, /qa should catch. Probably do both eventually; this issue covers /qa.
Complexity
simple-fix — one-bullet addition to one section of one skill file, mirrored to 2 other dirs (3 files total). No tests required (skill files are docs).
Self-assessed workflow
spec → exec → qa (skip testgen — docs change). -q omitted (skill mirroring is small + low-risk).
Related
feedback_qa_second_look.md— the principle this proposal operationalizes- bug(hooks): pre-tool.sh regexes for destructive/deployment/reset/workflow commands also match inside quoted gh body content #570 — the gap that surfaced on /fullsolve 564 due to first-pass /qa missing the sibling sites
- bug(hooks): pre-tool.sh regexes match inside quoted gh issue/pr body content (line 108 force-push, line 248 git-commit) #564 / fix(#564): pre-tool.sh regexes skip gh issue/pr body content #566 — the original bug fix that prompted the reflection
- /reflect output (May 2026) — proposal Add Astro stack detection and configuration #5 from the post-/fullsolve 564 reflection
Activity
admarble commentedon May 4, 2026
Assessment
→ PROCEED — Single-bullet docs change to qa/SKILL.md (3-dir mirror), clear ACs
Workflow:
exec → qa⚠ Edits qa/SKILL.md — sequence after #569 if both run (shared file)
admarble commentedon May 4, 2026
Spec — Plan & Verification Criteria
Workflow: spec → exec → qa • Quality loop: disabled • Tier: Standard (5 ACs)
Acceptance Criteria with verification methods
.claude/skills/qa/SKILL.md§5 Risk Assessment (verdict-determination phase). One-line guidance on when to apply: focused AC + localized fix in a multi-pattern file. — Verification: grep + read-throughtemplates/skills/qa/SKILL.mdandskills/qa/SKILL.md;npx tsx scripts/check-skill-sync.tsexits 0. — Verification: script exit codefeedback_qa_second_look.mdincluded in the new bullet. (Note: AC-4 says "preserve existing reference," but a pre-edit grep finds none in any of the three SKILL.md mirrors — interpreting as "augment by adding pointer." Confirm or correct.) — Verification: read-throughCHANGELOG.md[Unreleased] / ### Changedentry referencing feat(qa): add sibling-site scan prompt to first-pass /qa verdict checklist #573. — Verification: grepImplementation plan
qa/SKILL.mdmirrors — read each file before edit (perfeedback_read_each_mirrored_file.md).npx tsx scripts/check-skill-sync.ts; assert exit 0.### Changedone-liner ending(#573).feature/573-feat-qa-add-sibling-site-scan-prompt-to-first-pass.Key decisions
### Changed(augments existing checklist), not### Added— follows PR feat(qa): require detection-pattern verification for skill regex/grep/awk changes #551 precedent.Open questions
feedback_qa_second_look.mdreference exists in any of the threeqa/SKILL.mdfiles — plan augments rather than preserves. OK?Conflict risk
qa/SKILL.md. Both diffs are small and target different sections, but textual conflict is plausible — sequence feat(qa): markdown-only diffs shouldn't gate verdict on pending CI build matrix #569 first if concurrent.admarble commentedon May 4, 2026
/exec — Implementation Complete
PR: #576
AC Coverage
#### Sibling-site Scan (Conditional)subsection in §5 Risk Assessment of all threeqa/SKILL.mdmirrors, with one-line "when to apply" guidance (focused AC + localized fix in multi-pattern file)npx tsx scripts/check-skill-sync.ts→synced qa/SKILL.md — 3/3 match. (Script's overall exit=1 reflects pre-existing drift in unrelated files; verified by stashing this branch.)feedback_qa_second_look.md..." present (augmented; no prior reference existed in any of the three mirrors — confirms spec Open Question 1)[Unreleased] / ### Changedentry ending(#573)Files Changed
.claude/skills/qa/SKILL.md(+8)templates/skills/qa/SKILL.md(+8)skills/qa/SKILL.md(+8)CHANGELOG.md(+1)Total: 4 files, +25 lines.
Quality Plan Alignment
N/A — no quality plan section present in spec comment (skill-docs change, simple-fix tier).
Pre-PR Confidence Check
/qaactually reading and applying §5 before the verdict. Anti-scope-creep clause mitigates the runaway-scope risk; the prompt itself can't enforce attention.Notes
npm run buildandnpm testwould not exercise the change.qa/SKILL.md): feat(qa): markdown-only diffs shouldn't gate verdict on pending CI build matrix #569 is not currently in flight on a different section; if it lands first, this branch may need a trivial rebase.Next Steps
/qa 573(per /assess workflow recommendation:exec → qa)admarble commentedon May 4, 2026
QA Review for Issue #573 (Simple Fix)
Size Gate
AC Coverage
.claude/skills/qa/SKILL.md§5 Risk Assessment with one-line guidance on when to apply#### Sibling-site Scan (Conditional)subsection at L1480, inside §5 Risk Assessment (L1465). When-to-apply line is explicit: "Focused AC + a localized fix in a multi-pattern file."templates/skills/qa/SKILL.mdandskills/qa/SKILL.md;check-skill-sync.tspassesnpx tsx scripts/check-skill-sync.ts→synced qa/SKILL.md — 3/3 match.diff -qbetween all three files produces no output.**Don't widen scope mid-PR; file a follow-up issue instead.**present in all three mirrors.feedback_qa_second_look.mdpreserved (don't replace, augment)[Unreleased] / ### Changedreferencing this issue## [Unreleased]→### Changed, ends with(#573), summarizes the addition and points tofeedback_qa_second_look.md.Coverage: 5/5 AC items fully met
Quality Metrics
any)CI Status
typecheckvalidate-skillsvalidate-pluginPlugin Structure ValidationHooks ValidationSetup Directory Creationbuild (20.x)build (22.x)CI Summary: 6 passed, 2 in progress, 0 failed. No AC is explicitly CI-dependent, but the SKILL rule is "do not give READY_FOR_MERGE if any CI check is still pending" → verdict downgraded to
NEEDS_VERIFICATION.Code Review
Strengths:
.claude/skills/qa/,templates/skills/qa/, andskills/qa/— zero risk of skill divergence (one of the recurring pitfalls flagged in MEMORY.md).#### Skill Change Review (Conditional), sits inside the### Risk Assessmentsubsection of §5 — exactly where the verdict-time prompt will fire (per AC-1's "verdict-determination phase" requirement).NEEDS_VERIFICATIONnote" trichotomy matches the existing verdict vocabulary used throughout SKILL.md.Issues:
Suggestions:
Test Coverage Analysis
.claude/skills/qa/SKILL.mdtemplates/skills/qa/SKILL.mdskills/qa/SKILL.mdCHANGELOG.mdCoverage: N/A — prose-only skill change, no executable surface. Issue body explicitly states "No tests required (skill files are docs)."
Anti-Pattern Detection
No code changes; no anti-pattern surface.
Skill Command / Detection Pattern Verification
gh,npm,npx,git) added or modified by the new bullet. The bullet is pure prose guidance.grep/awk/jq/sedcommands or regex literals introduced. The bullet explicitly disclaims grep-based automation. The literal string "Don't automate via grep" inside the new prose is not itself a pattern definition.Risk Assessment
/qaruns actually execute the sibling-site scan; this is a behavioral prompt with no enforcement loop. Acceptable per the issue's Non-Goals.Adversarial re-read (sibling-site scan applied to this very change)
The change introduces a sibling-site-scan prompt; the adversarial question is whether the prompt itself should appear in additional locations within
/qaSKILL.md. Reviewed:/specalso have it? — explicitly out-of-scope per the issue's Risks section ("this issue covers /qa"). Filing in /spec is left as future work.No additional sibling sites for the prompt itself were missed in this PR.
CHANGELOG Verification
[Unreleased]entry### Changed(#573), action verb, references underlying principle file)Verdict: NEEDS_VERIFICATION
All 5 ACs are MET, three-way mirror is in sync, CHANGELOG is correctly slotted, and the change is a faithful, scope-respecting implementation of the issue's proposal. The only reason this is not
READY_FOR_MERGEis the strict SKILL.md rule that pending CI checks forceNEEDS_VERIFICATION:build (20.x)andbuild (22.x)are still IN_PROGRESS at QA time. All completed checks (typecheck, validate-skills, validate-plugin, hooks-validation, setup-directory-creation, plugin-structure-validation) are SUCCESS, and the diff is markdown-only, so build failure is not expected.Once
build (20.x)andbuild (22.x)complete with SUCCESS, this isREADY_FOR_MERGEwith no further changes required.Documentation
(#573)under## [Unreleased]/### Changed)Next Steps
build (20.x)andbuild (22.x)to finish on PR feat(#573): /qa sibling-site scan prompt in §5 Risk Assessment #576. If both succeed, no re-run of/qais needed — verdict converts toREADY_FOR_MERGE./docs 573before merge if admin-facing documentation is desired (likely N/A — this is a workflow/internal-skill change, not an admin feature)./specmirror of this prompt (the issue's Risks section flags it as eventual work).admarble commentedon May 4, 2026
QA Review (Re-verification) for Issue #573
Re-running
/qaafter CI completed. Prior pass returnedNEEDS_VERIFICATIONsolely becausebuild (20.x)andbuild (22.x)wereIN_PROGRESS. Both are nowSUCCESS.CI Status
build (20.x)build (22.x)typecheckvalidate-skillsvalidate-pluginPlugin Structure ValidationHooks ValidationSetup Directory CreationCI Summary: 8/8 passed.
AC Coverage (unchanged from prior pass)
#### Sibling-site Scan (Conditional)subsection inside### 5. Risk Assessmentof all threeqa/SKILL.mdmirrors; when-to-apply line is "Focused AC + a localized fix in a multi-pattern file."diff -qbetween all threeqa/SKILL.mdfiles produces no output.npx tsx scripts/check-skill-sync.tsreportssynced qa/SKILL.md — 3/3 match. (Script's overall exit≠0 reflects pre-existing drift in unrelated files; this PR's files are clean.)**Don't widen scope mid-PR; file a follow-up issue instead.**present in all three mirrors.feedback_qa_second_look.mdis referenced by the new bullet. Note: pre-edit grep finds no prior reference in any of the three mirrors, so the implementation augments-by-adding rather than augments-existing. Spec Open Question 1 confirmed this interpretation.[Unreleased] / ### Changedentry closes with(#573).Coverage: 5/5 AC items fully met.
Sibling-site Scan (applied to this very change)
The change introduces a sibling-site-scan prompt; the adversarial question is whether the same prompt should also appear elsewhere in
qa/SKILL.md(or elsewhere in the workflow):/spec— the issue's own Risks section explicitly defers this to future work ("this issue covers /qa"). Out of scope for this PR.No additional sibling sites for the prompt itself were missed.
Quality Metrics
any)Self-Evaluation
diff -q, placement confirmed inside §5 Risk Assessment,check-skill-sync.tsconfirmsqa/SKILL.mdis in sync 3/3.Verdict: READY_FOR_MERGE
All 5 ACs MET, all 8 CI checks passed, three-way mirror is byte-identical, CHANGELOG correctly slotted, and the change is a faithful, scope-respecting docs-only edit.
Next Steps
/docs 573is N/A — internal workflow/skill change, not admin-facing.fix(#573): close gap-fix items from /qa adversarial pass
feat(#573): /qa sibling-site scan prompt in §5 Risk Assessment (#576)
Merge origin/main into feature/575-...
feat(#580): mirror /qa sibling-site scan prompt into /spec planning (#…
docs(#689): Approach B also fails; recommend descoping backtest to La…
docs(#689): backtest infeasible (both approaches fail) — recommend de…
feat(#580): mirror /qa sibling-site scan prompt into /spec planning