- 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.
- Requires local installation of CodeGraph and ast-grep binaries.
- Performance varies with repository size and index freshness.
- Does not replace language-specific compilers for final validation.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
8 uses
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 5 months ago
- Free with an Agensi account
Requires