Community写作与编辑github.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.

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.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add un1tz3r0/pydoc-skill

Installed? Explore more 写作与编辑 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

/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.

相关技能