Xpersona
S

Skill

CLAWHUB · Unverified

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 ran... Skill: Skill Owner: venki0552 Summary: 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 ran... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-04T01:15:57.398Z | auto Initial release of slg-git-search - Introduces a local-first semantic search CLI for git history analysis. - Supports natural language queries

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17d6jcfkzsp1x83tva2zt6hyd847gz9:slg-cli
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-venki0552-slg-cli/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

7,115 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

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:
        - slg
    install:
      - id: npm-global
        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

```bash
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:

```bash
slg init
```

Re-index after significant new commits:

```bash
slg reindex
```

Check index health:

```bash
slg doctor
```

## Core Commands

### Why does this code exist?

```bash
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?

```bash
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

```bash
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

```bash
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

```bash
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

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

Scores how risky it would be to revert a given commit based o

_meta.json

{
  "ownerId": "kn71avp3mbwc3d2x1gns395qy9846hej",
  "slug": "slg-cli",
  "version": "1.0.0",
  "publishedAt": 1775265357398
}

skill-card.md

## 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.

This skill is ready for commercial/non-commercial use.

## Publisher:

[venki0552](https://clawhub.ai/user/venki0552)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to investigate git history with the local slg CLI, including code rationale, ownership, regression origins, commit history, diff summaries, and revert risk.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill installs and can run an unpinned npm package.

Mitigation: Review the package before use, pin the slg-cli version, and prefer a project-local or sandboxed install over a global install.

Risk: The CLI indexes repository git history, which may include sensitive material.

Mitigation: Avoid indexing repositories whose history contains sensitive data unless a local semantic index is acceptable for that environment.

## Reference(s):

- [slg-cli homepage](https://github.com/vrknetha/slg-cli)
- [ClawHub skill page](https://clawhub.ai/venki0552/skills/slg-cli)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown with inline shell commands and JSON configuration examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May describe local CLI commands and MCP server configuration for repository history analysis.]

## Skill Version(s):

1.0.0 (source: frontmatter and release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Skill and adjacent AI workflows.