Agent Skills
› FradSer/dotclaude
› related
related
GitHub通过挖掘 Git 历史,分析指定文件的共变关系,发现历史上经常一起修改的文件和测试套件。用于在代码变更或运行测试前识别耦合代码,辅助开发决策。
Trigger Scenarios
需要确定修改某文件时需同步更新的其他文件
寻找与目标文件相关的测试用例以执行测试
Install
npx skills add FradSer/dotclaude --skill related -g -y
SKILL.md
Frontmatter
{
"name": "related",
"description": "Mines git history to find files and test suites that historically change together with specified target files (co-change relations). Use before making changes or running tests to discover coupled code.",
"allowed-tools": [
"Bash(git-agent:*)"
],
"argument-hint": "[file-path or --tests file-path]",
"user-invocable": true
}
Execution
Execute git-agent related to query co-change relations (offline and read-only):
- Find coupled files:
git-agent related <file-paths...> - Find related tests:
git-agent related --tests <file-paths...> - Structured JSON output:
git-agent related -o json <file-paths...>
Report the historically coupled files and tests to guide code edits and test suite execution.
CLI Reference: ../../references/cli.md
Version History
- 6f2a0b2 Current 2026-08-20 10:58


