Skip to content

fix: /qa should detect templates/scripts changes for verification #109

Closed

Description

@admarble

Summary

The /qa skill checks for scripts/ changes to require execution verification, but doesn't check templates/scripts/. This allowed #103 to pass QA without verification.

Problem

Current detection in /qa (Section 10):

scripts_changed=$(git diff main...HEAD --name-only | grep "^scripts/" | wc -l | xargs)

This misses:

  • templates/scripts/ changes (the canonical script location)
  • Other template files that affect runtime behavior

Proposed Solution

Update the detection pattern:

scripts_changed=$(git diff main...HEAD --name-only | grep -E "^(scripts/|templates/scripts/)" | wc -l | xargs)

Acceptance Criteria

  • /qa detects templates/scripts/ changes
  • Prompts for /verify when template scripts are modified
  • Prevents READY_FOR_MERGE without execution verification for script changes

Files to Modify

.claude/skills/qa/SKILL.md

Related

Activity

  1. admarble commented on Jan 20, 2026

    @admarble
    ContributorAuthor

    📋 Implementation Plan

    Acceptance Criteria with Verification

    AC-1: /qa detects templates/scripts/ changes

    • Verification: Manual test - run detection on branch with only templates/scripts/ changes
    • Test: Given changes in templates/scripts/new-feature.sh, when running detection, then scripts_changed > 0

    AC-2: Prompts for /verify when template scripts are modified

    • Verification: Integration test - run /qa on branch with template script changes
    • Test: Given modifications to templates/scripts/cleanup-worktree.sh, when running /qa, then outputs verification prompt

    AC-3: Prevents READY_FOR_MERGE without execution verification

    • Verification: Integration test - run /qa without prior /verify
    • Test: Given template script changes with no verification evidence, when running /qa, then verdict is NOT READY_FOR_MERGE

    Implementation Steps

    Single file change: .claude/skills/qa/SKILL.md

    Line 430 - Update detection pattern:

    # Current
    scripts_changed=$(git diff main...HEAD --name-only | grep "^scripts/" | wc -l | xargs)
    
    # Proposed
    scripts_changed=$(git diff main...HEAD --name-only | grep -E "^(scripts/|templates/scripts/)" | wc -l | xargs)

    Line 453-454 - Update example comment (optional):

    # Current: QA detects scripts/ changes
    # Proposed: QA detects scripts/ or templates/scripts/ changes

    Assumptions to Validate

    • templates/scripts/ is the canonical location for reusable scripts
    • Other template directories (hooks, memory, settings.json, skills) don't need verification
    • Prompt text remains consistent with existing scripts/ behavior

    Workflow Recommendation

    Phases: exec → qa
    Quality Loop: disabled (single-file pattern fix)


    Plan generated by /spec 109

  2. added
    planned
    on Jan 20, 2026
  3. added a commit that references this issue on Jan 20, 2026
  4. admarble commented on Jan 20, 2026

    @admarble
    ContributorAuthor

    QA Review

    AC Coverage

    AC Description Status
    AC-1 /qa detects templates/scripts/ changes ✅ MET
    AC-2 Prompts for /verify when template scripts are modified ✅ MET
    AC-3 Prevents READY_FOR_MERGE without execution verification ✅ MET

    Coverage: 3/3 AC items fully met

    Quality Metrics

    Metric Value
    Type issues 0
    Deleted tests 0
    Files changed 1
    Diff size +2 / -2

    Verdict: ✅ READY_FOR_MERGE

    Minimal, surgical fix that correctly expands the detection pattern to include templates/scripts/. The change is additive and maintains backward compatibility.


    QA performed by /qa 109

  5. added
    ready-for-review
    on Jan 20, 2026
  6. added a commit that references this issue on Jan 20, 2026
  7. admarble commented on Jan 20, 2026

    @admarble
    ContributorAuthor

    Completed

    The /qa skill now correctly detects templates/scripts/ changes and requires /verify before READY_FOR_MERGE verdict.

  8. added a commit that references this issue on Jan 20, 2026
  9. added 2 commits that reference this issue on Jul 25, 2026
  10. added a commit that references this issue on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plannedready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions