Skip to content

feat(#580): mirror /qa sibling-site scan prompt into /spec planning - #594

Merged
admarble merged 2 commits into
mainfrom
feature/580-feat-spec-mirror-qa-sibling-site-scan-prompt-into-
May 7, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/580-feat-spec-mirror-qa-sibling-site-scan-prompt-into-

Conversation

@admarble

@admarble admarble commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a ### Sibling-site Scan (Conditional) subsection to spec/SKILL.md ## Context Gathering (after ### Feature Branch Context, before ## Verification Method Decision Framework).
  • Trigger: focused AC + a localized fix where the same root-cause pattern likely exists at sibling sites in the same file (≥3 instances of the affected pattern, e.g. regex blocks in pre-tool.sh).
  • Output options scoped to planning-stage choices: (a) Open Question proposing scope expansion, or (b) recommended follow-up issue. Unlike /qa, no NEEDS_VERIFICATION clause — that verdict bucket doesn't apply at spec time.
  • Pointer to feedback_qa_second_look.md included.
  • Mirrored across all three spec/SKILL.md copies; npx tsx scripts/check-skill-sync.ts reports synced spec/SKILL.md — 3/3 match.
  • CHANGELOG entry added under [Unreleased] / ### Changed, directly above the symmetric feat(qa): add sibling-site scan prompt to first-pass /qa verdict checklist #573 /qa entry.

This closes the loop deferred by #573: catching sibling sites at /spec time is strictly cheaper than catching them at /qa time. /spec is the front line; /qa is the safety net.

AC Coverage

AC Description Status
AC-1 "Sibling-site Scan" bullet w/ ≥3 trigger + concrete example ✅ MET
AC-2 check-skill-sync.ts → synced spec/SKILL.md — 3/3 match ✅ MET
AC-3 Two options (Open Question / follow-up issue); no NEEDS_VERIFICATION ✅ MET
AC-4 Pointer to feedback_qa_second_look.md ✅ MET
AC-5 CHANGELOG entry under [Unreleased] / ### Changed, ends (#580) ✅ MET

Test plan

  • npx tsx scripts/check-skill-sync.ts → synced spec/SKILL.md — 3/3 match
  • Grep verifies all required strings: Sibling-site Scan, ≥3, pre-tool.sh, feedback_qa_second_look.md
  • Grep verifies NEEDS_VERIFICATION does NOT appear in the new subsection
  • CHANGELOG entry: 1 source line, ends (#580), under [Unreleased] / ### Changed
  • 3-dir mirror byte-identical (diff -q clean across .claude/skills/, templates/skills/, skills/)

Conflict watch

PR #586 (issue #571) is open against the same four files but spatially non-overlapping (different sections in spec/SKILL.md; different [Unreleased] entries in CHANGELOG.md). Coordinate at merge time per the spec comment.

Closes #580.

Adds a conditional `### Sibling-site Scan (Conditional)` subsection to
`spec/SKILL.md` `## Context Gathering` (after Feature Branch Context, before
Verification Method Decision Framework). Trigger mirrors the /qa mirror:
focused AC + a localized fix where the same root-cause pattern likely
exists at sibling sites in the same file (≥3 instances of the affected
pattern in the same file — e.g. regex blocks in `pre-tool.sh`).

Output options are scoped to planning-stage choices: (a) an Open Question
proposing scope expansion (only when trivially co-located), or (b) a
recommended follow-up issue. Unlike /qa, no `NEEDS_VERIFICATION` clause —
that verdict bucket doesn't apply at spec time. Pointer to
`feedback_qa_second_look.md` included.

Mirrored across all three `spec/SKILL.md` copies (`.claude/skills/`,
`templates/skills/`, `skills/`); `npx tsx scripts/check-skill-sync.ts`
reports `synced  spec/SKILL.md — 3/3 match`. CHANGELOG entry added under
`[Unreleased] / ### Changed` directly above the symmetric #573 entry.

Closes #580.
…-read fixes

Second-pass review after first-pass /qa surfaced 5 actionable gaps in the
new subsection. Tightens wording to remove reader-confusion risk and adds
the planner-output-slot pointers the original draft was missing.

- Gap 1: example phrasing now matches intra-file trigger scope.
  "regex blocks repeated across hook scripts like pre-tool.sh" parsed as
  cross-file despite the binding "in the same file" appearing twice; now
  reads "the regex blocks in pre-tool.sh" per the issue body's literal
  proposal.
- Gap 3: "During plan generation" → "During planning". The former was
  semantically off under the "## Context Gathering" placement (Context
  Gathering precedes plan generation in the /spec flow).
- Gap 4: dropped the meta "Why at /spec time:" paragraph; folded the
  front-line / safety-net framing inline into the existing
  feedback_qa_second_look.md citation paragraph. /qa mirror has no
  equivalent meta paragraph; symmetric reduction.
- Gap 5: added explicit /spec output template slot pointers — option (a)
  cites "## Open Questions", option (b) cites "## Implementation Plan or
  as a separate plan step" — so the planner knows where findings go
  rather than leaving the slot orphaned.
- Gap 7: added one-line guidance for hybrid cases: "When findings mix
  trivial and non-trivial sites, surface each separately."

Net: 3 paragraphs (down from 4); -6 lines across the 3 mirrors.

Gaps 2 (bullet vs subsection) and 6 (placement vs issue-body's
"near Conflict Risk" hint) intentionally not fixed:
- Gap 2: AC-1's "bullet" is colloquial; /qa precedent uses subsection too.
- Gap 6: spec comment Open Question 1 explicitly resolved placement
  with rationale — overriding now would re-litigate the spec.

3-dir mirror sync verified (npx tsx scripts/check-skill-sync.ts →
synced spec/SKILL.md — 3/3 match). All 5 AC literal grep checks still
pass.
@admarble
admarble merged commit 5fd34a9 into main May 7, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(spec): mirror /qa sibling-site scan prompt into /spec planning checklist

1 participant