Token导航 LogoToken导航TokenDH.com
研究检索external-serviceclawhub未标认证来源可访问clear审计通过

slg-cliSLG CLI 搜索

Agent Skill

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

总安装

3,709

周安装

153

GitHub Stars

1

下载量

1,212
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install slg-cli

简介

语义化 Git 历史搜索工具,助力代码考古与变更溯源分析。

  • 适合排查代码引入问题、追踪文件归属或理解提交意图。
  • 通过自然语言查询实现精准定位,提升开发调试效率。
  • 需确认仓库访问权限,避免越权操作或敏感信息泄露。
  • 建议结合项目实际分支结构使用,确保结果准确性。slg-cli 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
slg-git-search
description
Semantic git history search and code archaeology. Use when asked why code exists, who owns a file, what introduced a regression, what changed in a commit range, or whether a change is risky to revert.
version
1.0.0
metadata
openclaw
emoji
🔍
homepage
https://github.com/vrknetha/slg-cli
requires
bins
install
kind
node
package
slg-cli
bins
[slg]
label
Install slg-cli (npm global)

SLG — Semantic Git Search

slg is a local-first CLI that builds a semantic index of your git history (embeddings + BM25) so you can ask natural-language questions about who changed what, why, and when. No API keys required — everything runs offline via ONNX Runtime.

Installation

npm install -g slg-cli
# or run without installing
npx slg-cli <command>

When to Use This Skill

Use slg when the user:

  • Asks why a piece of code exists or was written a certain way
  • Wants to know who is responsible for a file or function
  • Is tracking down what introduced a bug across many commits
  • Needs to understand what changed between two refs or in a range
  • Wants to assess how risky reverting a commit would be
  • Asks about recent activity on a file or directory

Setup

Index must be built once before searching. Run this in the repo root:

slg init

Re-index after significant new commits:

slg reindex

Check index health:

slg doctor

Core Commands

Why does this code exist?

slg why "why does the retry logic use exponential backoff"
slg why "what is the purpose of the connection pool size limit"

Returns ranked commit results explaining the reasoning behind code decisions.

Who owns a file?

slg blame src/auth/middleware.ts
slg blame --top 3 src/payments/

Returns contributors ranked by semantic commit weight for the given path.

Find what introduced a regression

slg bisect "authentication stopped working after the refactor"

Narrows down the range of commits most likely to have introduced an issue using semantic search over the message + diff corpus.

Search commit history semantically

slg log "database schema migrations"
slg log --since 2024-01-01 "API rate limiting changes"
slg log --limit 20 "performance optimizations"

Returns commits ranked by semantic + BM25 relevance. Supports --since, --until, --limit, and --path filters.

Summarize a diff

slg diff HEAD~5..HEAD
slg diff v1.2.0..v1.3.0
slg diff --path src/api/ main~10..main

Generates a semantic summary of what changed across a commit range.

Assess revert risk

slg revert-risk abc1234
slg revert-risk HEAD~3

Scores how risky it would be to revert a given commit based on downstream dependency analysis.

See recent activity

slg status
slg status --path src/

Shows recent indexed commits and index freshness.

MCP Server

slg ships an MCP (Model Context Protocol) server, letting AI agents query git history directly:

slg serve
# or
slg mcp

Configure in your agent:

{
  "mcpServers": {
    "slg": {
      "command": "slg",
      "args": ["serve"]
    }
  }
}

Available MCP tools: slg_why, slg_blame, slg_bisect, slg_log, slg_diff, slg_revert_risk, slg_status.

Tips

  • slg why works best with full-sentence natural language questions
  • slg bisect is most effective when given a behavioral description rather than error text
  • Prefix path filters with --path to narrow any command to a directory or file
  • Run slg doctor if search results seem stale — it reports index coverage and age
  • For large repos (10K+ commits) the initial slg init may take several minutes; subsequent slg reindex calls are incremental and fast

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.86%
按下载量换算1,113

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills