界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

related

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.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

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:
    git-agent related <file-paths...>
    
  2. Find related tests:
    git-agent related --tests <file-paths...>
    
  3. 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

我的收藏