list-functions

List function definitions and line ranges in source files via Neo4j queries.

113|23|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/opensage-agent/opensage-adk --skill list-functions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: list-functions
Source: https://github.com/opensage-agent/opensage-adk/tree/main/src/opensage/bash_tools/retrieval/list-functions
Command: npx skills add https://github.com/opensage-agent/opensage-adk --skill list-functions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires argparse, os, sys, and includes scripts (resource) components.

What problem does it solve?

This tool solves the difficulty of navigating large codebases by providing a structured way to identify function definitions and their exact line ranges without manual searching.

Core Features & Use Cases

  • Function Mapping: Quickly retrieve the location and scope of any function within a specified file.
  • Codebase Analysis: Useful for developers needing to understand the structure of a file or verify function existence during refactoring.
  • Use Case: When you need to know exactly where a specific logic block is defined in a large Python module, use this tool to get the file path and line numbers instantly.

Quick Start

Use the list-functions skill to find all function definitions in the file named src/main.py.

Frequently Asked Questions about list-functions

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

FAQPage Schema
How do I locate function definitions and line ranges in a large codebase?

To locate function definitions and line ranges in a large codebase, you can query a pre-indexed Neo4j graph database to instantly retrieve the exact file paths and line numbers of functions without manual searching.

What is the best way to map code structure for a refactoring task?

Mapping code structure for refactoring is best handled by querying pre-indexed code analysis data to identify specific logic blocks and verify function existence across source files.

Do I need Neo4j database connectivity to list functions in source files?

Yes, you need Neo4j database connectivity and access to pre-indexed code analysis data to successfully list functions and retrieve their line ranges from source files.

Can I find all function definitions in a specific Python module?

Yes, you can find all function definitions in a specific Python module by querying the indexed graph data to return the precise locations and scopes of functions within that file.

Why does code navigation fail when analyzing large codebases manually?

Code navigation fails manually in large codebases due to the difficulty of tracking function definitions across multiple files, which graph queries solve by mapping exact line ranges instantly.