git-archaeology
仓库创建 2026年6月4日最近提交 2 小时前SkillHot 收录 1 小时前
▸ 精选理由
高效回答历史归属问题,适合回溯 bug 与审计变更来源。
这个 Skill 做什么
提供快速命令与流程,查明某字符串/文件/功能何时被添加、删除或修改。
快速告诉你某个字符串、文件或功能在 Git 历史里什么时候被加进来、改动或删掉,常用一两条命令就能得到答案。遇到要查源码起源、回溯 bug 引入时间或理解变更历史时特别有用。特色是给出可直接运行的“配方”命令,省去手工翻历史的麻烦。
▸ 展开 SKILL.md 英文原文
Fast recipes for answering when/what/why a feature, flag, API, file, or string was added, removed, unflagged, or renamed in git history.
3.9k
Stars
54
Forks
38
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/nubjs/nub/main/.claude/skills/git-archaeology/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/nubjs/nub/main/.claude/skills/git-archaeology/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# git-archaeology Playbook for "when did X land / leave / change?" — get the answer in one command. ## Recipes ### 1. Pickaxe — when a string/symbol entered or left history ```bash # All commits that changed the COUNT of <string> in a path: git log --oneline -S'<string>' -- <path> # First introduction (oldest commit): git log --oneline --reverse -S'<string>' -- <path> | head -1 # Most recent change: git log --oneline -S'<string>' -- <path> | head -1 # Include all branches: git log --oneline --all -S'<string>' -- <path> ``` For an exact symbol, flag string, function name, or config key. `-S` fires when the occurrence count changes. ### 2. Pickaxe by regex / diff content ```bash git
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有