risk-scorer
diff-first-based skill consuming git_diff, test_results, lint_results to produce risk_score
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- risk-scorer
- description
- diff-first-based skill consuming git_diff, test_results, lint_results to produce risk_score
02 资源文件 1
- 参考文档index.json671 B
03 SKILL.md 正文
Risk Scorer
Guardrails
- timeout: 3min
- require_risk_score
Context
Consumes: git_diff, test_results, lint_results Produces: risk_score Memory: short-term
Output Format
Output: Risk_score
Output a risk score as:
Risk: N/10 — one-sentence justification
Where N is based on:
- 0-3: Low risk (cosmetic, style)
- 4-6: Medium risk (logic, edge cases)
- 7-10: High risk (security, data loss, breaking changes)
Résultat — branche feat/scanner-enricher-bench (2026-03-16)
Risk: 7/10 — Ruptures d'interface publique sur pkg/spec.TargetGenerator et le comportement de GenerateAgentMd, combinées à une surface de changement exceptionnellement large (147 fichiers, 5 nouveaux packages, clients LLM en production), compensées par une couverture de tests solide à 92%+ et 706 tests verts.
Détail par dimension
| Dimension | Score | Justification |
|---|---|---|
| Portée des changements | 8/10 | 147 fichiers, 22 607 insertions, 5 nouveaux packages entiers |
| Changements cassants | 7/10 | TargetGenerator éclatée en 4 interfaces ; DependencyFacet supprimé ; format orchestrateur modifié |
| Couverture de tests | 2/10 | Facteur mitigant — 706/706 tests verts, 92%+ de couverture sur les packages modifiés |
| Nouvelles fonctionnalités | 5/10 | EffortLevel, format subagent, bench framework, scanner/enricher avec clients LLM réels |
| Résultats lint | 1/10 | Facteur mitigant — 103 issues mineures, 0 critique |
Strategy
Approach: diff-first Tools: read_file, grep
Steps
- analyze git diff scope and complexity
- cross-reference with test coverage
- cross-reference with lint severity
- assign risk score (0-10)
Security
- Filesystem: read-only
- Network: none
04 同仓库更多 Skills
identify-root-cause
Identify the root cause of the issue through detailed code examination-based skill consuming code_analysis, issue_description to produce root_cause
generate-code-fix
Generate minimal code changes that resolve the identified issue-based skill consuming root_cause, issue_description to produce code_patch
analyze-code-repository
Systematically analyze repository structure to locate code relevant to the issue-based skill consuming repository, issue_description to produce code_analysis
generate-code-patch
minimal code changes to resolve identified issue-based skill consuming bug_analysis, code_context to produce unified_diff_patch
analyze-bug-root-cause
systematic code analysis to identify root cause-based skill consuming issue_description, code_context to produce bug_analysis
unified-diff-patch-generator
Generate minimal unified diff patches for Python bug fixes-based skill consuming issue_analysis, python_codebase to produce unified_diff_patch