Skill: rizperdana/semantic-grep (version 1.0.0)

# semgrepll - Local Semantic Code Search ## Description Local semantic grep using embeddings - 100% offline capable with llama.cpp, ONNX, and Ollama backends. Use when searching code semantically, finding code by meaning, or indexing projects for AI-powered search. ## Triggers - "search code semantically" - "find code by meaning" - "semantic grep" - "index project for search" - Commands: semgrep index, semgrep search ## Actions - Index projects: `semgrep index /path/to/project` - Search: `semgrep search "query"` - List: `semgrep ls` - Remove: `semgrep rm <project>` ## Environment Variables (optional) | Variable | Default | Description | |-----------|---------|-------------| | EMBED_BACKEND | auto | Backend: llama, onnx, ollama | | LLM_MODEL_PATH | - | Path to GGUF model (llama.cpp) | | ONNX_MODEL_PATH | auto | Path to ONNX model | | SEMGREP_BACKEND | auto | Storage: sqlite, lance | | EMBED_MODEL | mxbai-embed-large-v1 | Embedding model | ## Installation ```bash pip install semgrepll # Optional: ONNX support pip install semgrepll[onnx] ``` ## Examples - "Index my project for semantic search" → runs `semgrep index ./project` - "Find authentication code" → runs `semgrep search "authentication"` - "Search for payment processing" → runs `semgrep search "payment processing"` ## Requirements - Python 3.10+ - One of: llama-cpp-python, onnxruntime, or Ollama running locally ## Notes - 100% offline - no external API calls - Auto-detects fastest available backend - Embeddings cached for fast re-indexing

path: README.md
content: # semgrepll - AI Agent Semantic Code Search Skill

Local semantic code search skill for AI coding agents. 100% offline capable.

## Supported Agents

| Agent | Config File | Install Command |
|-------|-------------|------------------|
| OpenClaw | clawhub.yaml | Via ClawHub skill registry |
| Claude Code | installers/claude_code.md | `pip install semgrepll` |
| Cursor | installers/cursor.json | `pip install semgrepll` |
| OpenCode | installers/opencode.json | `pip install semgrepll` |
| KiloCode | installers/kilo.json | `pip install semgrepll` |
| Windsurf | installers/windsurf.json | `pip install semgrepll` |
| Codex | installers/codex.json | `pip install semgrepll` |

## Quick Install (all agents)

```bash
pip install semgrepll
```

## Usage

```bash
# Index a project
semgrep index ./my-project

# Search semantically  
semgrep search "authentication"

# List indexed
semgrep ls
```

## Environment Variables

- `EMBED_BACKEND` - Backend: auto, llama, onnx, ollama
- `SEMGREP_BACKEND` - Storage: auto, sqlite, lance
- `LLM_MODEL_PATH` - Path to GGUF model (llama.cpp)
- `ONNX_MODEL_PATH` - Path to ONNX model

## For OpenClaw

Use ClawHub to install:
```bash
clh skill install semgrepll --token clh_kGzZkmMzlFFQOG7wuuZRMFmZkmlrelVNUrbZ1LvR0xA
```

Or manually copy SKILL.md to your skills folder.


path: clawhub.yaml
content: name: semgrepll
description: Local semantic code search - 100% offline capable with llama.cpp, ONNX, and Ollama backends
version: 1.3.1
author: Ayre
repository: https://github.com/rizperdana/semgrepll

trigger_keywords:
  - semantic search
  - semantic grep
  - semgrep
  - search code by meaning
  - find code semantically
  - index project for search

commands:
  - semgrep

install:
  - pip install semgrepll
  - pip install semgrepll[onnx]  # Optional: ONNX support

env_vars:
  EMBED_BACKEND: auto
  SEMGREP_BACKEND: auto

examples:
  - intent: Index project
    command: semgrep index ./myproject
  - intent: Search code
    command: semgrep search "authentication"
  - intent: List projects
    command: semgrep ls


path: installers/claude_code.md
content: # semgrepll for Claude Code

## Installation
```bash
pip install semgrepll
```

## Usage in Claude Code

Use semgrepll when you need to:
- Search code semantically (find by meaning, not just keywords)
- Index a project for AI-powered search
- Find related code across a codebase

### Commands
```bash
# Index a project
semgrep index ./my-project

# Search semantically
semgrep search "authentication logic"

# List indexed projects
semgrep ls
```

### Environment (optional)
```bash
export EMBED_BACKEND=auto    # llama, onnx, or ollama
export SEMGREP_BACKEND=sqlite # or lance for large projects
```

## Example Prompts
- "Index this project with semgrepll"
- "Find all authentication-related code using semgrep"
- "Search for payment processing logic semantically"


path: installers/codex.json
content: name: semgrepll
description: Local semantic code search
install: pip install semgrepll

path: installers/opencode.json
content: {
  "name": "semgrepll",
  "description": "Local semantic code search",
  "install": "pip install semgrepll",
  "env": {
    "EMBED_BACKEND": "auto"
  },
  "commands": {
    "index": "semgrep index",
    "search": "semgrep search"
  }
}


path: installers/kilo.json
content: {
  "name": "semgrepll",
  "description": "Local semantic code search",
  "install": "pip install semgrepll",
  "env": {
    "EMBED_BACKEND": "auto"
  }
}


path: installers/cursor.json
content: {
  "name": "semgrepll",
  "description": "Local semantic code search - 100% offline",
  "version": "1.3.1",
  "repository": "https://github.com/rizperdana/semgrepll",
  "pypi": "semgrepll",
  "install": {
    "type": "pip",
    "package": "semgrepll"
  },
  "env": {
    "EMBED_BACKEND": "auto",
    "SEMGREP_BACKEND": "sqlite"
  },
  "commands": {
    "index": "semgrep index <path>",
    "search": "semgrep search <query>",
    "list": "semgrep ls"
  }
}


path: installers/windsurf.json
content: {
  "name": "semgrepll",
  "description": "Local semantic code search - offline capable",
  "install": "pip install semgrepll",
  "config": {
    "embed_backend": "auto",
    "semgrep_backend": "sqlite"
  }
}


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)