Skip to main content
在 Manus 中运行任何 Skill
一键导入

python-stdlib-idioms

星标4
分支0
更新时间2026年5月17日 18:16

Use when iterating over collections, building lazy pipelines, or modeling tree / recursive structures (filesystems, ASTs, query builders, UI trees). Triggers on imports of `itertools`, `collections.abc`; on `for ... yield ...`, `__iter__`, generators; on tree-shaped data, leaf/composite distinctions, recursive traversal. Encodes: generators over hand-rolled iterators, `itertools` for composition, `AsyncIterator[T]` for async, `Protocol` + dataclass for tree shapes, recursive generators for traversal, `match` for visitor dispatch. Do NOT use for: type-system idioms (use python-typing-idioms); domain primitives (use python-value-objects); aggregates (use python-aggregate-and-repo).

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly