Python 类型异步与测试
原名:python-pro
围绕类型、异步、异常和打包维护 Python 项目,核对工具与版本。
中文 Skills 技能说明
桌面端业务脚本需要变得容易维护时,可让开发岗位数字员工使用。提供 Python 版本、代码、依赖、运行规则和失败样例,技能整理类型标注、async、数据类与 pytest,交付代码草稿及验证项。静态类型检查不能替代实际业务测试,也不把较新语法硬套到旧环境。桌面端使用独立虚拟环境,包源与许可证核对;写文件、联网与任务执行限定授权,不外发密钥或企业资料,变更前保留原件和未提交改动。
上游能力依据
上游原始适用说明:Use when building Python 3.11+ applications requiring type safety, async programming, or robust error handling. Generates type-annotated Python code, configures mypy in strict mode, writes pytest test suites with fixtures and mocking, and validates code with black and ruff. Invoke for type hints, async/await patterns, dataclasses, dependency injection, logging configuration, and structured error handling.
上游 SKILL.md 主要章节(保留原文标题):
- When to Use This Skill
- Core Workflow
- Reference Guide
- Constraints
- MUST DO
- MUST NOT DO
- Code Examples
- Type-annotated function with error handling
- Dataclass with validation
- Async pattern
使用边界
先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。
作者、翻译与许可证
- 原作者
- Jeffallan 与 claude-skills contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/Jeffallan/claude-skills/tree/1be15d8064f88fc25216442406d40add8fd23b53/skills/python-pro
适用范围
平台:linux、macos、windows;标签:软件开发、Python 类型异步与测试、开源技能
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。