sir-chawakorn/power-ranger-toolkit/code-search

Claude Code and agent skill by sir-chawakorn/power-ranger-toolkit

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install sir-chawakorn/power-ranger-toolkit/code-search

SKILL.md

The same SKILL.md was published earlier as sir-chawakorn/power-ranger-toolkit/code-search.

🔍 Code Search Skill


name: code-search description: Efficiently search through codebases to find patterns, usages, and references


🎯 Purpose

ค้นหา code patterns, usages, และ references ใน codebase อย่างมีประสิทธิภาพ

📋 When to Use

  • หาว่า function ถูกใช้ที่ไหน
  • หา pattern ที่คล้ายกัน
  • Refactor และต้องหาทุกที่ที่ใช้
  • หา TODO/FIXME comments
  • หา import/export relationships

🔧 Search Methods

1. grep_search (Tool)
grep_search(
Query="functionName",
SearchPath="./src",
MatchPerLine=true
)
2. PowerShell Select-String
powershell
# ค้นหาใน file เดียว
Select-String -Path "file.ts" -Pattern "searchTerm"
# ค้นหาในหลาย files
Select-String -Path "src/*.ts" -Pattern "searchTerm" -Recurse
# Case insensitive
Select-String -Path "src/*.ts" -Pattern "searchTerm" -CaseSensitive:$false
3. ripgrep (rg)
bash
# Basic search
rg "pattern" ./src
# With file type
rg "pattern" --type ts
# With context
rg -C 3 "pattern"
# Ignore case
rg -i "pattern"
# Fixed string (no regex)
rg -F "exact.string"
4. Git grep
bash
# Search in tracked files
git grep "pattern"
# With line numbers
git grep -n "pattern"
# Only filenames
git grep -l "pattern"

📊 Search Patterns

Find Function Usage
bash
# Find function calls
rg "functionName\(" --type ts
# Find function definition
rg "function functionName|const functionName" --type ts
Find Component Usage
bash
# Find JSX usage
rg "<ComponentName" --type tsx
# Find import
rg "import.*ComponentName" --type ts
Find TODOs and FIXMEs
bash
rg "TODO:|FIXME:|HACK:|XXX:" --type ts
Find Console Logs
bash
rg "console\.(log|warn|error)" --type ts
Find Hardcoded Values
bash
# Find hardcoded URLs
rg "https?://[^\s]+" --type ts
# Find hardcoded credentials
rg "(password|secret|api_key)\s*[:=]\s*['\"]" -i --type ts

📝 Search Results Template

markdown
## 🔍 Search Results: `{pattern}`
### Summary
-**Files matched**: 12
-**Lines matched**: 45
-**Pattern**: `{regex or string}`
### Results by File
#### `src/components/UserCard.tsx`
-Line 15: `const user = useUser(userId);`
-Line 23: `return <UserCard user={user} />;`
#### `src/hooks/useUser.ts`
-Line 8: `export function useUser(id: string) {`
### Suggestions
-Consider extracting common pattern to shared utility
-3 instances could be simplified

🔧 Advanced Search Patterns

Regex Patterns
PatternMatches
\bword\bWhole word only
func\(.*\)Function calls
import.*fromImport statements
useState<.*>Generic useState
// TODO:.*TODO comments
Multi-term Search
bash
# OR patterns
rg "pattern1|pattern2"
# AND patterns (in same file)
rg "pattern1" | xargs rg "pattern2"
# NOT pattern
rg "pattern1" --invert-match "pattern2"

📋 Common Searches

PurposePattern
Find importsimport.*{name}
Find exportsexport.*{name}
Find hooksuse[A-Z]\w+
Find components<[A-Z]\w+
Find API calls`fetch\(axios\.api\.`
Find types`interface\type\s+\w+`
Find consoleconsole\.
Find comments`//.*\/\.\*/`

🛠️ IDE Search Features

VS Code
  • Ctrl+Shift+F - Search in files
  • Ctrl+Shift+H - Search and replace
  • F12 - Go to definition
  • Shift+F12 - Find all references
Antigravity
  • grep_search - Search patterns
  • find_by_name - Find files
  • view_file_outline - See structure

✅ Search Best Practices

  • [ ] Use word boundaries \b for precision
  • [ ] Start narrow, expand if needed
  • [ ] Exclude node_modules, dist
  • [ ] Use file type filters
  • [ ] Save common searches
  • [ ] Check both singular/plural

🔗 Related Skills

  • codebase-understanding - Understand project
  • refactoring - After finding usages
  • code-review - Review patterns

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
32
Repository forks
3
7-day trend score
18

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 8 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sir-chawakorn/power-ranger-toolkit/code-search/badge)](https://verified-skill.com/skills/sir-chawakorn/power-ranger-toolkit/code-search)

Something wrong with this skill or its page? Tell us.