CommunityWriting & Editinggithub.com

un1tz3r0/pydoc-skill

Claude Code skill: real Python documentation from the system interpreter — signatures, type annotations and docstrings for what's actually installed, plus package listings and symbol search by substring, glob or regex.

What is pydoc-skill?

pydoc-skill is a Claude Code agent skill that claude Code skill: real Python documentation from the system interpreter — signatures, type annotations and docstrings for what's actually installed, plus package listings and symbol search by substring, glob or regex.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add un1tz3r0/pydoc-skill

Installed? Explore more Writing & Editing skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

/pydoc — Python documentation lookup

The block below is generated live by introspecting the system Python interpreter (python3) for whatever name, listing, or search was requested. It is the real, currently-installed API — signatures, annotations, and docstrings — not recalled knowledge. Read it as authoritative for this machine's environment.

!python3 "${CLAUDE_SKILL_DIR}/scripts/pydoc_tool.py" $ARGUMENTS


Following up. Every listed item shows its fully-qualified name. To go deeper, run the tool again directly (it is safe, read-only, and stdlib-only):

python3 "${CLAUDE_SKILL_DIR}/scripts/pydoc_tool.py" <name-or-flags>
  • <fully.qualified.name> — docstring + signature + annotations, then its children. Add --depth N / -dN to document N levels of children, or -r for the whole subtree.
  • --list [ROOT] — contents of ROOT (or every top-level package if omitted). Filter with --packages --modules --classes --functions --methods --members.
  • --find [ROOT] QUERY — search (ROOT comes before QUERY); --glob / --regex switch QUERY from plain substring to a pattern.
  • --private includes _-prefixed names; --max-chars N raises the output budget.

If a name isn't found, try --list for the top-level package index or --find QUERY to locate the symbol first.

Related Skills