‹ 首页

python-patterns

@damianjedryka39-create · 收录于 1 周前 · 上游提交 3 周前

Python-specific design patterns and best practices including protocols, dataclasses, context managers, decorators, async/await, type hints, and package organization. Use when working with Python code to apply Pythonic patterns.

适合你,如果正在用 Python 写代码,想应用设计模式和最佳实践

/ 通过 npx 安装 校验哈希
npx oh-my-skill add damianjedryka39-create/temple_repo_v2/python-patterns
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- damianjedryka39-create/temple_repo_v2/python-patterns
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify damianjedryka39-create/temple_repo_v2/python-patterns
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
0GitHub stars
~1.8K上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 7b22237 · 表述以原文为准
它做什么

安装后,Claude 在编写 Python 代码时会应用 Python 特有的设计模式,如协议、数据类、上下文管理器、装饰器、异步/等待、类型提示和包组织等最佳实践。

什么时候触发

当用户要求编写或重构 Python 代码,特别是涉及 API 设计、异步系统、项目结构或类型安全时触发。

装好后可以这样说
Claude 会添加 @timing 装饰器并测量执行时间。
Claude 会创建结构子类型协议。

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。