One-click install
npx skills add https://github.com/iyaki/opencode-base-template --skill code-search-iyaki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-search
Source: https://github.com/iyaki/opencode-base-template/tree/main/.agents/skills/code-search
Command: npx skills add https://github.com/iyaki/opencode-base-template --skill code-search-iyaki

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Repomix Code Search helps developers quickly locate symbol definitions (classes, functions, constants, types, or symbols) across a codebase by first generating a representative repository snapshot with Repomix to stdout and using that snapshot as the primary guidance for searches.

Core Features & Use Cases

  • Generate a stdout snapshot with Repomix to anchor searches.
  • Identify symbol definitions (classes, functions, constants, types) efficiently before drilling into files.
  • Use cases include navigating large codebases, monorepos, and refactoring efforts.

Quick Start

Run Repomix with stdout to generate a repository snapshot and search for symbol definitions.

Frequently Asked Questions about code-search

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

FAQPage Schema
How do I locate symbol definitions across a large codebase?

To locate symbol definitions across a codebase, generate a repository snapshot with Repomix to stdout and use it as the primary guidance for searches. This approach identifies classes, functions, constants, and types efficiently before drilling into files.

What is the best way to navigate a monorepo before refactoring?

Navigating a monorepo before refactoring is best done by generating a deterministic stdout repository snapshot with Repomix. This provides a precise contextual map of the actual source files to anchor your code search.

Can I use include or exclude filters when generating a repository snapshot?

Yes, you can use include and exclude filters when generating a repository snapshot with Repomix. These filters are supported to manage large repos effectively by narrowing the scope of the snapshot used for code navigation.

How does generating a repository snapshot help with code navigation?

Generating a repository snapshot helps with code navigation by providing a deterministic stdout output that serves as the primary analysis source. It gives precise context from actual source files to quickly discover classes, functions, constants, and types.

Does Repomix code search work for finding constants and types?

Yes, Repomix code search works for finding constants and types. By generating a representative repository snapshot to stdout, it anchors searches to efficiently identify various symbol definitions across the codebase.

Why should I use a repository snapshot instead of searching files directly?

You should use a repository snapshot instead of searching files directly because it provides a quick, contextual map of the codebase. This deterministic stdout snapshot acts as the primary analysis source, ensuring precise context before diving into individual files.