code-search-efficient

Community

Find exact code fast, with fewer tokens.

AuthorJoeCP17
Version1.0.0
Installs0

System Documentation

What problem does it solve?

코드 분석과 탐색 과정에서 불필요한 검색 범위로 토큰을 낭비하거나, 부정확한 매칭으로 오탐을 겪는 문제를 줄여 정확한 “어디서/어떻게/누가 쓰는지”를 더 빨리 찾아주고 정리하게 합니다.

Core Features & Use Cases

  • AST 기반 구문 검색 우선 (ast-grep/sg): 정규식보다 짧고 정확한 구조적 매칭으로 메서드/호출/패턴 사용처를 찾습니다.
  • 도구 선택 결정 트리: Java는 LSP 우선, 구조적 매칭은 sg, 단순 텍스트는 Grep(ripgrep), 파일명/확장자 필터는 fd 등 상황에 맞게 최적 조합을 안내합니다.
  • 토큰 절약 워크플로우: 먼저 카운트/파일 목록으로 규모를 파악하고, 큰 파일은 documentSymbol로 컨텍스트 폭발을 피하며, 필요 시 /tmp에 결과를 저장해 읽기 범위를 통제합니다.
  • 리팩토링까지 확장 (sg --rewrite): 대량 수정을 Edit 도구로 반복하기보다 AST 기반 일괄 변환으로 작업량을 줄입니다.
  • LSP 우선 매핑(특히 Java): goToDefinition/findReferences/goToImplementation/incomingCalls 등 의도에 맞는 LSP 기능을 연결해 잘못된 grep 기반 탐색을 방지합니다.

Quick Start

Efficient Code Search skill을 사용해서 저장소에서 특정 기능의 구현체를 “정확한 정의/구현/사용처”까지 포함해 토큰을 최소화하며 찾아줘.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: code-search-efficient
Download link: https://github.com/JoeCP17/LLM-Dot-files/archive/main.zip#code-search-efficient

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.