dignified-python by dagster-io/skills
npx skills add https://github.com/dagster-io/skills --skill dignified-python用于编写干净、可维护、现代化的 Python 代码(版本 3.10-3.13)的生产级 Python 编码标准。
当用户询问以下内容时自动调用:
注意:此技能是关于通用 Python 标准,而非 Dagster 特定内容。对于 Dagster 模式,请使用 /dagster-best-practices。
| 用户需求 | 使用此技能 | 替代技能 |
|---|---|---|
| "让这段代码更 Pythonic" | ✅ 是 - Python 标准 | |
| "这段 Python 代码好吗" | ✅ 是 - 代码质量 | |
| "类型提示" | ✅ 是 - 类型指导 | |
| "LBYL 与 EAFP" |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| ✅ 是 - 异常模式 |
| "pathlib 对比 os.path" | ✅ 是 - 路径处理 |
| "Dagster 最佳实践" | ❌ 否 | /dagster-best-practices |
| "实现 X 管道" | ❌ 否 | /dg 用于实现 |
| "使用哪个集成" | ❌ 否 | /dagster-expert |
| "CLI 参数解析" | ✅ 是 - CLI 模式 |
@dignified-python-core.md
通过按顺序检查以下内容来识别项目的最低 Python 版本:
pyproject.toml - 查找 requires-python 字段(例如,requires-python = ">=3.12")setup.py 或 setup.cfg - 查找 python_requires.python-version 文件 - 包含版本号,如 3.12 或 3.12.0识别后,加载相应的版本特定文件:
versions/python-3.10.mdversions/python-3.11.mdversions/python-3.12.mdversions/python-3.13.md上述核心文件涵盖了 80% 以上的 Python 代码模式。仅在检测到特定模式时加载这些附加文件:
模式检测示例:
references/cli-patterns.mdreferences/ 目录包含按主题组织的详细指导:
core-standards.md - 基本标准(始终加载)cli-patterns.md - 命令行界面模式(click, argparse)references/versions/)python-3.10.md - Python 3.10+ 中可用的功能python-3.11.md - Python 3.11+ 中可用的功能python-3.12.md - Python 3.12+ 中可用的功能python-3.13.md - Python 3.13+ 中可用的功能references/advanced/)exception-handling.md - LBYL 模式,错误边界interfaces.md - ABC 和 Protocol 模式typing-advanced.md - 高级类型提示模式api-design.md - API 设计原则references/advanced/exception-handling.md在以下情况阅读:
from e 或 from None 时references/advanced/interfaces.md在以下情况阅读:
references/advanced/typing-advanced.md在以下情况阅读:
references/module-design.md在以下情况阅读:
references/api-design.md在以下情况阅读:
references/checklists.md在以下情况阅读:
每周安装次数
179
代码仓库
GitHub 星标数
73
首次出现
2026年1月29日
安全审计
安装于
codex155
opencode151
github-copilot148
gemini-cli144
amp139
kimi-cli138
Production-quality Python coding standards for writing clean, maintainable, modern Python code (versions 3.10-3.13).
Auto-invoke when users ask about:
Note : This skill is general Python standards , not Dagster-specific. Use /dagster-best-practices for Dagster patterns.
| User Need | Use This Skill | Alternative Skill |
|---|---|---|
| "make this pythonic" | ✅ Yes - Python standards | |
| "is this good python" | ✅ Yes - code quality | |
| "type hints" | ✅ Yes - typing guidance | |
| "LBYL vs EAFP" | ✅ Yes - exception patterns | |
| "pathlib vs os.path" | ✅ Yes - path handling | |
| "best practices for dagster" | ❌ No | /dagster-best-practices |
| "implement X pipeline" | ❌ No | /dg for implementation |
| "which integration to use" | ❌ No | /dagster-expert |
| "CLI argument parsing" | ✅ Yes - CLI patterns |
@dignified-python-core.md
Identify the project's minimum Python version by checking (in order):
pyproject.toml - Look for requires-python field (e.g., requires-python = ">=3.12")setup.py or setup.cfg - Look for python_requires.python-version file - Contains version like 3.12 or 3.12.0Once identified, load the appropriate version-specific file:
versions/python-3.10.mdversions/python-3.11.mdversions/python-3.12.mdversions/python-3.13.mdCore files above cover 80%+ of Python code patterns. Only load these additional files when you detect specific patterns:
Pattern detection examples:
references/cli-patterns.mdThe references/ directory contains detailed guidance organized by topic:
core-standards.md - Essential standards (always loaded)cli-patterns.md - Command-line interface patterns (click, argparse)references/versions/)python-3.10.md - Features available in Python 3.10+python-3.11.md - Features available in Python 3.11+python-3.12.md - Features available in Python 3.12+python-3.13.md - Features available in Python 3.13+references/advanced/)exception-handling.md - LBYL patterns, error boundariesinterfaces.md - ABC and Protocol patternstyping-advanced.md - Advanced typing patternsapi-design.md - API design principlesreferences/advanced/exception-handling.mdRead when :
from e or from Nonereferences/advanced/interfaces.mdRead when :
references/advanced/typing-advanced.mdRead when :
references/module-design.mdRead when :
references/api-design.mdRead when :
references/checklists.mdRead when :
Weekly Installs
179
Repository
GitHub Stars
73
First Seen
Jan 29, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex155
opencode151
github-copilot148
gemini-cli144
amp139
kimi-cli138
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
140,500 周安装
shadcn/ui + Tailwind CSS 实战:构建美观可访问的 React UI 组件与设计系统
4,400 周安装
前端设计技能:创建独特生产级界面,告别通用AI美学,实现创意前端开发
4,100 周安装
ClawDirect-Dev:基于ATXP构建面向AI智能体的网页身份验证与支付集成方案
4,300 周安装
FastAPI Python开发指南:高效后端API构建与最佳实践
4,300 周安装
PRD转Issues工具:AI辅助将产品需求文档分解为GitHub可执行任务
4,500 周安装
Firebase Data Connect 教程:PostgreSQL 关系型数据库与 GraphQL API 开发指南
5,300 周安装