python-lib-analyzer

A tool for exploring the structure of any Python library, including its modules, classes, functions, signatures, and documentation.

In plain words
What is it for?
Use it to list top-level modules, inspect submodules, and look up the interface and documentation for specific Python classes or functions.
Why use it?
It reduces the time needed to understand an unfamiliar library before using it in code.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/shibing624/agentica/python-lib-analyzer
Any agent
npx skills add shibing624/agentica --skill python-lib-analyzer
Clone the repo
git clone --depth 1 https://github.com/shibing624/agentica

Made for: Claude Code, Codex.

Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 655 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00023 $0.00655
Opus 5 $0.00012 $0.00328
Sonnet 5 $0.00005 $0.00131
Haiku 4.5 $0.00002 $0.00065

Measured 2d ago against content hash a568e96d9b39, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

python-lib-analyzer scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (view_python_module.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

$ python view_python_module.py --module requests.get
examples/data/skills/python-lib-analyzer/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Library Analyzer

A skill for exploring and analyzing any Python library's structure, including modules, classes, functions, and their documentation.

When to Use

Use this skill when you need to:

  • Explore an unfamiliar Python library's structure
  • Find available classes and functions in a module
  • Get function/method signatures and documentation
  • Understand library architecture before using it

Quick Start

1. View Top-Level Modules

python view_python_module.py --module <library_name>

Example:

python view_python_module.py --module requests
python view_python_module.py --module numpy
python view_python_module.py --module pandas

2. Explore Submodules

python view_python_module.py --module <library>.<submodule>

Example:

python view_python_module.py --module requests.api
python view_python_module.py --module numpy.linalg
python view_python_module.py --module pandas.DataFrame

3. Get Class/Function Details

python view_python_module.py --module <library>.<Class>
python view_python_module.py --module <library>.<function>

Script Location

The view_python_module.py script is located in the same directory as this SKILL.md file.

Workflow

  1. Check if library is installed:

    pip list | grep <library_name>
    
  2. Install if needed (ask user permission first):

    pip install <library_name>
    
  3. Start exploration from top level:

    python view_python_module.py --module <library_name>
    
  4. Drill down into specific modules/classes:

    python view_python_module.py --module <library>.<module>.<Class>
    

Example Session

# Explore requests library
$ python view_python_module.py --module requests
Available submodules in 'requests':
- requests.api: Convenience functions (get, post, put, delete, etc.)
- requests.models: Request and Response classes
- requests.sessions: Session management
- requests.auth: Authentication handlers
...

# Get details on the get function
$ python view_python_module.py --module requests.get
def get(url, params=None, **kwargs):
    """Sends a GET request.

    Args:
        url: URL for the request.
        params: Dictionary of query parameters.
        **kwargs: Optional arguments for request.

    Returns:
        Response object
    """

Read the full file on GitHub · 121 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 121 lines · 23 tokens per session scan A a568e96d9b39

Subscribe to this mod's changes

python-lib-analyzer is a skill published in the GitHub repository shibing624/agentica (352 stars, last pushed 4d ago), licensed Apache-2.0. It adds 23 tokens to every session and 655 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.