Skip to content

Commit 375a974

Browse files
vintaclaude
andcommitted
Simplify code-search skill description for clarity
Streamline description to focus on core use case (codebase navigation) rather than exhaustive feature list. Update table to include call flows as explicit use case. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5f23484 commit 375a974

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dotfiles/.claude/skills/code-search/SKILL.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
22
name: code-search
3-
description: Systematic code understanding and search using AST-based structural patterns (ast-grep) and fast text search (ripgrep). Use when exploring unfamiliar codebases, finding function/class usages before refactoring, locating security issues (hardcoded credentials, SQL injection, eval usage), analyzing imports/dependencies, or finding specific code constructs (error handling, API calls). Triggers on questions like "where is X used", "find all calls to", "show me functions that", "how is this pattern implemented", and security audits.
3+
description: Use when exploring codebase, architecture, or call flows.
44
allowed-tools: Bash(ast-grep:*), Bash(sg:*), Bash(rg:*), Bash(fd:*)
55
---
66

77
# Code Search
88

9-
AST-based structural search reveals hidden relationships, security vulnerabilities, and architectural issues that text-based grep misses. Combine with fast text search for comprehensive codebase understanding.
9+
Use when navigating code, tracing how functions/classes connect, finding where symbols are defined or called, or answering "how does this work" questions about a codebase.
1010

1111
## Tool Selection
1212

13-
| Need | Tool |
14-
| ------------------------------------------------ | --------------- |
15-
| Structural patterns (functions, classes, syntax) | `sg` (ast-grep) |
16-
| Text patterns (strings, comments, names) | `rg` (ripgrep) |
17-
| File discovery by name/extension | `fd` |
13+
| Need | Tool |
14+
| ------------------------------------------------------------ | --------------- |
15+
| Structural patterns (functions, classes, syntax, call flows) | `sg` (ast-grep) |
16+
| Text patterns (strings, comments, names) | `rg` (ripgrep) |
17+
| File discovery by name/extension | `fd` |
1818

1919
### Choose ripgrep (`rg`) for:
2020

0 commit comments

Comments
 (0)