Skip to main content

related

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.

来源信息

仓库
FradSer/dotclaude
最近来源活动
2026年8月11日 09:08
检测到的 SKILL.md 语言
英语
星标
593
分支
50

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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.
user-invocable
true
argument-hint
[file-path or --tests file-path]
allowed-tools
["Bash(git-agent:*)"]
## Execution Execute `git-agent related` to query co-change relations (offline and read-only): 1. **Find coupled files**: ```bash git-agent related <file-paths...> ``` 2. **Find related tests**: ```bash git-agent related --tests <file-paths...> ``` 3. **Structured JSON output**: ```bash 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`
在 GitHub 查看