code-search

SKILL.md

Code Search

Scope Constraints

  • Read-only file search operations using Grep and Glob
  • Does not modify, create, or delete files
  • Does not execute found code or run tests

Input Sanitization

  • Search patterns: reject null bytes, validate regex syntax before passing to Grep
  • File glob patterns: reject .. traversal, null bytes, and shell metacharacters

Use Grep for content searches, Glob for file pattern matching.

Output Format

Found 5 matches for "handleAuth" in 3 files:

  src/lib/auth.ts:23      export function handleAuth(req: Request) {
  src/lib/auth.ts:45      return handleAuth(nextReq);
  src/middleware.ts:12     import { handleAuth } from "@/lib/auth";

Examples

  • "find all usages of X" → Grep for X
  • "where is the config file" → Glob for config patterns
  • "search for error handling" → Grep for try/catch, .catch, error patterns
Weekly Installs
1
GitHub Stars
1
First Seen
6 days ago
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1