用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/AZANIR/qa-skills --skill qa-changelog-analyzer命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | qa-changelog-analyzer |
| description | Analyze git diff and commit history to recommend which tests to add, update, or run based on code changes. |
| output_dir | reports/changelog |
Analyze code changes (git diff, commit history, branch comparisons) to determine testing impact. Map changed files to modules/components, identify affected tests, and produce actionable recommendations: tests to run (regression scope), tests to update (if source changed), and tests to add (if new code uncovered).
git diff --cached), committed (git diff HEAD~1..HEAD), or between branches (git diff base..HEAD)references/git-analysis-patterns.md)| Change Type | Action | Recommendation |
|---|---|---|
| New files | Need new tests | Add unit/integration tests; flag for qa-task-creator |
| Modified files | Check existing coverage | Run existing tests; update if assertions/source diverged |
| Deleted files | Remove/update related tests | Remove obsolete tests; update imports in remaining tests |
| Renamed/moved files | Update imports in tests | Fix import paths; run affected tests |
| Config changes | Validate environment | Run env-specific/smoke tests; verify config loading |
See references/impact-mapping.md for mapping strategies.
# Change Impact Report — [Branch/PR/Commit]
## Summary
| Change Type | Count | Modules Affected |
|-------------|-------|------------------|
| Added | N | [list] |
| Modified | N | [list] |
| Deleted | N | [list] |
## Regression Scope
### Must Run (High Impact)
- [test file paths]
### Should Run (Medium Impact)
- [test file paths]
### Optional (Low Impact)
- [test file paths]
## Task Suggestions
- **Add:** [new modules/files needing tests]
- **Update:** [tests that may need assertion/import updates]
- **Remove:** [obsolete tests for deleted code]
| Need | Skill | Usage |
|---|---|---|
| Create tasks from recommendations | qa-task-creator | Pass task suggestions for add/update/remove |
| Coverage data for mapping | qa-coverage-analyzer | Which tests cover changed files |
| Risk prioritization | qa-risk-analyzer | Combine with risk scores for regression order |
| Git diff patterns | — | references/git-analysis-patterns.md |
| Impact mapping | — | references/impact-mapping.md |
Can do (autonomous):
Cannot do (requires confirmation):
Will not do (out of scope):
| Symptom | Likely Cause | Fix |
|---|---|---|
| No changed files | Wrong diff range or branch | Verify git diff range; check branch names |
| Module mapping empty | Unclear structure | Use directory convention; add impact-mapping config |
| Too many tests in scope | Broad imports or coverage | Narrow to direct tests first; use risk prioritization |
| Missing coverage data | qa-coverage-analyzer not run | Use path/import mapping as fallback |
| Renamed files not detected | Git rename detection off | Use git diff -M or --find-renames |
| Config changes missed | Only tracking source files | Include config paths in analysis (e.g. .env, config/) |
| Topic | Reference |
|---|---|
| Git diff parsing, file-to-module mapping | references/git-analysis-patterns.md |
| Mapping code changes to test recommendations | references/impact-mapping.md |