Skip to content

feat(qa): Add smoke test template section for workflow feature changes #254

Closed

Description

@admarble

Summary

Add a standardized smoke test template to the /qa skill for verifying workflow-affecting changes (skills, CLI commands, scripts).

Problem

During QA of #250, smoke testing was performed ad-hoc without a consistent structure. The tests covered:

  • Happy path execution
  • Graceful skip logic
  • Error detection

This pattern should be formalized so future QA reviews include consistent smoke testing for applicable changes.

Proposed Solution

Add new section 6b. Smoke Test (CONDITIONAL) to .claude/skills/qa/SKILL.md:

### 6b. Smoke Test (CONDITIONAL)

**When to apply:** Feature changes workflow behavior (skills, CLI commands, scripts).

**Detection:**
\`\`\`bash
# Detect workflow-affecting changes
skills_changed=\$(git diff main...HEAD --name-only | grep -E "^\.claude/skills/" | wc -l)
scripts_changed=\$(git diff main...HEAD --name-only | grep -E "^scripts/" | wc -l)
cli_changed=\$(git diff main...HEAD --name-only | grep -E "^(src/cli|bin)/" | wc -l)

if [[ \$((skills_changed + scripts_changed + cli_changed)) -gt 0 ]]; then
  echo "Smoke test recommended for workflow changes"
fi
\`\`\`

**Smoke Test Checklist:**
1. **Happy path:** Execute the primary use case
2. **Edge cases:** Test graceful handling (missing deps, invalid input)
3. **Error detection:** Verify errors are caught and reported

**Output Format:**

| Test | Command | Result | Notes |
|------|---------|--------|-------|
| Happy path | \`[command]\` | ✅/❌ | [observation] |
| Edge case | \`[command]\` | ✅/❌ | [observation] |
| Error handling | \`[command]\` | ✅/❌ | [observation] |

**Smoke Test Status:**
- **Complete:** All applicable tests passed
- **Partial:** Some tests skipped or failed (document why)
- **Not Required:** No workflow-affecting changes

Acceptance Criteria

  • AC-1: New section 6b added to /qa SKILL.md after section 6a (Skill Command Verification)
  • AC-2: Detection logic identifies skills, scripts, and CLI changes
  • AC-3: Output template includes command, result, and notes columns
  • AC-4: Smoke test status integrated into verdict determination (Partial → AC_MET_BUT_NOT_A_PLUS)

Related


Created from /reflect session

Activity

  1. added
    documentation
    enhancement
    on Feb 4, 2026
  2. added
    auto-ready
    on Feb 16, 2026
  3. admarble commented on Feb 25, 2026

    @admarble
    ContributorAuthor

    Spec Plan: #254 — Smoke Test Template Section for QA

    AC Checklist

    AC Description Verification
    AC-1 New section 6b added after 6a Manual review of SKILL.md structure
    AC-2 Detection logic for skills, scripts, CLI Verify bash detection snippet
    AC-3 Output template with command/result/notes Verify table format
    AC-4 Smoke test status integrated into verdict Verify verdict algorithm update

    Implementation Plan

    1. Add section 6b "Smoke Test (CONDITIONAL)" to .claude/skills/qa/SKILL.md
    2. Include detection logic, checklist, output format, and status definitions
    3. Integrate smoke_test_status into verdict determination algorithm (Section 7)
    4. Add to output verification checklist

    Recommended Workflow

    Phases: spec → exec → qa
    Skip test: Yes (skill template change only)

  4. admarble commented on Mar 12, 2026

    @admarble
    ContributorAuthor

    Solve Analysis

    Recommended Phases: spec → exec → qa
    Skip Spec: No (enhancement with ACs needs validation)
    Browser Testing: No (skill file changes, not UI)
    Quality Loop: Yes (part of 3-issue chain modifying QA skill)

    Reasoning

    Flags

    Flag Value Reasoning
    -q (quality-loop) ✓ Part of multi-issue chain modifying shared file
    --chain ✓ Shares .claude/skills/qa/SKILL.md with #304, #307
    --qa-gate ✗ Additive sections, low stale risk
    --base ✗ Branching from main
    --testgen ✗ Skill config changes, no unit test ACs

    📝 Generated by /solve

  5. admarble commented on Mar 12, 2026

    @admarble
    ContributorAuthor

    Spec Plan: #254 — Smoke Test Template Section for QA Skill

    AC Checklist with Verification Criteria

    AC Description Verification Test Scenario
    AC-1 New section 6b added after section 6a Manual Test Section appears between 6a (Skill Command Verification) and Section 7 (Verdict)
    AC-2 Detection logic identifies skills, scripts, CLI Manual Test Bash detection snippet correctly flags skills_changed, scripts_changed, cli_changed
    AC-3 Output template has command/result/notes columns Manual Test Table format: `
    AC-4 Smoke test status → verdict integration Manual Test Partial status → AC_MET_BUT_NOT_A_PLUS; Complete/Not Required → no impact

    Implementation Plan

    Phase 1: Add Section 6b

    1. Insert "6b. Smoke Test (CONDITIONAL)" after Section 6a (line 1223)
    2. Add detection logic, checklist, output format, status definitions

    Phase 2: Update Verdict Algorithm

    1. Add smoke_test_status to verification gates (Section 7)
    2. Add verdict rule: Partial → AC_MET_BUT_NOT_A_PLUS

    Phase 3: Update Output Template

    1. Add Smoke Test section with table format

    Phase 4: Update Output Verification Checklist

    1. Add conditional smoke test item

    Derived ACs

    Source AC Priority
    Completeness AC-5: Output Verification checklist updated Medium
    Code Quality AC-6: Detection uses consistent base branch pattern Low

    Scope Notes

    Recommended Workflow

    Phases: spec → exec → qa
    Quality Loop: enabled (chain membership)

    Next Steps

    1. Approve this plan
    2. Run /exec 254 to implement
    3. Run /qa 254 for review
  6. added
    planned
    on Mar 12, 2026
  7. added a commit that references this issue on Mar 12, 2026
    5e9337d
  8. admarble commented on Mar 12, 2026

    @admarble
    ContributorAuthor

    Exec Phase: Progress Update

    AC Coverage

    AC Description Status Evidence
    AC-1 New section 6b added after section 6a ✅ Implemented Section at line 1226 in SKILL.md
    AC-2 Detection logic for skills/scripts/CLI ✅ Implemented Bash detection snippet checks 3 paths
    AC-3 Output template with command/result/notes ✅ Implemented Table format: Test | Command | Result | Notes
    AC-4 Smoke test status → verdict integration ✅ Implemented smoke_test_status in verification gates, Partial → AC_MET_BUT_NOT_A_PLUS

    Derived ACs

    AC Source Description Status
    AC-5 Completeness Output Verification checklist updated ✅ Implemented
    AC-6 Code Quality Detection uses consistent base branch pattern ✅ Implemented (main...HEAD)

    Files Changed

    • .claude/skills/qa/SKILL.md (+62 lines)

    Quality Checks

    Check Status
    Build (npm run build) ✅ Passed
    Lint (npm run lint) ⚠️ Pre-existing warnings on main (not introduced)
    Tests (npm test) ✅ 1511 tests passed

    PR Status

    ✅ PR Created: #348

    Quality Plan Alignment

    N/A - No detailed quality plan in spec comments (straightforward additive change)

    Next Steps

    1. Run /qa 254 for QA review
    2. Merge after QA approval
  9. admarble commented on Mar 12, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #254

    AC Coverage

    AC Source Description Status Notes
    AC-1 Original Section 6b added after 6a ✅ MET Section at line 1226, between 6a (line 1092) and Section 7 (line 1270)
    AC-2 Original Detection logic for skills/scripts/CLI ✅ MET Bash detection snippet checks .claude/skills/, scripts/, and `(src/cli
    AC-3 Original Output template with command/result/notes ✅ MET Table format: `
    AC-4 Original Smoke test status → verdict integration ✅ MET smoke_test_status added to verification gates, Partial → AC_MET_BUT_NOT_A_PLUS

    Coverage: 4/4 AC items fully met


    Quality Plan Verification

    N/A - No quality plan found in spec comments (straightforward additive change)


    CI Status

    Check State Bucket Impact
    validate-skills SUCCESS pass ✅ MET
    validate-plugin SUCCESS pass ✅ MET
    typecheck SUCCESS pass ✅ MET
    build (20.x) FAILURE fail ⚠️ Pre-existing
    build (18.x) CANCELLED cancel N/A
    build (22.x) CANCELLED cancel N/A

    CI Summary: 3 passed, 1 pre-existing failure (lint issue on main), 2 cancelled
    Note: Build failure is pre-existing on main (lint step). This PR only modifies markdown documentation.


    Quality Metrics

    Metric Value Status
    Type issues (any) 0 ✅ OK
    Deleted tests 0 ✅ OK
    Files changed 1 ✅ OK
    Lines added +62 -
    Lines deleted -0 -

    Test Coverage Analysis

    Changed File Tier Has Tests? Test File
    .claude/skills/qa/SKILL.md Optional N/A Documentation file

    Coverage: N/A - Documentation/skill template change only


    Code Review

    Strengths:

    • Clean, well-structured addition following existing skill format
    • Detection logic uses consistent main...HEAD pattern (matching existing patterns)
    • Includes | xargs || true for safe command execution
    • Verdict impact table clearly documents behavior
    • Output template matches existing skill section format

    Issues:

    • None identified

    Suggestions:

    • None - implementation is clean and follows existing patterns

    Skill Command Verification

    Skill files changed: 1

    File Commands Found Verification Status
    .claude/skills/qa/SKILL.md 3 ✅ Passed

    Commands Verified:

    • git diff main...HEAD --name-only | grep -E "^\.claude/skills/" | wc -l | xargs || true → ✅ Works (returns 1)
    • git diff main...HEAD --name-only | grep -E "^scripts/" | wc -l | xargs || true → ✅ Works (returns 0)
    • git diff main...HEAD --name-only | grep -E "^(src/cli|bin)/" | wc -l | xargs || true → ✅ Works (returns 0)

    Verification Status: Passed


    Smoke Test

    Test Command Result Notes
    Detection logic Detection commands from Section 6b ✅ All 3 detection patterns work correctly
    Output template Markdown table format ✅ Follows existing skill section patterns
    Verdict integration Check verdict algorithm ✅ smoke_test_status properly integrated in step 2 and 4

    Smoke Test Status: Complete


    Self-Evaluation

    • Verified working: Yes - detection commands execute correctly, output template is properly formatted
    • Test efficacy: N/A - Documentation/skill template change, no unit tests applicable
    • Likely failure mode: Detection regex might miss edge cases (unlikely - uses standard path patterns)
    • Verdict confidence: High - straightforward additive change with verified commands

    Verdict: READY_FOR_MERGE

    All 4 acceptance criteria are fully met:

    1. Section 6b correctly placed after 6a and before Section 7
    2. Detection logic properly identifies skills, scripts, and CLI changes
    3. Output template includes all required columns
    4. Verdict integration properly gates Partial status to AC_MET_BUT_NOT_A_PLUS

    The implementation is a clean, focused additive change to the QA skill documentation. All shell commands have been verified to work correctly. CI failures are pre-existing on main (lint issues) and unrelated to this markdown-only change.

    Documentation

    • N/A - Internal skill template documentation (not user-facing)

    Next Steps

    1. ✅ Approve and merge PR feat(qa): Add smoke test template section for workflow changes #348
    2. Continue with chain issues QA skill: add stale worktree detection to pre-flight check #304 and feat: CLI wiring completeness — QA verification + exec prevention for new option fields #307 (other QA skill modifications)

    QA completed by /qa skill

  10. added
    ready-for-review
    on Mar 12, 2026
  11. admarble commented on Mar 12, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #254

    PR: #348 | Branch: feature/254-feat-qa-add-smoke-test-template-section-for-workfl
    Files Changed: 1 (.claude/skills/qa/SKILL.md) | Lines: +62 / -0

    AC Coverage

    AC Source Description Status Evidence
    AC-1 Original Section 6b added after section 6a MET Inserted between 6a and Section 7
    AC-2 Original Detection logic identifies skills, scripts, CLI MET Bash detection checks .claude/skills/, scripts/, `(src/cli
    AC-3 Original Output template with command/result/notes columns MET Table format: `
    AC-4 Original Smoke test status integrated into verdict MET smoke_test_status added to verification gates and verdict algorithm

    Coverage: 4/4 AC items fully met

    CI Status

    3 passed, 1 pre-existing failure (build 20.x fails on main too), 2 cancelled. No new CI failures.

    Quality Metrics

    Metric Value Status
    Type issues (any) 0 OK
    Deleted tests 0 OK
    Files changed 1 OK
    Lines added +62 Appropriate

    Code Review

    Strengths:

    • Clean, well-structured addition following existing SKILL.md format
    • All grep commands include | xargs || true for safe execution
    • Verdict impact table clearly documents behavior for all 3 status values
    • Output template section properly placed

    Issues Found: None

    Self-Evaluation

    • Verified working: Yes — detection commands execute correctly
    • Test efficacy: N/A — Markdown skill template
    • Likely failure mode: Detection regex could miss CLI files in non-standard locations
    • Verdict confidence: High

    Verdict: READY_FOR_MERGE

    All 4 acceptance criteria fully met. Clean, focused, additive change. No existing behavior modified. All shell commands include proper error handling.

    Next Steps

    1. Approve and merge PR feat(qa): Add smoke test template section for workflow changes #348
  12. added a commit that references this issue on Mar 12, 2026
    06603ac
  13. admarble commented on Mar 12, 2026

    @admarble
    ContributorAuthor

    Documentation Review Complete

    This issue contains documentation-only changes. No additional documentation generation required.

    Files Modified:

    • .claude/skills/qa/SKILL.md — Added section 6b (Smoke Test template), verdict integration logic, and output format template (+62 lines)

    Changes Summary:

    • Section 6b. Smoke Test (CONDITIONAL) added after section 6a with detection logic for skills/scripts/CLI changes
    • Smoke test output table template with command/result/notes columns
    • Verdict integration — smoke_test_status added to verdict determination algorithm (Partial maps to AC_MET_BUT_NOT_A_PLUS)
    • Output checklist updated to include smoke test verification item

    Status:

    Documentation changes were merged via PR #348 on 2026-03-12.
    No additional documentation generation required — the PR itself was a documentation enhancement to the /qa skill.


    Ready to merge!

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

    auto-readydocumentationenhancementplannedready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions