codebase-graph

Generate an ontology-based codebase knowledge graph from TypeScript AST analysis.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/monicajeon28/GMcruise --skill codebase-graph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-graph
Source: https://github.com/monicajeon28/GMcruise/tree/main/.claude/skills/codebase-graph
Command: npx skills add https://github.com/monicajeon28/GMcruise --skill codebase-graph

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

코드베이스의 관계를 파악하기 어렵고, 대규모 시스템에서 모듈 간 의존성과 호출 관계를 시각화하기 어려운 문제를 해결합니다. 온톨로지 기반의 지식 그래프로 노드와 간선을 구성합니다.

Core Features & Use Cases

  • 노드/에지 타입 정의: 파일, 모듈, 함수, 클래스, 타입, 변수
  • 엣지 타입: imports, exports, calls, extends, implements, uses, contains
  • 프로젝트 시작 시 자동 그래프 생성 및 증분 업데이트 지원

Quick Start

코드베이스 루트에서 그래프 생성을 시작하고, 필요 시 쿼리로 의존성 트리를 탐색합니다.

Frequently Asked Questions about codebase-graph

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

FAQPage Schema
How do I generate a dependency graph for my codebase?

A dependency graph visualizes relationships between files, modules, functions, and classes using an ontology-based approach. This Skill automates graph generation by analyzing your codebase with AST parsing, creating nodes for code entities and edges for imports, exports, calls, extends, implements, and contains relationships. The graph is generated automatically on project start and updated incrementally as files change.

What relationships does the codebase graph capture?

The graph represents seven edge types: imports, exports, calls, extends, implements, uses, and contains. Node types include files, modules, functions, classes, types, and variables. This ontology-based schema enables you to trace import/export mappings, function call chains, inheritance hierarchies, and module dependencies across your entire codebase.

Can I query the graph to trace dependencies and paths?

Yes. Once the graph is constructed, it provides a queryable interface for path discovery and dependency tracing. You can explore how modules depend on each other, discover function relationships, and understand architecture insights by traversing nodes and edges in the knowledge graph.

How does the graph handle large codebases?

The Skill uses token-efficient graph construction with caching and versioning to handle large systems. It's built on ts-morph for TypeScript AST analysis and processes incremental file changes rather than full rebuilds, keeping analysis fast as your codebase grows.

When should I use a codebase graph instead of static analysis tools?

Use a codebase graph when you need to visualize and query complex relationships across modules, understand architecture at scale, trace multi-step dependencies, or perform impact analysis. Unlike flat static analysis, the ontology-based graph structure supports sophisticated queries and reveals patterns hidden in unstructured code relationships.

Does this work with TypeScript projects?

Yes. The implementation uses ts-morph for TypeScript AST parsing, making it native to TypeScript projects. It automatically triggers on project start and maintains an updated graph as TypeScript files change.