Skip to content

feat: Add smoke test step for UI issues in /exec #37

Closed

Description

@admarble

Problem

Build passes but runtime fails for framework-specific issues. Example: AG Grid v35 module registration was broken - npm run build succeeded but the app crashed at runtime.

Current /exec relies on:

  • npm test - catches test failures
  • npm run build - catches compile errors

Neither catches runtime initialization failures, missing module registrations, or framework version incompatibilities.

Proposed Solution

Add optional step 2.1a in /exec for UI issues:

### 2.1a Smoke Test (Recommended for UI issues)

Before writing new code, verify existing code runs:

1. Start dev server: `npm run dev &`
2. Quick browser check at localhost (or configured port)
3. Verify no console errors on page load
4. Kill dev server

**Skip if:** Issue doesn't have `admin`, `ui`, or `frontend` labels

This catches:

  • Missing imports at runtime
  • Module registration issues (AG Grid, etc.)
  • Framework version incompatibilities
  • Environment configuration problems

Acceptance Criteria

  • Add "Smoke Test" step to /exec skill (after 2.1, before 2.2)
  • Only recommend for issues with ui/frontend/admin labels
  • Document what to look for (console errors, crash, blank page)
  • Keep it brief - goal is quick validation, not full testing

Notes

This complements the existing /test phase which does comprehensive browser testing. The smoke test is a quick pre-implementation sanity check.

Priority

Medium - prevents wasted implementation time on broken foundations

Activity

  1. added
    enhancement
    on Jan 9, 2026
  2. admarble commented on Jan 10, 2026

    @admarble
    ContributorAuthor

    /spec Phase 1: Implementation Plan

    Acceptance Criteria with Verification

    AC-1: Add "Smoke Test" step to /exec skill (after 2.1, before 2.2)

    Verification: Manual review of .claude/skills/exec/SKILL.md

    • Section "2.1a Smoke Test" exists between "Re-establish Context" and "Checks-first Mindset"

    AC-2: Only recommend for issues with ui/frontend/admin labels

    Verification: Documentation includes skip condition

    • Test: Issue with admin label → smoke test runs
    • Test: Issue without UI labels → smoke test skipped

    AC-3: Document what to look for (console errors, crash, blank page)

    Verification: Section includes actionable checklist

    • Console errors (red text, stack traces)
    • Module registration failures
    • Blank white page (React crash)
    • Network errors on initial load

    AC-4: Keep it brief - goal is quick validation

    Verification: Section is < 50 lines, takes < 30 seconds to execute

    • No overlap with /test comprehensive browser testing

    Implementation Plan

    Phase 1: Add Smoke Test Section

    1. Insert new section "2.1a Smoke Test" in .claude/skills/exec/SKILL.md

      • Location: After section 2 "Re-establish Context" (~line 125)
      • Before section 3 "Checks-first Mindset" (~line 263)
    2. Content includes:

      • Label-based skip condition (admin, ui, frontend)
      • Quick 6-step verification process
      • "What to look for" checklist
      • Cross-reference to framework-gotchas.md

    Phase 2: Verify Integration
    3. Ensure no conflict with existing allowed-tools
    4. Optional: Add brief note in /test skill for clarity


    Conflict Risk Analysis

    In-flight work: Issue #40 modifies same file
    Risk level: Low - changes target different sections
    Approach: Proceed with implementation; merge conflicts resolvable


    Recommended Workflow

    Phases: exec → qa
    Quality Loop: disabled
    Effort: ~30-40 lines of markdown


    🤖 Generated by /spec phase

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

    @admarble
    ContributorAuthor

    /exec Phase 2: Implementation Complete

    AC Coverage Summary

    AC Status Notes
    AC-1: Add Smoke Test step to /exec ✅ Complete Added section 2.1a after "Re-establish Context", before "Feature Worktree Workflow"
    AC-2: Only recommend for ui/frontend/admin labels ✅ Complete Documented "When to run" and "Skip if" conditions
    AC-3: Document what to look for ✅ Complete Includes: crashes, blank pages, module errors, console errors
    AC-4: Keep it brief ✅ Complete 36 lines (target: <50 lines)

    Files Changed

    • .claude/skills/exec/SKILL.md - Added 36-line smoke test section

    Checks Run

    • ✅ npm test - 236 tests passed
    • ✅ npm run build - TypeScript compilation successful

    PR Status

    Created: #54

    Implementation Details

    The smoke test section includes:

    1. Quick 3-step verification process (start server, curl check, kill)
    2. Clear skip condition for non-UI issues
    3. "What to look for" checklist with common failure modes
    4. Cross-reference to framework-gotchas.md for solutions

    🤖 Generated by /exec phase

  5. admarble commented on Jan 10, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #37

    AC Coverage

    AC Description Status Notes
    AC-1 Add "Smoke Test" step to /exec skill (after 2.1, before 2.2) MET Section "2.1a Smoke Test" added at line 124, between "Re-establish Context" (section 2) and "Feature Worktree Workflow". Placement is logical for pre-implementation validation.
    AC-2 Only recommend for issues with ui/frontend/admin labels MET "When to run" explicitly lists admin, ui, frontend labels. "Skip if" documents backend-only, CLI, docs exemptions.
    AC-3 Document what to look for (console errors, crash, blank page) MET "What to look for" section includes: server crash, blank white page, module registration errors, console errors on load. Cross-references framework-gotchas.md.
    AC-4 Keep it brief - quick validation, not full testing MET 36 lines (target: <50). Clear "< 30 seconds" timing. No overlap with comprehensive /test phase.

    Coverage: 4/4 AC items fully met


    Quality Metrics

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

    Code Review

    Strengths:

    • Clean, focused addition - only modifies the relevant skill file
    • Well-structured documentation with clear steps (1, 2, 3)
    • Actionable "What to look for" checklist with specific failure modes
    • Proper cross-reference to existing framework-gotchas.md for solutions
    • No overlap with existing /test skill (comprehensive browser testing)

    Issues:

    • None identified

    Suggestions:

    • Minor: The section numbering "2.1a" is slightly unconventional (there's no 2.1 or 2.2), but it correctly conveys "a sub-step after section 2 and before section 3"

    Verdict: READY_FOR_MERGE

    All acceptance criteria are met with clean implementation. The smoke test section:

    • Adds value by catching runtime failures that pass build/test (the original problem statement)
    • Is appropriately scoped (quick pre-implementation check vs comprehensive testing)
    • Integrates well with existing skill structure
    • Has valid references to supporting documentation

    Documentation

    • N/A - No README update needed (internal skill enhancement)
    • SKILL.md updated (the implementation itself)
    • N/A - No CHANGELOG entry needed (internal tooling)

    Next Steps

    1. ✅ Ready for merge - no action items
    2. Optional: Run /docs 37 if admin-facing documentation is desired

    🤖 Generated by /qa phase

  6. added
    ready-for-review
    on Jan 10, 2026
  7. 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

    enhancementready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions