semantic-search

Search codebases by function, purpose, patterns, and file content.

1|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/leviathofnoesia/kraken --skill semantic-search-leviathofnoesia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: semantic-search
Source: https://github.com/leviathofnoesia/kraken/tree/main/src/features/builtin-skills/semantic-search
Command: npx skills add https://github.com/leviathofnoesia/kraken --skill semantic-search-leviathofnoesia

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps developers quickly discover code by its function, purpose, and patterns, addressing the challenge of navigating large codebases where intent is not obvious from text alone.

Core Features & Use Cases

  • Semantic Search: Query code by function, purpose, or concept to locate definitions and usages.
  • Pattern Search: Use regex-like queries to find specific code patterns across files.
  • File Pattern Search (glob): Locate files by naming patterns to map project structure.
  • Code Structure Exploration: Analyze dependencies and data flow to understand architecture and caller relationships.

Quick Start

Start by performing a semantic search such as: semantic-search("authentication flow") Then narrow results with a pattern search: grep("router\.(get|post)", {type: "ts"}) Finally, locate files by pattern: glob("**/auth.ts")

Frequently Asked Questions about semantic-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find function usages and definitions in a large codebase?

You can find function usages and definitions in a large codebase by performing a semantic search to query code by its purpose and then using grep to narrow down specific pattern matches.

What is the best way to search for code by its function rather than exact text?

Searching code by function uses semantic search queries to locate definitions and architectural patterns based on intent and purpose, which is ideal when the exact text is unknown.

Can I locate files by naming patterns across multi-language projects?

You can locate files by naming patterns across multi-language projects using glob searches, which map the project structure and return matching file paths for rapid code understanding.

How do I analyze data flow and dependencies across modules?

You analyze data flow and dependencies across modules by querying code structure and caller relationships, allowing you to understand the architecture without manually tracing each file.

Does semantic search work for navigating large repositories with multiple languages?

Semantic search is applicable to large repositories and multi-language projects, delivering file paths, definitions, and context to help developers quickly discover code across different modules.

What are the limitations of using grep and glob for code structure exploration?

While grep and glob find specific patterns and file names, they lack intent understanding; combining them with semantic search is necessary to fully analyze architectural patterns and data flow.