Skip to content

Commit a95cc26

Browse files
author
simuleite
committed
Update Skill: search_symbol --path
1 parent 982481f commit a95cc26

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

internal/cmd/assets/.claude/skills/abcoder__search_symbol/SKILL.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
---
22
name: skill__abcoder__search_symbol
3-
description: skill__abcoder__search_symbol `abcoder cli search_symbol <repo_name> <pattern>` Search symbols in a repository by name pattern. Supports substring match, prefix match (pattern*), suffix match (*pattern), and wildcard (*pattern*). You MUST call `get_file_symbol` later.
3+
description: skill__abcoder__search_symbol `abcoder cli search_symbol <repo_name> <pattern> [--path <path>]` Search symbols in a repository by name pattern. Supports substring match, prefix match (pattern*), suffix match (*pattern), wildcard (*pattern*), and path prefix filtering (--path). You MUST call `get_file_symbol` later.
44
---
55

66
Execute the search_symbol command to search symbols by name:
77

88
```bash
9-
abcoder cli search_symbol <repo_name> <pattern>
9+
abcoder cli search_symbol <repo_name> <pattern> [--path <path>]
1010
```
1111

12+
## Arguments
13+
14+
| Argument | Description |
15+
|----------|-------------|
16+
| `repo_name` | Repository name |
17+
| `pattern` | Symbol name pattern (supports *, regex) |
18+
| `--path` | (optional) Filter by file path prefix (e.g., `src/main/java/com/uniast/parser`) |
19+
1220
## Examples
1321

1422
```bash
@@ -23,6 +31,9 @@ abcoder cli search_symbol myrepo "*User"
2331

2432
# Wildcard match - search for symbols containing "GetUser"
2533
abcoder cli search_symbol myrepo "*GetUser*"
34+
35+
# Path filter - search symbols in specific directory
36+
abcoder cli search_symbol myrepo "Graph" --path "src/main/java/com/uniast/parser"
2637
```
2738

2839
## Output Format

internal/cmd/cli/list_repos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ The repositories are loaded from *.json files in the --asts-dir directory.`,
124124

125125
type ListReposOutput struct {
126126
RepoNames []string `json:"repo_names"`
127-
CurrentRepos []string `json:"current_repos,omitempty"`
127+
CurrentRepos []string `json:"current_repo,omitempty"`
128128
}
129129
resp := ListReposOutput{
130130
RepoNames: repoNames,

0 commit comments

Comments
 (0)