一键导入
qa-risk-analyzer
Risk-based testing prioritization with impact analysis for code changes using the formula Risk = Complexity × ChangeFrequency × (1 - TestCoverage).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Risk-based testing prioritization with impact analysis for code changes using the formula Risk = Complexity × ChangeFrequency × (1 - TestCoverage).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Master skill coordinating all QA skills through pipeline modes (full-cycle, docs-only, testcases-only, write-tests, report), formalized handoff chains, scheduler rules, and framework/language selection based on project context.
QA project memory with auto-update. Structured log of bugs, decisions, tests, regressions, environments. Automatically updated after every QA task. Archive system with searchable index for large projects. Trigger phrases (EN): "initialize memory", "init qa memory", "find known bug", "search memory", "show what was done", "check regressions", "memory status", "archive memory", "log a bug", "add decision", "memory summary", "what bugs do we know", "update memory", "show test log". Trigger phrases (UA): "ініціалізувати пам'ять", "знайти відомий баг", "пошук у пам'яті", "показати що було зроблено", "перевірити регресії", "статус пам'яті", "архівувати пам'ять", "залогувати баг", "додати рішення", "зведення пам'яті", "які баги відомі", "оновити пам'ять", "показати лог тестів", "що ми вирішили про", "які тестові середовища є".
Analyze OpenAPI/Swagger spec (JSON or YAML) against existing test files and generate an HTML coverage report with QA automation tasks. Use when user provides an OpenAPI spec file and wants to know test coverage status.
Generate accessibility tests for WCAG 2.2 compliance using axe-core, Pa11y, and Lighthouse with automated checks for ARIA patterns, keyboard navigation, color contrast, and screen reader support.
Manage and formalize API contracts from existing endpoints, swagger/JSON, network traffic, or developer interviews into OpenAPI specifications.
Autonomously explore live web applications using Playwright MCP to collect page structure, form fields, validation rules, API endpoints, and user flows for test case generation.
| name | qa-risk-analyzer |
| description | Risk-based testing prioritization with impact analysis for code changes using the formula Risk = Complexity × ChangeFrequency × (1 - TestCoverage). |
| output_dir | reports/risk |
| dependencies | {"recommended":["qa-coverage-analyzer"]} |
Risk-based testing prioritization and impact analysis for code changes. Calculate risk scores per feature/module, rank testing effort, and produce actionable recommendations using the formula:
Risk = Complexity × ChangeFrequency × (1 - TestCoverage)
Risk = Complexity × ChangeFrequency × (1 - TestCoverage)
See references/risk-factors.md for calculation methods.
| Factor | Source | How to Obtain |
|---|---|---|
| Code complexity | Cyclomatic complexity, coupling | SonarQube, ESLint complexity, radon (Python) |
| Change frequency | Git history | git log --follow per file; commits per module |
| Test coverage | Coverage reports | qa-coverage-analyzer (Istanbul/JaCoCo/coverage.py) |
| Defect history | Past bugs per module | Memory MCP, Jira/issue tracker |
| Business criticality | Stakeholder input | Manual tagging or config; payment, auth, core flows |
Analyze git diff to determine:
See references/impact-analysis.md for git diff patterns and mapping strategies.
# Risk Matrix — [Branch/Release]
## Summary
| Module/Feature | Risk Index | Complexity | Change Freq | Coverage | Recommendation |
|----------------|------------|------------|-------------|----------|-----------------|
| [Name] | X.XX | H/M/L | H/M/L | X% | [Action] |
## Prioritized Test Execution
1. [High risk] — [Module] — [Tests]
2. [Medium risk] — [Module] — [Tests]
3. [Low risk] — [Module] — [Tests]
## Heatmap
[Quadrant: Complexity × ChangeFrequency, color = coverage]
| Need | Skill | Usage |
|---|---|---|
| Test coverage data | qa-coverage-analyzer | Code coverage per module |
| Risk quadrant chart | qa-diagram-generator | Heatmap, quadrant visualization |
| Test cases for modules | qa-testcase-from-docs, qa-testcase-from-ui | Map tests to modules |
| Risk matrix patterns | qa-test-strategy | references/risk-matrix.md |
Can do (autonomous):
Cannot do (requires confirmation):
Will not do (out of scope):
| Symptom | Likely Cause | Fix |
|---|---|---|
| Risk scores all similar | Factors not normalized | Normalize to 0–1 scale; use relative ranking |
| Missing coverage data | qa-coverage-analyzer not run | Run coverage first; use 0 if unavailable |
| Change frequency zero | New files, no git history | Use complexity + criticality only; flag as "new" |
| Module mapping fails | Unclear file→module mapping | Use directory structure, package.json, or config |
| Heatmap too dense | Too many modules | Group by feature; show top N by risk |
| Defect history empty | Memory MCP not populated | Proceed without; note "no defect history" |
| Topic | Reference |
|---|---|
| Risk factor calculation | references/risk-factors.md |
| Git diff impact analysis | references/impact-analysis.md |