code-intelligence

Analyze code relationships and locate symbol definitions with GitKB tools.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/FlexNetOS/envctl --skill code-intelligence-flexnetos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-intelligence
Source: https://github.com/FlexNetOS/envctl/tree/main/.kb/skills/code-intelligence
Command: npx skills add https://github.com/FlexNetOS/envctl --skill code-intelligence-flexnetos

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps streamline code analysis tasks by replacing grep with advanced GitKB code intelligence tools, enhancing symbol search and dependency analysis.

Core Features & Use Cases

  • Code Relationships: Analyze code relationships, including function callers and callees.
  • Symbol Definitions: Locate symbol definitions and assess change impact.
  • Dead Code Identification: Find dead code (symbols with zero callers).
  • Index Health: Diagnose index and resolution health.
  • Use Case: Use this Skill to quickly find the functions a particular method calls and understand the dependencies that change when a file is modified.

Quick Start

Use the code-intelligence Skill to find callers for the function myFunction by running: git-kb code callers "myFunction" --json.

Frequently Asked Questions about code-intelligence

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

FAQPage Schema
How do I find function callers and callees for code analysis?

Code analysis for function callers and callees is executed using GitKB code intelligence tools to map code relationships. Query callers for a specific function by running the `git-kb code callers` command with JSON output.

How do I locate symbol definitions to assess change impact?

Locating symbol definitions to assess change impact is achieved through GitKB symbol lookup capabilities. This identifies exact definitions and clarifies the dependencies affected when modifying a file.

Can I use GitKB to find dead code in my repository?

You can find dead code by using GitKB code intelligence tools to identify symbols with zero callers. This isolates unused functions and dependencies to streamline your repository.

Do I need indexed code repositories to use GitKB code intelligence?

Indexed code repositories are required for GitKB code intelligence functionality. The tools rely on these indexes to perform symbol lookup, dependency graphing, and resolution health diagnostics.

What is the best way to replace grep for symbol search and dependency analysis?

Replacing grep for symbol search and dependency analysis is best achieved using GitKB code intelligence tools. They provide advanced capabilities for analyzing code relationships, locating definitions, and identifying dead code.

Why does GitKB code intelligence require index health diagnostics?

GitKB code intelligence requires index health diagnostics to ensure the accuracy of symbol resolution and dependency graphing. Diagnosing index health maintains reliable code analysis and change impact assessment.