Skip to content
Back to skills

Embedding Search

ASecurity

<!-- SPDX-FileCopyrightText: 2025-2026 CodeNib Contributors

  • 86 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 26, 2026
ai-agentsnode

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 26, 2026

npx -y skills add sysevol-ai/CodeNib --skill embedding_search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Embedding Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Embedding Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sysevol-ai-embedding-search/badge)](https://www.skillsdirectory.com/skills/sysevol-ai-embedding-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
<!--
SPDX-FileCopyrightText: 2025-2026 CodeNib Contributors

SPDX-License-Identifier: Apache-2.0
-->

# Embedding Search

## When to Use

Embedding search performs semantic retrieval using vector embeddings. It
understands the *meaning* of code, not just the literal tokens. Choose this
skill when:

- The query describes intent or concepts rather than exact identifiers
  (e.g. "function that validates user credentials", "error handling logic").
- You need to find code that is functionally similar to the query even when
  it uses different naming conventions.
- You want to search at different granularity levels -- file-level skeletons
  (`l0`) or individual functions/methods (`l2`).
- Recall on conceptual queries matters more than raw speed.

## When NOT to Use

- **Exact identifier lookups**: If you know the precise name (`parse_config`,
  `UserModel`), use `bm25_search` -- it is faster and more precise for
  literal matches.
- **Structural pattern matching**: Use the `grep` default tool for file-glob
  or regex-based filtering.
- **Maximum coverage**: When you need both keyword precision and semantic
  recall, prefer `hybrid_search`.

## Parameters

| Name | Type | Default | Description |
|------|------|---------|-------------|
| `query` | `str` | *(required)* | Natural-language or code-like search query. |
| `top_k` | `int` | `20` | Maximum number of results to return. |
| `level` | `str` | `l2` | Retrieval granularity: `l0` for file skeletons, `l2` for functions/methods. |
| `return_content` | `bool` | `true` | Include source code content in results. |
| `score_threshold` | `float` | `null` | Minimum similarity score cutoff. |
| `mask_name` | `str` | `null` | Restrict search to a named subset of node IDs. |

## Output

Returns `List[QueriedNode]` -- ranked code nodes with similarity scores and
optional source content.

Files in this skill

  • config.yaml1 KB
  • executor.py1.8 KB
  • skill.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…