edwardzhang/sps-cli/python
Claude Code and agent skill by edwardzhang/sps-cli
- community
Checking that the SKILL.md file is still in the repository.
Python language skill — idioms, type hints, error handling, testing, async, packaging. Language-focused. Combine with end skills (`backend`, `frontend`, `mobile`) for architecture, and with persona skills (`backend-architect`, `code-reviewer`) for mindset.
Install
npx vskill@latest install edwardzhang/sps-cli/pythonSKILL.md
The same SKILL.md was published earlier as edwardzhang/sps-cli/python.
Python
Pythonic idioms, typing, error handling, async, testing, packaging. Language-focused only. Architecture decisions belong to end skills (backend, frontend, mobile); general principles (TDD cycle, "specific exceptions only", "tests before code") live in coding-standards.
When to load
- Task is a Python project (primary language)
- Reviewing Python code
- Setting up Python project structure, packaging, or tests
- Writing Python-specific logic (generators, decorators, context managers, type hints, async)
Core principles (The Zen of Python, abridged)
- Readability counts — clear > clever
- Explicit over implicit — no hidden side effects
- EAFP (Easier to Ask Forgiveness Than Permission) — prefer
try/exceptover pre-checks - Type hints on public APIs — modern 3.9+ syntax (
list[str]notList[str]); 3.12+ PEP 695 where available - Immutable defaults — never
def f(x=[]); useNone+x or []orfrozenset/tuple - Pathlib over os.path — modern filesystem access
- f-strings over
.format()/%formatting - `pyproject.toml` only — no
setup.py, norequirements.txtfor libraries
How to use references
Load detailed references on demand based on the task:
| Reference | When to load | |
|---|---|---|
| `references/idioms.md` | Core language idioms: EAFP, comprehensions, generators, decorators, context managers, match/case, walrus | |
| `references/typing.md` | Type hints, generics (PEP 695), protocols, type aliases, Self, @override, ParamSpec | |
| `references/error-handling.md` | Exception hierarchy, chaining, custom exceptions, exception groups / except* | |
| `references/async.md` | asyncio, TaskGroup, timeouts, cancellation, offloading blocking code | |
| `references/testing.md` | pytest, fixtures, parametrization, mocking, coverage, hypothesis | |
| `references/packaging.md` | pyproject.toml, uv, venv, project layout, publishing |
Forbidden patterns (auto-reject)
- Mutable default arguments (
def f(x=[])) — useNonesentinel except:without exception type — always name itimport *— explicit imports onlytime.sleep()/ blocking calls insideasync def— useawait asyncio.sleep()orasyncio.to_thread- Swallowing
asyncio.CancelledErrorwithout re-raising setup.pyin new projects — usepyproject.toml- Committing
.venv/or mixing envs with system Python - Dynamic typing in public APIs without type hints
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/python/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/edwardzhang/sps-cli/python)