返回顶部
g

greptileGreptile仓库管理

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
安全检测
已通过
717
下载量
免费
免费
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

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部