code-intelligence

Analyze codebases to reveal architecture, dependencies, and structural patterns.

6|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Kgan01/ghengis-skills --skill code-intelligence-kgan01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-intelligence
Source: https://github.com/Kgan01/ghengis-skills/tree/main/plugins/ghengis-skills/skills/code-intelligence
Command: npx skills add https://github.com/Kgan01/ghengis-skills --skill code-intelligence-kgan01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps teams understand unfamiliar codebases by turning a pile of files into a navigable architectural map using AST-based analysis, import-graph tracing, and layered classification.

Core Features & Use Cases

  • 6-layer architectural classification mapping files to API/Service/Data/UI/Infrastructure/Utility layers
  • Import graph analysis to reveal dependencies and calling relationships
  • AST-based structural analysis to identify keys such as modules, interfaces, and couplings
  • Use Case: Onboarding to a new codebase, architecture review, dependency analysis, and refactoring planning

Quick Start

Describe a codebase you want analyzed and ask for a structural classification and dependency map.

Frequently Asked Questions about code-intelligence

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

FAQPage Schema
How do I analyze a codebase to understand its architecture and dependencies?

Codebase analysis reveals architecture and dependencies by using AST parsing and import graph construction to map files into a 6-layer classification. This structural analysis identifies modules, interfaces, and coupling patterns across the codebase.

What is the best way to map structural patterns and classify files in an unfamiliar codebase?

Classifying files in an unfamiliar codebase is done by applying deterministic path patterns to map code into API, Service, Data, UI, Infrastructure, and Utility layers. This structural classification turns scattered files into a navigable architectural map.

Can I trace dependencies and calling relationships across different programming languages?

Tracing dependencies and calling relationships across languages is supported through AST-based structural analysis and import graph construction. This approach identifies couplings and maps calling relationships without relying on a single language-specific framework.

Does AST-based code analysis work for planning codebase refactoring?

AST-based code analysis works for refactoring planning by identifying key modules, interfaces, and structural couplings before changes are made. The import graph analysis highlights existing dependency structures to prevent breaking calling relationships during modification.

When do I need a 6-layer architectural classification for codebase onboarding?

A 6-layer architectural classification is needed during codebase onboarding to quickly separate API, Service, Data, UI, Infrastructure, and Utility code. This deterministic file classification provides immediate structural context for navigating unfamiliar codebases.