- Home
- Skills
- Code Quality & Review
- codegraph-ast-grep
More screenshots
Works with the AI Agents you already use
Codegraph Ast Grep
Supercharge repo exploration and refactoring with semantic call-graph tracing and structural AST pattern matching.
Free
codegraph-ast-grep
Example session with this skill installed
I need to change the signature of AuthService.validate(). Use CodeGraph to find callers and ast-grep to identify the specific conditional patterns used for the refactor plan.
- Read your context and instructions
- Compiled the codegraph-ast-grep
Analyzing impact of changing 'AuthService.validate()'...
CodeGraph found 12 callers across 4 services.
ast-grep identified structural pattern: 'if (!auth.validate(user)) { ... }' in 8 locations.
Refactor plan: Update 8 call sites + 2 middleware handlers. Risk: Medium (shared library).
Connects securely to your tools. The creator never sees your data.
About this skill
The Ultimate Repo Exploration & Refactor Engine
Navigating complex codebases requires more than just keyword search. This skill combines the semantic power of CodeGraph with the structural precision of ast-grep to give your AI agent a deep, multi-dimensional understanding of your repository.
What it does
- Semantic Mapping: Uses CodeGraph to trace call flows, find callers/callees, and perform impact analysis across entire repositories.
- Structural Search: Leverages ast-grep for deterministic, AST-based pattern matching (e.g., finding unsafe writes or deprecated API patterns).
- Intelligent Setup: Automates the configuration of Codex MCP servers, handling global vs. local installs and .gitignore management.
- Safe Refactoring: Scopes impacted symbols with semantic data before applying precise structural rewrites.
Why use this skill
Standard AI prompting often hallucinates code relationships or misses structural nuances in large repos. This developer-centric skill provides a "ground truth" layer by integrating specialized tools. Instead of asking "Where is this used?", your agent can now prove it by tracing the actual call path and identifying the exact syntax nodes involved, ensuring refactors are both comprehensive and safe.
Supported Workflows
Designed for professional environments, it respects package manager policies, redacts secrets during MCP configuration, and integrates with existing .codex/ and .codegraph/ metadata.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
8 installs
Downloaded by developers to date
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 4 months ago
- Free to download with an account
Requires