/plugadvpl:callees

Identify direct callees of ADVPL/TLPP functions with call-site line numbers.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you understand the direct call dependencies of a specific ADVPL/TLPP function, so you can see what it invokes without manually tracing through source files.

Core Features & Use Cases

  • Direct call graph (callees): lists functions/methods called by the target function (one hop).
  • Call-site context: includes the call site line number for each callee.
  • Call classification: reports the type of each call (e.g., native ERP, restricted, user function, external).
  • Use cases: dependency mapping before refactoring or extraction, detecting usage of restricted/deprecated functions, and estimating the impact surface of changes.

Quick Start

Ask the AI to list the direct functions called by U_PLUG001 by running: /plugadvpl:callees U_PLUG001.

Frequently Asked Questions about /plugadvpl:callees

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

FAQPage Schema
How do I find what functions are called by an ADVPL function in Protheus?

To find functions called by an ADVPL function in Protheus, you can compute a direct call graph that lists all direct callees. This avoids manual source code tracing by returning callee names alongside their exact call-site line numbers.

How do I check for restricted or deprecated function calls in TLPP code?

Checking for restricted or deprecated function calls in TLPP code is done by classifying the call type of each callee within a function. The analysis identifies and reports calls categorized as native ERP, restricted, user function, or external.

What is the best way to map dependencies before refactoring Protheus code?

Mapping dependencies before refactoring Protheus code is best done by analyzing the direct call graph of a target function. This approach estimates the impact surface of changes by listing all invoked functions and their call sites.

Does dependency analysis for ADVPL require a specific CLI tool?

Dependency analysis for ADVPL requires executing the plugadvpl CLI to compute the call graph. This CLI processes the Protheus codebase to identify direct callees and return their names, line numbers, and call classifications.

Can I trace the full call chain of a Protheus function or only direct callees?

You can only trace direct callees of a Protheus function, representing a single hop in the call chain. The analysis identifies direct dependencies but does not recursively traverse the full call chain of subsequently invoked functions.