1
    codegraph-ast-grep

    codegraph-ast-grep

    by servrox

    Supercharge repo exploration and refactoring with semantic call-graph tracing and structural AST pattern matching.

    Updated May 2026
    0 installs

    Free

    One-time purchase

    Included in download

    • Downloadable skill package
    • 3 permissions declared
    • Instant install

    See it in action

    A real example of what this skill takes in and produces.

    Sample output

    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).

    Screenshots

    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.

    Use Cases

    • Trace call paths and symbol dependencies across large monorepos
    • Find exact structural code patterns using AST-based search rules
    • Automate the setup and configuration of Codex MCP tools and servers
    • Plan and validate refactors by combining semantic scope with syntax matching
    • Generate impact analysis reports before modifying shared utility functions

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Network Access
    Environment Variables

    Allowed Hosts

    github.com

    File Scopes

    agents/**
    references/**

    Creator

    Entrepreneur & Builder 🚀 Co-Founder and Managing Director at servrox solutions and stark AI

    Frequently Asked Questions

    More Premium Skills

    Free