一键导入
python
Python coding standards, patterns, and best practices. Use when writing, reviewing, or refactoring Python code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Python coding standards, patterns, and best practices. Use when writing, reviewing, or refactoring Python code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | python |
| description | Python coding standards, patterns, and best practices. Use when writing, reviewing, or refactoring Python code. |
| paths | ["**/*.py","**/pyproject.toml","**/requirements*.txt"] |
| compatibility | Python 3.9+ |
| allowed-tools | Bash(python *) Bash(uv *) Bash(uvx ruff *) Bash(uvx pyright *) Bash(uvx pytest *) |
Covers Python development standards: clean code, design patterns, testing, static analysis, concurrency, and IPC.
| File | Contents |
|---|---|
clean-code.md | PEP 8, naming, type hints, docstrings, anti-patterns |
patterns.md | Strategy, Observer, Decorator, Context Manager, dataclasses |
testing.md | Pytest, fixtures, parametrize, mocking, coverage config |
static-analysis.md | Ruff + Pyright config, pyproject.toml examples |
parallel.md | Threading, multiprocessing, asyncio, race conditions |
ipc.md | HTTP/REST, WebSockets, multiprocessing queues, Redis |
| Convention | Rule |
|---|---|
| Modules/packages | lowercase_with_underscores |
| Classes | PascalCase |
| Functions/variables | lowercase_with_underscores |
| Constants | UPPER_SNAKE_CASE |
| Private members | _leading_underscore |
| Type hints | Required on all public functions |
| Line length | 88 chars (Ruff default) |
Camoufox persistent browser automation — anti-bot bypass, CAPTCHA solving, SSO/cookie injection, and headless control patterns. Covers the interactive CLI server, route interception, Capsolver integration, PerimeterX/Cloudflare bypass, Angular/React SPA automation, Firefox cookie extraction, and security incident response. Use when user needs persistent browser automation on anti-bot sites or security incident handling. Triggers: Camoufox, anti-bot, CAPTCHA, Cloudflare bypass, cookie injection, stealth browser, session theft, security incident, Clerk revocation
Build, redesign, or critique presentation slides and decks that are grounded in cognitive science — Assertion-Evidence structure, minimal cognitive load, Picture-Superiority, strict visual hierarchy, WCAG accessibility — and free of generic "AI-slop." Use this whenever the user wants to make a presentation, build or improve a slide deck, create a pitch deck, fix ugly / overloaded / text-heavy slides, prepare a talk or lecture, or mentions slides, deck, PowerPoint, Keynote, Google Slides, or Slidev — even if they never say the words "good design." Also use when reviewing an existing deck for clarity, hierarchy, overflow, contrast, or signs of generic AI generation. The skill builds decks as Slidev (Markdown + HTML/CSS) and self-verifies by rendering to images and actually looking at them before delivering.
React/TypeScript coding standards, patterns, and best practices. Use when writing, reviewing, or refactoring React code.
C++ coding standards, patterns, and best practices. Use when writing, reviewing, or refactoring C++ code.
C# coding standards, patterns, and best practices. Use when writing, reviewing, or refactoring C# code.