code-discovery

Discovers public APIs and traces import chains across Python codebases.

3|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/xiaden/nomarr --skill code-discovery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-discovery
Source: https://github.com/xiaden/nomarr/tree/main/.github/skills/code-discovery
Command: npx skills add https://github.com/xiaden/nomarr --skill code-discovery

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers quickly discover the public APIs and import chains within a codebase, enabling safer navigation, faster onboarding, and more reliable refactoring.

Core Features & Use Cases

  • API discovery: Enumerate functions, classes, and signatures for modules using provided scripts.
  • Dependency tracing: Visualize or list import chains to understand module relationships.
  • Code graph support: Build a graph of modules, imports, and calls to analyze reachability and dead code.
  • Use Case: When integrating a new module, run discovery scripts to verify available APIs and dependencies before coding.

Quick Start

Run the discovery scripts to inspect a module's public API and its import relationships.

  • List API surface: python scripts/discover_api.py nomarr.components.ml
  • Trace imports: python scripts/discover_import_chains.py nomarr.components.tagging
  • Build code graph: python scripts/build_code_graph.py

Frequently Asked Questions about code-discovery

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

FAQPage Schema
How do I discover public APIs and trace import chains in a Python codebase?

To discover Python APIs and trace import chains, you run provided scripts like discover_api.py and discover_import_chains.py to enumerate functions, classes, and module relationships. This guided script approach helps developers quickly inspect available APIs and dependencies.

What is the best way to build a code graph for Python module dependency analysis?

Building a code graph for Python module dependency analysis involves running a script like build_code_graph.py to map modules, imports, and calls. This generates a structural graph used to analyze module reachability and identify dead code across your project.

Can I use these scripts to verify module APIs and dependencies before refactoring?

Yes, you can use these scripts to verify module APIs and dependencies before refactoring. By running discovery scripts, you enumerate public API surfaces and visualize import chains, ensuring safer navigation and more reliable code modifications.

How do I list all functions and class signatures for a specific Python module?

To list all functions and class signatures for a specific Python module, run the discover_api.py script with the target module path. This API discovery process enumerates available functions, classes, and signatures within the codebase.

Does this code analysis skill require any external dependencies to run?

No, this code analysis skill requires no external dependencies to run. It operates by executing standalone Python scripts located in the scripts/ directory to inspect APIs and trace import relationships within your existing project environment.

When do I need to trace import chains and visualize module relationships?

You need to trace import chains and visualize module relationships during code exploration, onboarding, and architecture validation. Tracing imports helps you understand complex module dependencies and verify code reachability before integrating new components.