Code Analysis Skill
Analyze code structure, find symbols, and explore hierarchies using DevAC's Analytics Layer.
From devacnpx claudepluginhub pietgk/vivief --plugin devacThis skill uses the workspace's default tool permissions.
Code Analysis Skill
Analyze code structure, find symbols, and explore hierarchies using DevAC's Analytics Layer.
Triggers
This skill activates when users ask about:
- "analyze code"
- "find functions"
- "show hierarchy"
- "code structure"
- "what functions are in this file"
- "show me the classes"
Capabilities
Symbol Discovery
Find and explore symbols (functions, classes, methods, variables) across the codebase.
Hierarchy Analysis
Understand inheritance, composition, and module structure.
Code Structure
Get an overview of how code is organized within files and across the project.
CLI Commands (Primary)
Use DevAC CLI commands for code analysis. CLI is preferred for lower context overhead.
devac query symbol
Find symbols by name across all indexed repositories.
devac query symbol UserService
devac query symbol --kind class Controller
devac file-symbols
Get all symbols defined in a specific file or directory.
devac file-symbols src/services/user.ts
devac file-symbols src/auth/
devac query
Run SQL queries against the Seeds database for advanced analysis.
devac query "SELECT name, kind, file_path FROM symbols WHERE kind = 'class' ORDER BY name"
devac query "SELECT * FROM symbols WHERE name LIKE '%UserService%'"
Example Interactions
User: "What functions are defined in the auth module?"
Response approach:
- Use
devac file-symbols src/auth/to list all symbols - Filter for functions in the output
- Present a structured list of functions with their signatures
User: "Show me the class hierarchy for BaseController"
Response approach:
- Find the BaseController class with
devac find-symbol BaseController - Query for classes that extend it using
devac query - Present the inheritance tree
MCP Tools (Alternative)
If MCP server is configured, these tools provide equivalent functionality:
find_symbol
find_symbol(name: "UserService")
get_file_symbols
get_file_symbols(file_path: "src/services/user.ts")
query_sql
SELECT name, kind, file_path
FROM symbols
WHERE kind = 'class'
ORDER BY name
Notes
- Requires DevAC hub to be initialized (
devac sync) - Repository must be analyzed (
devac sync) - Works across all repositories connected to the hub
- CLI and MCP share the same devac-core implementation and return identical results