闲社服务运行正常AI智能体自动化平台
g

Greptile仓库管理

技能标识:greptile

Query, search, and manage repositories indexed by Greptile (AI codebase intelligence). Use when asking questions about a codebase, searching for code patterns, indexing repos for Greptile review, or checking Greptile index status. Requires GREPTILE_TOKEN and a GitHub/GitLab token.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.1
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Greptile仓库管理

Greptile 技能

通过 REST API 查询和管理 Greptile 索引的仓库。

设置

所需环境变量:

  • - GREPTILETOKEN — Greptile API 令牌(来自 https://app.greptile.com)
  • GITHUBTOKEN — 具有仓库访问权限的 GitHub PAT(也可设置 GREPTILEGITHUBTOKEN,或通过 gh auth login 进行身份验证——脚本会回退到 gh auth token)

命令

所有命令均使用 scripts/greptile.sh(路径相对于此技能目录解析)。

索引仓库

bash
scripts/greptile.sh index owner/repo [branch] [--remote github|gitlab] [--no-reload] [--no-notify]

默认分支:main。使用 --no-reload 可在已处理时跳过重新索引。

检查索引状态

bash
scripts/greptile.sh status owner/repo [branch] [--remote github|gitlab]

返回:status(已完成/处理中/失败)、filesProcessed、numFiles。

查询代码库(AI 回答 + 来源)

bash
scripts/greptile.sh query owner/repo [branch] 认证是如何工作的? [--genius] [--remote github|gitlab]

  • - --genius — 较慢但更智能的分析(适用于 PR 审查、架构问题)
  • 返回:AI 生成的回答 + 带行号的源文件引用

搜索代码库(仅来源,无 AI 回答)

bash
scripts/greptile.sh search owner/repo [branch] 支付处理 [--remote github|gitlab]

返回:带行号的相关文件、函数和代码片段排名列表。

提示

  • - 在查询/搜索仓库前务必先执行 index。通过 status 确认索引已完成。
  • 对复杂问题(架构、PR 审查上下文、跨文件分析)使用 query --genius。
  • 当只需文件位置而不需要 AI 解释时使用 search。
  • 对于 GitLab 仓库,传递 --remote gitlab。
  • 通过 jq 管道输出以格式化:scripts/greptile.sh query ... | jq .
  • 多仓库查询:包装器不支持;请直接在请求体中包含多个仓库以使用 API。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 greptile-1776420050 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 greptile-1776420050 技能

通过命令行安装

skillhub install greptile-1776420050

下载

⬇ 下载 greptile v1.0.1(免费)

文件大小: 3.21 KB | 发布时间: 2026-4-17 18:53

v1.0.1 最新 2026-4-17 18:53
Fix: declare all runtime requirements (GITHUB_TOKEN, gh CLI) in metadata to match SKILL.md docs
返回顶部