ragsharp-query-code-graph
Query the ragsharp code graph for declarations, references, callers, callees, dependencies, and line-number evidence.Triggers: find usages, where defined, callers, callees, dependency path, project deps, type hierarchy, line numbers, evidence.
When & Why to Use This Skill
The ragsharp-query-code-graph skill empowers Claude to perform deep static analysis and code navigation by querying a structured code graph. It provides precise insights into symbol declarations, references, caller/callee relationships, and complex dependency paths, delivering actionable line-number evidence to enhance code comprehension and technical decision-making.
Use Cases
- Impact Analysis: Identify all callers and references of a specific function or variable to evaluate the potential side effects of a refactoring or code change.
- Codebase Navigation: Quickly locate where specific symbols are defined and used across large, multi-file projects to speed up the onboarding process for new developers.
- Dependency Mapping: Visualize and trace dependency paths, project-level dependencies, and type hierarchies to understand the architectural structure of a software system.
- Evidence-Based Debugging: Retrieve exact file locations and line-number evidence for symbol usages to verify execution flows and identify the root cause of bugs.
| name | ragsharp-query-code-graph |
|---|---|
| description | | |
| Triggers | find usages, where defined, callers, callees, dependency path, project deps, type hierarchy, line numbers, evidence. |
Steps
- Run
ragsharp graph query --type symbols --db .ragsharp/graph/index.db --limit 50 --symbol "SymbolName". - Use the JSON output to answer questions with file:line-range evidence.