Token导航 LogoToken导航

Agent Skill · 研究检索

git-ai-search(git ai 搜索)

git-ai-search 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

git-ai-search 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 40,546。

总安装 1,273周安装 52GitHub Stars 1,689下载 408核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:git-ai-search(git ai 搜索)
来源仓库:https://github.com/git-ai-project/git-ai
仓库路径:skills/git-ai-search
安装命令:
npx skills add https://github.com/git-ai-project/git-ai --skill git-ai-search
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/git-ai-project/git-ai --skill git-ai-search

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

git-ai-search 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于 Git 或 AI 相关信息的检索与筛选任务。通过 npx skills add 命令从 GitHub 仓库安装,需确认权限与维护状态。

使用前建议核实是否会触发联网、命令执行或文件读写操作。可结合原始 README 进一步验证具体用法和功能边界。

来源仓库内路径:skills/git-ai-search

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/git-ai-project/git-ai --skill git-ai-search;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

git-ai-search 怎么安装?

在终端执行 npx skills add https://github.com/git-ai-project/git-ai --skill git-ai-search。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

git-ai-search 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

git-ai-search 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/git-ai-project/git-ai --skill git-ai-search 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

git-ai-search 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

git-ai-search 用的人多吗?

公开数据是累计安装 1,273 次,近一周安装 52 次,下载 408 次,GitHub 1,689 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

git-ai-search 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 来源仓库有 1,689 星,维护活跃度相对可查。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
git-ai-search

git ai 搜索 · 本页

1,2731,689执行命令未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Git AI Search Skill

Search and restore AI conversation context from git history using git-ai search and git-ai continue.

Overview

Git AI tracks AI-generated code and the conversations that produced it. This skill helps you:

  • Search - Find AI prompt sessions by commit, file, pattern, or author
  • Continue - Restore AI session context to continue work where someone left off
  • Show - View the full transcript of a specific prompt

When to Use Each Command

You want to...Use...
See what AI context exists for a commitgit-ai search --commit <sha>
See AI context for specific linesgit-ai search --file <path> --lines <range>
Read the full AI conversationgit-ai search --commit <sha> --verbose
Get machine-readable outputgit-ai search --json
Find prompts mentioning a topicgit-ai search --pattern "keyword"
Continue someone's AI sessiongit-ai continue --commit <sha>
Continue working on a code regiongit-ai continue --file <path> --lines <range>
Launch Claude with restored contextgit-ai continue --commit <sha> --launch
View a specific prompt transcriptgit-ai show-prompt <id>

Workflow Patterns

1. Investigate a Commit

Understand what AI assistance was used in a specific commit:

# See a summary of AI sessions in the commit
git-ai search --commit abc1234

# View the full conversations
git-ai search --commit abc1234 --verbose

# Get JSON for programmatic processing
git-ai search --commit abc1234 --json | jq '.prompts | keys[]'

2. Understand a Code Region

Find what AI sessions contributed to specific lines:

# Search by file
git-ai search --file src/main.rs

# Search specific lines
git-ai search --file src/main.rs --lines 100-150

# Multiple line ranges
git-ai search --file src/main.rs --lines 50-75 --lines 200-250

3. Continue Someone's Work

Pick up where a teammate left off:

# See what they were working on
git-ai search --commit abc1234 --verbose

# Restore context and continue in your shell
git-ai continue --commit abc1234

# Or launch directly into Claude Code
git-ai continue --commit abc1234 --launch

# Or copy context to clipboard to paste elsewhere
git-ai continue --commit abc1234 --clipboard

4. Review a Pull Request

Understand AI involvement in a PR:

# Get all commits in the PR
COMMITS=$(gh pr view 123 --json commits -q '.commits[].oid')

# Search each commit
for sha in $COMMITS; do
  echo "=== $sha ==="
  git-ai search --commit $sha
done

# Or search the full range
BASE=$(gh pr view 123 --json baseRefOid -q '.baseRefOid')
HEAD=$(gh pr view 123 --json headRefOid -q '.headRefOid')
git-ai search --commit $BASE..$HEAD

5. Audit AI Involvement in a File

See all AI sessions that touched a file:

# Full file history
git-ai search --file src/auth/login.rs

# Filter by author
git-ai search --file src/auth/login.rs --author "Alice"

# Filter by tool
git-ai search --file src/auth/login.rs --tool claude

6. Search by Topic

Find prompts discussing specific topics:

# Search prompt content
git-ai search --pattern "authentication"
git-ai search --pattern "error handling"

# Combine with filters
git-ai search --pattern "refactor" --tool cursor

7. Pipe to Other Tools

Integrate with scripts and workflows:

# Get prompt IDs only
git-ai search --commit abc1234 --porcelain

# Count matches
git-ai search --file src/main.rs --count

# JSON for processing
git-ai search --commit abc1234 --json | jq '.prompts[] | {tool, model, author: .human_author}'

# Find commits with AI-authored code
git log --oneline | while read sha msg; do
  count=$(git-ai search --commit $sha --count 2>/dev/null || echo "0")
  if [ "$count" != "0" ]; then
    echo "$sha ($count sessions): $msg"
  fi
done

Command Reference

git-ai search

Search for AI prompt sessions by various criteria.

git-ai search [OPTIONS]

