codegraph-ast-grep

Integrate CodeGraph and ast-grep for semantic repository maps and structural search.

4|1|Updated May 19, 2026
One-click install
npx skills add https://github.com/stark-ai-de/agent-skills --skill codegraph-ast-grep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codegraph-ast-grep
Source: https://github.com/stark-ai-de/agent-skills/tree/main/skills/engineering-workflows/codegraph-ast-grep
Command: npx skills add https://github.com/stark-ai-de/agent-skills --skill codegraph-ast-grep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires codegraph, ast-grep, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill aids in speeding up repository exploration by integrating CodeGraph and ast-grep, offering semantic repository maps, symbol lookup, call flow analysis, impact analysis, structural search, and safe refactor planning.

Core Features & Use Cases

  • Semantic Repository Maps: Utilize CodeGraph for understanding the structure and relationships within a repository.
  • Symbol Lookup and Call Flow Analysis: Locate symbols and analyze call flows with ease.
  • Impact Analysis: Assess the impact of changes on the repository.
  • Structural Search: Use ast-grep for deterministic AST-based pattern search and refactor planning.
  • Use Case: Before making changes to shared code, this Skill helps in identifying all callers and callees, thereby minimizing the risk of breaking other parts of the application.

Quick Start

Run the codegraph-ast-grep skill to explore the repository structure and find specific code patterns.

Frequently Asked Questions about codegraph-ast-grep

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze codebase structure for planning a refactor?

You can analyze codebase structure for refactoring by generating semantic repository maps and performing deterministic structural search to identify relationships and patterns safely.

What is the best way to find all callers and callees before modifying shared code?

Finding callers and callees requires impact analysis and call flow mapping, which identifies dependencies to minimize the risk of breaking other application parts.

Do I need to install CodeGraph and ast-grep to use this repository exploration functionality?

Yes, you must install both CodeGraph and ast-grep locally, as the semantic mapping and structural search capabilities directly depend on these two external tools.

Can I use ast-grep for structural search to locate specific code patterns?

Yes, ast-grep provides deterministic AST-based pattern search, allowing you to locate specific code syntax structures and plan safe refactoring operations.

How does semantic symbol lookup work when exploring a new codebase?

Semantic symbol lookup works by mapping repository relationships to help you quickly locate specific functions or variables and trace their call flows during exploration.