kao273183/qa-claude-skill/smoke-test-analyzer

Claude Code and agent skill by kao273183/qa-claude-skill

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Analyze existing automated tests (iOS + Android) to select which should run in Daily Smoke CI. Scans unit and UI tests across both platforms, scores each for smoke suitability, classifies into tiers (PR Smoke / Daily / Release / Manual), and generates CI configurations (.xctestplan for iOS, Gradle filters for Android). Use whenever the user mentions 'smoke test', 'daily test', 'CI test selection', 'which tests should run daily', 'optimize CI', 'test plan config', 'flaky test analysis', or wants to curate which automated tests belong in the daily smoke suite. Also trigger when discussing CI pipeline optimization or test execution time budgets.

Install

npx vskill@latest install kao273183/qa-claude-skill/smoke-test-analyzer

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as kao273183/qa-claude-skill/smoke-test-analyzer.

smoke-test-analyzer

⚙️ Read [`modules/config-loader.md`](./modules/config-loader.md) first.
If mode = markdown-only, output reports to local .md instead of Google Sheet.
💡 第一次聽到 T0/T1/T2/T3 分層? 先看 `concept-zh.md` 中文入門導讀(5 分鐘搞懂「為什麼不該每次 PR 都跑全部測試」)。

Analyze existing automated tests to curate the optimal Daily Smoke subset for CI. Supports iOS and Android.

Why This Matters

Running all tests on every CI trigger is wasteful. A well-tiered test suite catches 90% of regressions in 10% of the time by running the right tests at the right frequency.

Test Tiers

TierWhenTime BudgetWhat Belongs Here
T0: PR SmokeEvery PR< 3 minCritical path, zero flakiness tolerance
T1: Daily SmokeDaily cron< 10 minCore business logic + key UI flows
T2: ReleasePre-release< 60 minFull regression, edge cases, slow tests
T3: ManualOn-demandUnlimitedExploratory, visual, accessibility
Time budgets adjustable via config.smoke.time_budgets.

Platform Detection

Auto-detect based on project files:

  • iOS: *.xcodeproj, {ProjectName}Tests/, {ProjectName}UITests/, *.xctestplan
  • Android: build.gradle(.kts), src/test/, src/androidTest/

If both detected, analyze both and produce a cross-platform summary.

可從 config.platforms.{ios,android}.test_dirs 自訂掃描目錄。

4-Phase Execution

Phase 1: Scan & Inventory

Collect all test files and count methods per file.

iOS: Scan {ProjectName}Tests/, {ProjectName}UITests/, internal Swift package Tests/ dirs. Count @Test and func test*. Read existing *.xctestplan to understand current CI membership.

Android: Scan app/src/test/, app/src/androidTest/. Count @Test. Check Gradle test tasks and CI workflows for current configuration.

Output an inventory table:

PlatformFileMethodsType (Unit/UI)Current CI Plan
Phase 2: Smoke Suitability Scoring

Score each test file on 5 weighted criteria (1-5 scale). See `references/scoring-heuristics.md` for detailed signals and examples.

CriteriaWeightHigh Score (5)Low Score (1)
Criticality30%Login, Home, PaymentCosmetic, edge case
Speed25%Pure logic, < 1sI/O dependent, > 10s
Stability25%Deterministicsleep(), timing-dependent
Independence10%No shared stateSingletons, ordering
Coverage Value10%High-traffic pathRarely-used feature

Tier assignment by score:

  • >= 4.0 → T0 | 3.0-3.9 → T1 | 2.0-2.9 → T2 | < 2.0 → T3
Phase 3: Classification & Recommendation

Present scored results grouped by tier, per platform. Include:

  • T0/T1/T2/T3 tables with file, methods, score, rationale
  • Cross-platform summary (tier counts + method counts per platform)
  • Flaky risk report (flagged tests with issue + fix suggestion)

Ask user to review and adjust before generating configs.

Phase 4: Generate CI Configuration

Based on user-confirmed tiers, generate platform-specific configs.

Output per platform:

  1. CI test configuration file (.xctestplan or Gradle config)
  2. CI workflow snippet (GitHub Actions yaml)
  3. Flaky test fix recommendations

If both platforms, also generate a Google Sheet (4 tabs: Summary / iOS Detail / Android Detail / Flaky Report). Upload target: {{GDRIVE_QA_FOLDER_ID}}/CI Smoke Plan/.

Markdown-only mode: write .claude/testing/ci-smoke/report.md and per-platform *.md reports instead of Sheet.

Quality Checks

  • Every T0 test must be deterministic (no sleep, no timing dependency)
  • T0+T1 total < 10 min per platform (依 config.smoke.time_budgets)
  • No T0 test depends on network or external service
  • Existing CI coverage not regressed (T2 tests still run somewhere)
  • Same core business flows covered on both platforms

When to Re-run

  • New test files added (monthly or per-feature)
  • Flaky tests identified in CI logs
  • CI execution time exceeds budget
  • After test-automation generates new scripts

Config Dependencies

KeyPurposeIf missing
platforms.{ios,android}.test_dirsTest scan directoriesUse defaults
smoke.time_budgetsT0/T1/T2 minute budgetsDefault 3/10/60
smoke.scoring_weightsOverride 5-criterion weightsUse defaults
google.qa_tc_folder_idSheet upload targetMarkdown only
mode = markdown-onlyWhole skill modeNo Sheet output

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kao273183/qa-claude-skill/smoke-test-analyzer/badge)](https://verified-skill.com/skills/kao273183/qa-claude-skill/smoke-test-analyzer)

Something wrong with this skill or its page? Tell us.