返回 Skill 列表
extension
分类: 开发与工程无需 API Key

git-performance-issue-investigator

当用户需要通过查找特定的代码变更、识别负责的提交并联系作者来调查Git仓库中的性能问题时,会触发此技能。该技能由涉及查找包含特定变量或代码模式的提交、识别最早的/引入问题的提交、提取作者信息(姓名、电子邮件)以及就性能问题进行沟通的请求触发。它提供了使用git log -S搜索Git历史中特定代码模式、使用git show检索完整提交详情、提取作者元数据以及使用模板生成格式化通信的能力。

person作者: jakexiaohubgithub

Instructions

Overview

This skill investigates performance issues in Git repositories by tracing code changes to specific commits, identifying responsible authors, and generating communications.

Core Workflow

1. Initialize Investigation

  • Identify the target Git repository path in the workspace
  • Confirm the specific code pattern or variable name to search for (e.g., remove_caching_layer)
  • Locate any communication templates in the workspace (e.g., template.txt)

2. Find Introducing Commit

Use git log with the -S flag to search for the earliest commit containing the specified code pattern: