技能 testing-qa
📦

testing-qa

安全

設置綜合測試 QA 工作流程

此技能提供結構化的測試和 QA 工作流程,涵蓋單元測試、整合測試、E2E 測試、瀏覽器自動化以及生產就緒軟體的品質閘道。

支援: Claude Codex Code(CC)
📊 69 充足
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「testing-qa」。 Use @testing-qa to design testing strategy

預期結果:

  • 以下是您專案的綜合測試策略:
  •  
  • ## 階段 1:測試策略
  • - 定義測試範圍和目標
  • - 選擇測試框架(Jest、pytest、Playwright)
  • - 設置測試基礎設施
  • - 規劃測試涵蓋率(目標:80%+)
  •  
  • ## 測試金字塔
  • - 單元測試:70%(快速,專注於單元)
  • - 整合測試:20%(服務互動)
  • - E2E 測試:10%(關鍵使用者路徑)

正在使用「testing-qa」。 Use @testing-qa to create E2E tests

預期結果:

  • 我建議使用 Playwright 進行 E2E 測試。以下是工作流程:
  •  
  • 1. 安裝 Playwright:npm init playwright@latest
  • 2. 設定瀏覽器自動化
  • 3. 為關鍵路徑撰寫測試腳本
  • 4. 設置視覺回歸測試
  • 5. 設定平行執行

安全審計

安全
v1 • 2/25/2026

This skill is a documentation-only markdown file describing a testing and QA workflow bundle. The static analyzer flagged backtick syntax in markdown as potential shell commands, but this is a false positive. The file contains no executable code, no network requests, and no system access. All 67 detected patterns are false positives from markdown documentation.

1
已掃描檔案
232
分析行數
3
發現項
1
審計總數

高風險問題 (3)

False Positive: External Command Detection
Static analyzer flagged backtick syntax in markdown as shell commands. The skill is a documentation file with skill references and prompt templates using markdown backticks, not executable code.
False Positive: Cryptographic Algorithm Detection
Static analyzer detected 'weak cryptographic algorithms' at various lines. The file contains no cryptographic code - these are false positives from pattern matching.
False Positive: Screen Capture Detection
Static analyzer flagged '@screenshots' reference as 'screen capture upload'. This is a legitimate testing skill reference for visual regression testing.
審計者: claude

品質評分

38
架構
100
可維護性
87
內容
50
社群
75
安全
83
規範符合性

你能建構什麼

設置測試基礎設施

使用此工作流程為新專案建立綜合測試策略,包括單元測試、整合測試和 E2E 測試。

自動化瀏覽器測試

使用 Playwright 和截圖工具實作網頁應用程式的瀏覽器自動化和視覺回歸測試。

建立品質閘道

定義品質閘道,包含程式碼檢查、程式碼審查、安全掃描和生產部署前的驗證步驟。

試試這些提示

設計測試策略
Use @testing-qa to design a comprehensive testing strategy for my project. I need to cover unit tests, integration tests, and E2E tests.
實作單元測試
Use @testing-qa to help me write unit tests. I want to cover JavaScript with Jest and Python with pytest.
建立 E2E 測試
Use @testing-qa to create end-to-end tests using Playwright. I need to test critical user paths.
設置品質閘道
Use @testing-qa to define quality gates for my project. Include linting, code review, security scanning, and test coverage requirements.

最佳實務

  • 遵循測試金字塔:優先考慮單元測試(70%)勝過整合測試(20%)和 E2E 測試(10%)
  • 使用品質閘道在部署前強制執行測試涵蓋率閾值
  • 自動化視覺回歸測試以自動捕捉 UI 變更

避免

  • 跳過單元測試而只進行 E2E 測試(緩慢且脆弱)
  • 設定不切實際的測試涵蓋率目標而未考慮測試維護
  • 在品質閘道中忽略安全掃描

常見問題

什麼是測試金字塔?
測試金字塔是一個指導測試分佈的概念:70% 單元測試(快速、專注)、20% 整合測試(服務互動)和 10% E2E 測試(關鍵使用者路徑)。
此技能會運行測試嗎?
不,這是一個工作流程文件技能,提供指導並引用其他可執行測試的技能。
支援哪些測試框架?
工作流程引用 JavaScript(Jest/Vitest)、Python(pytest)、用於 E2E 的 Playwright 以及各種其他測試工具。
如何與 CI/CD 整合?
使用品質閘道階段在您的 CI 流程中設定程式碼檢查、測試執行、安全掃描和驗證步驟。
什麼是品質閘道?
品質閘道是程式碼繼續進行前必須通過的檢查點,包括測試涵蓋率、程式碼檢查、安全掃描和程式碼審查批准。
我可以將此用於效能測試嗎?
是的,階段 6 涵蓋效能測試,並引用效能工程和剖析技能。

開發者詳情

檔案結構

📄 SKILL.md