python
Write clean, readable Pythonic code. Use this skill any time you write or change a Python file.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write clean, readable Pythonic code. Use this skill any time you write or change a Python file.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use this when working in a project with devenv.nix, or when devenv.sh development environment setup, services, dependencies, or Nix packages are relevant.
Analyze Hacker News thread sentiment from a provided HN thread URL.
Builds Python components using the compone framework for type-safe HTML/XML/RSS generation. Use when working with compone, creating Python components, generating markup in Python, or building framework-agnostic component libraries.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
基于 SOC 职业分类
| name | python |
| description | Write clean, readable Pythonic code. Use this skill any time you write or change a Python file. |
datetime, import it like this: import datetime as dtTYPE_CHECKING guard
for type-only imports to avoid circular dependencies.Optional variables like this: value | NoneAny for "all types" instead of object.pytest for all testsmonkeypatch fixture, NEVER unittest.mock and NEVER
any of the Mock classes or patch functionconftest.pyunittest.mock or any of the Mock classes or patch function, never assert on method calls,
use real objects and assert on full results. When absolutely necessary and can't be avoided, use pytest.monkeypatch,
when the test setup would be too difficult or the code have side effects, but consider writing a fake.uv add for adding dependencies, never directly edit pyproject.toml files.click library instead of argparse, add it to dependencies if necessary.