code-intelligence

Trace symbol references, call hierarchies, and diagnostics across codebases.

2|Updated May 5, 2026
One-click install
npx skills add https://github.com/OrestesK/pi --skill code-intelligence-orestesk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-intelligence
Source: https://github.com/OrestesK/pi/tree/main/skills/code-intelligence
Command: npx skills add https://github.com/OrestesK/pi --skill code-intelligence-orestesk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers investigate unfamiliar code, understand how it fits together, and validate changes without relying solely on fragile text searches.

Core Features & Use Cases

  • Symbol and Module Analysis: Locate ownership, structure, implementations, and exact function or class bodies.
  • Relationship and Pattern Discovery: Trace definitions, references, call hierarchies, types, and structural patterns with LSP and AST tools.
  • Diagnostics and Safe Editing: Inspect relevant code before editing, dry-run structural replacements, and run focused diagnostics after coherent changes.
  • Use Case: When debugging a multi-file feature, identify the responsible modules, trace callers and implementations, inspect the relevant symbols, apply a targeted structural change, and verify the result with diagnostics.

Quick Start

Ask the code-intelligence skill to trace the implementation and callers of the target function, inspect its body, and report any relevant diagnostics.

Frequently Asked Questions about code-intelligence

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

FAQPage Schema
How do I trace function callers and implementations across an unfamiliar codebase?

Trace function callers and implementations using symbol analysis and call hierarchy tools to locate definitions, references, and exact function bodies without relying on fragile text searches.

What is the best way to navigate multi-file code relationships and module ownership?

Navigating multi-file code relationships and module ownership requires selecting appropriate LSP and AST tools to investigate structure, identify responsible modules, and answer behavior questions.

Can I validate structural code changes and run diagnostics after editing?

You can validate structural code changes and run diagnostics by reading relevant code before edits, dry-running structural replacements, and executing focused diagnostics after coherent changes to ensure correctness.

Does LSP work with AST search for investigating code structure and type definitions?

LSP works with AST search to investigate code structure by tracing definitions, references, call hierarchies, types, and structural patterns, providing comprehensive symbol and module analysis for unfamiliar codebases.

Why use AST structural search instead of standard text search for code navigation?

AST structural search replaces standard text search for code navigation because it understands code structure and relationships, avoiding fragile text matches and enabling precise symbol investigation and pattern discovery.

When do I need code intelligence tools for post-edit validation and symbol investigation?

You need code intelligence tools for post-edit validation and symbol investigation when working with unfamiliar codebases, performing multi-file changes, tracing call hierarchies, and validating structural replacements and diagnostics.