semantic-code-search

Semantic search engine for codebases that understands intent and finds functionally similar code. Use when searching code by meaning rather than text, finding similar implementations, discovering duplicate logic, or navigating unfamiliar codebases. Covers AST parsing, embedding generation, similarity search, and intent-based queries.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "semantic-code-search" with this command: npx skills add evezart/semantic-code-search

Semantic Code Search

Find code by meaning, not just text. Search across codebases using natural language intent.

Quick Start

from code_search import CodeIndex, SemanticSearch

index = CodeIndex("/path/to/codebase")
index.build()  # Parse AST, generate embeddings

search = SemanticSearch(index)
results = search.query("how is authentication handled?")
results = search.similar_to("src/auth/login.py:validate_token")

How It Works

  1. Parse — Walk codebase, extract functions/classes with AST
  2. Embed — Generate vector embeddings from code + docstrings
  3. Index — Store in vector index with metadata (file, line, type)
  4. Search — Query by intent or find similar code

Search Types

  • Intent search: "find error handling patterns" → returns matching code
  • Similarity search: Given a function, find others doing the same thing
  • Structural search: Find all functions matching a call pattern
  • Duplicate detection: Find code doing the same thing differently

CLI

python3 scripts/search.py index /path/to/codebase
python3 scripts/search.py query "database connection setup"
python3 scripts/search.py similar src/db/connect.py:10
python3 scripts/search.py duplicates

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Zhipu Tools Coding Plan

智谱 Coding Plan 免费工具:网络搜索、网页读取、GitHub 仓库文档搜索、文件解析、视觉理解(GLM-4.6V)。 优先于内置 web_search 使用,节省配额。视觉理解从 npm 包逆向实现,后续可能收费。

Registry SourceRecently Updated
3780Profile unavailable
Coding

lithtrix-skills-api

Memory Consolidation across vendors, owners, and time. Lithtrix gives AI agents persistent memory, credibility-scored web search, browser fetch, and a shared Commons pool — all under a stable ltx_ key that survives tool switches, session resets, and orchestrator changes. Self-registration in one API call, no dashboard required. manus-explorer by Manus.ai uses it autonomously. Founding period: live/500 agents. MCP: npx lithtrix-mcp. Docs: lithtrix.dev

Registry SourceRecently Updated
1910Profile unavailable
Coding

MagicBrowse

Browser automation fallback through the magicbrowse CLI with goal-driven act as the default primitive and observe/primitives only for recovery on real web pa...

Registry SourceRecently Updated
3440Profile unavailable
Coding

Medication Side Effect Visit Log

Create a clinician-ready timeline and visit brief for possible side effects after a medication or supplement start, stop, or change.

Registry SourceRecently Updated
00Profile unavailable