分析 Git 历史,发现"逻辑耦合"(总一起改的文件)和"热点"(高频修改的复杂模块)。基于 Adam Tornhill 的《Your Code as a Crime Scene》方法论。
70
Quality
56%
Does it follow best practices?
Impact
90%
1.45xAverage score across 3 eval scenarios
Optimize this skill with Tessl
npx tessl skill review --optimize ./.trae/skills/git-forensics/SKILL.mdTemporal coupling analysis
Script output format
0%
30%
Noise files excluded
100%
100%
HIGH_COUPLING label
0%
100%
MEDIUM_COUPLING label
0%
100%
File type classification
20%
70%
Build root annotation
100%
100%
History completeness check
0%
100%
Initial activity survey
100%
100%
Actionable recommendations
100%
100%
Architectural decay identification
50%
40%
Without context: $0.4760 · 6m 5s · 17 turns · 129 in / 8,005 out tokens
With context: $1.2606 · 7m 13s · 37 turns · 3,197 in / 16,537 out tokens
Hotspot detection and debt scoring
Hotspot script output fields
100%
100%
debt_score field present
90%
100%
debt_score = churn × max_ccn
0%
100%
max_ccn used
0%
100%
nloc field present
0%
100%
Sorted by debt_score descending
100%
100%
High churn + high complexity = top priority
86%
100%
High churn + low complexity = deprioritize
91%
100%
Analysis period defined
40%
100%
Concrete file example
100%
100%
Without context: $0.4811 · 3m 49s · 18 turns · 137 in / 6,597 out tokens
With context: $1.2676 · 5m 56s · 39 turns · 8,146 in / 12,871 out tokens
Full forensic report with cross-root coupling
Both analyses present
100%
100%
Cross-subsystem section
100%
100%
Cross-subsystem pairs flagged
100%
100%
Build root annotation
100%
100%
Orphan files listed
100%
100%
One-year orphan threshold
0%
100%
Refactoring priority section
100%
100%
Priority matrix applied
60%
100%
Coupling threshold 0.7
37%
37%
Actionable recommendations
100%
100%
Rename distortion awareness
0%
0%
Without context: $1.5171 · 9m 20s · 37 turns · 281 in / 25,269 out tokens
With context: $1.9167 · 10m 40s · 48 turns · 4,378 in / 24,278 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.