extract-tool-graph

Map tools and capabilities in a codebase, including conditional and dynamic registrations.

1|1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/quangphu1912/codebase-analyzer --skill extract-tool-graph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-tool-graph
Source: https://github.com/quangphu1912/codebase-analyzer/tree/main/skills/extract-tool-graph
Command: npx skills add https://github.com/quangphu1912/codebase-analyzer --skill extract-tool-graph

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you uncover the hidden tools and capabilities in your codebase, revealing what your system can do even if it isn't currently active.

Core Features & Use Cases

  • Identify Hidden Tools: Discover tools that are defined but not actively used or visible at runtime.
  • Conditional Registration Analysis: Trace tools that are only registered under certain conditions, such as feature flags or environment variables.
  • Dynamic Registration Detection: Map out tools loaded from external sources or dynamically at runtime.
  • Security Signals: Escalate if tools with admin-level capabilities are not properly gated or if there are signs of unauthorized data access.
  • Use Case: If you're developing a complex application with many features and dependencies, this Skill can help you understand the full scope of your system's capabilities and identify potential security risks.

Quick Start

Run the 'extract-tool-graph' skill to analyze the tool graph in your codebase.

Frequently Asked Questions about extract-tool-graph

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

FAQPage Schema
How do I find hidden tools and capabilities in a complex codebase?

To find hidden tools in a codebase, you need to analyze function handlers, API endpoints, CLI commands, and plugin hooks. This process reveals conditional and dynamic registrations, mapping the full capability surface of your system even when features are not actively running.

What is conditional tool registration analysis and when do I need it?

Conditional tool registration analysis traces tools activated only under specific conditions like feature flags or environment variables. You need this when developing complex applications to understand the full scope of system capabilities and ensure unexposed features do not introduce security vulnerabilities.

How do I detect dynamically registered tools loaded at runtime?

Detect dynamically registered tools by mapping out tools loaded from external sources or dynamically at runtime. This dynamic registration detection requires analyzing plugin hooks and function handlers to reveal capabilities that are not statically defined in your core codebase.

Can code analysis identify security risks from ungated admin capabilities?

Code analysis can identify security risks by escalating signals when tools with admin-level capabilities are not properly gated. It detects signs of unauthorized data access by mapping the complete capability surface, revealing hidden tools that lack proper security controls.

What is the best way to map API endpoints and CLI commands for reverse engineering?

The best way to map API endpoints and CLI commands for reverse engineering is to extract the complete tool graph. This approach identifies hidden registrations and traces dynamic loading mechanisms, providing a comprehensive view of all system capabilities.

What are the limitations of tool discovery in complex systems?

Tool discovery in complex systems is limited by the complexity of tracing dynamic registrations loaded from external sources. Heavily obfuscated runtime loading or deeply nested conditional feature flags may obscure the full capability surface, making complete tool graph extraction challenging.