Context Source (pick one):

  • --commit <rev> - Search a specific commit (or range with sha1..sha2)
  • --file <path> - Search by file path
  • --lines <range> - Filter to line range (requires --file, repeatable)
  • --pattern <text> - Full-text search in prompt content
  • --prompt-id <id> - Look up specific prompt by ID

Filters (combinable):

  • --author <name> - Filter by human author (substring match)
  • --tool <name> - Filter by tool (claude, cursor, etc.)
  • --since <date> - Only prompts after date
  • --until <date> - Only prompts before date

Output Format (pick one):

  • (default) - Human-readable summary
  • --json - Full JSON output
  • --verbose - Detailed output with full transcripts
  • --porcelain - Machine-readable prompt IDs only
  • --count - Just the count of matching prompts

git-ai continue

Restore AI session context for continuation.

git-ai continue [OPTIONS]

Context Source (pick one, or none for TUI):

  • --commit <rev> - Continue from a commit
  • --file <path> - Continue from a file
  • --lines <range> - Limit to line range (with --file)
  • --prompt-id <id> - Continue specific prompt

Agent Selection:

  • --agent <name> - Target agent (claude, cursor; default: claude)
  • --tool <name> - Alias for --agent

Output Mode (pick one):

  • (default) - Print formatted context to stdout
  • --launch - Spawn agent CLI with context
  • --clipboard - Copy context to clipboard
  • --json - Output as structured JSON

Options:

  • --max-messages <n> - Limit messages per prompt (default: 50)

git-ai show-prompt

Display the full transcript of a specific prompt.

git-ai show-prompt <prompt_id> [OPTIONS]
  • --json - Output as JSON
  • --raw - Show raw internal format

Output Formats

Default Output

Human-readable summary:

Found 2 AI prompt session(s) for commit abc1234

[1] Prompt a1b2c3d4 (claude / claude-sonnet-4)
    Author: Alice
    Files: src/main.rs:10-50

[2] Prompt e5f6g7h8 (cursor / gpt-4)
    Author: Bob
    Files: src/lib.rs:100-150, src/utils.rs:20-30

--json Output

Full structured data for programmatic use:

{
  "source": {
    "sha": "abc1234",
    "author": "Alice",
    "date": "2025-01-15",
    "message": "Add authentication"
  },
  "prompts": [
    {
      "id": "a1b2c3d4",
      "tool": "claude",
      "model": "claude-sonnet-4",
      "author": "Alice",
      "messages": [...]
    }
  ]
}

--verbose Output

Full conversations inline:

=== Session 1: Prompt a1b2c3d4 ===
Tool: claude (claude-sonnet-4)
Author: Alice

**User**:
Help me implement user authentication...

**Assistant**:
I'll help you implement authentication. Here's my approach...

--porcelain Output

One prompt ID per line (for scripting):

a1b2c3d4
e5f6g7h8

--count Output

Just the number:

2

Tips

Combining Filters

Filters use AND semantics - prompts must match ALL specified filters:

# Claude prompts by Alice in the last 7 days
git-ai search --commit HEAD~10..HEAD --tool claude --author "Alice" --since 7d

Using with Git Commands

Combine with git log to explore history:

# Find commits with high AI involvement
git log --oneline --since="1 week ago" | while read sha msg; do
  git-ai search --commit $sha --count 2>/dev/null
done

# Search AI context for files changed in a commit
git diff-tree --no-commit-id --name-only -r abc1234 | while read file; do
  git-ai search --file "$file"
done

Restoring Context for Different Agents

The --agent flag controls context formatting:

# For Claude Code
git-ai continue --commit abc1234 --agent claude --launch

# For other tools, copy to clipboard
git-ai continue --commit abc1234 --clipboard

Inspecting Specific Prompts

If search returns many results, drill down:

# Get the IDs
git-ai search --commit abc1234 --porcelain

# View a specific one
git-ai show-prompt a1b2c3d4

Performance Tips

  • Use --commit for fastest results (direct note lookup)
  • --file requires blame computation (slower for large files)
  • --pattern searches the database (fast substring match)
  • Add --count first to check result size before verbose output

Examples

Quick checks

# Any AI in this commit?
git-ai search --commit HEAD --count

# What tools were used?
git-ai search --commit abc1234 --json | jq '.prompts[].tool' | sort -u

# Who used AI in this file?
git-ai search --file src/main.rs --json | jq '.prompts[].author' | sort -u

Detailed exploration

# Full context of the most recent AI session
git-ai search --commit HEAD --verbose | head -100

# Continue the exact session that wrote these lines
git-ai continue --file src/main.rs --lines 50-100 --launch

Integration with CI/CD

# In a PR check, report AI involvement
PROMPT_COUNT=$(git-ai search --commit $PR_HEAD --count 2>/dev/null || echo "0")
if [ "$PROMPT_COUNT" -gt 0 ]; then
  echo "This PR includes $PROMPT_COUNT AI-assisted session(s)"
  git-ai search --commit $PR_HEAD
fi

平台分布

Codex

38.32%
按下载量换算156

Claude

29.47%
按下载量换算120

Cursor

17.04%
按下载量换算70

Gemini CLI

9.15%
按下载量换算37

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/git-ai-project/git-ai --skill git-ai-search 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills