code-search-selector

Automate code search strategy selection for multi-file codebase investigations.

2|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/tianzecn/myclaudecode --skill code-search-selector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-search-selector
Source: https://github.com/tianzecn/myclaudecode/tree/main/plugins/code-analysis/skills/code-search-selector
Command: npx skills add https://github.com/tianzecn/myclaudecode --skill code-search-selector

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires claudemem, and includes references (resource) components.

What problem does it solve?

This Skill acts as a gatekeeper, automatically routing semantic search instead of bulk reads when planning investigations.

Core Features & Use Cases

  • Semantic Gate: detect when semantic search is appropriate.
  • De-risks Reads: prevents inefficient file reads for complex queries.
  • Decision Support: suggests when to index and search.

Quick Start

Before bulk reads, trigger claudemem search for a semantic query describing the task.

Frequently Asked Questions about code-search-selector

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

FAQPage Schema
How do I avoid reading too many files when investigating a large codebase?

Semantic search gates automatically route complex investigations through indexed search rather than bulk file reads. This prevents bias toward reading files directly and improves understanding across multiple files by prioritizing semantic relevance over proximity.

When should I use semantic search instead of direct file reads?

Use semantic search for audits, investigations, or tasks spanning three or more files. The gate detects these scenarios automatically and triggers before read operations, ensuring you search by meaning rather than file names or direct access patterns.

How does the decision process work for choosing a code search strategy?

A stepwise decision process uses keyword-based triggers to detect investigation-type prompts, then routes queries to semantic indexing via claudemem. This mandatory gate ensures consistent, bias-free strategy selection before any file access occurs.

What's the relationship between semantic search gates and claudemem indexing?

Semantic gates integrate with claudemem to index codebases and route queries to semantic search. The gate acts as a decision layer that determines when indexing is appropriate and directs queries to indexed search rather than native read tools.

Can semantic search gates reduce inefficiency in codebase audits?

Yes. By detecting when audits or broad investigations are needed, the gate prevents inefficient bulk reads and routes queries through semantic search, delivering faster and more accurate results for complex codebase analysis.