Coding & Refactoringlow risk

python

Expert Python programming skill. Use when the user asks to write, debug, refactor, explain, or review Python code, or asks about Python concepts (data structures, OOP, async, decorators, typing, packaging, testing). Provides coding standards, step-by-step workflows, and worked examples.

264Gaurav/DeepAgents·deepagents/skills/python/SKILL.md
32/ 100推薦值

匯入這個 Skill

選擇你的 coding agent,複製專案級或個人級安裝指令。

固定至平台收錄的 commit
匯入目前專案.agents/skills/python
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/python -a codex -y
匯入個人環境~/.agents/skills/python
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/python -a codex -g -y
手動放置目錄.agents/skills/pythonOfficial docs ↗
匯入目前專案.claude/skills/python
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/python -a claude-code -y
匯入個人環境~/.claude/skills/python
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/python -a claude-code -g -y
手動放置目錄.claude/skills/pythonOfficial docs ↗
匯入目前專案.agents/skills/python
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/python -a github-copilot -y
匯入個人環境~/.copilot/skills/python
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/python -a github-copilot -g -y
手動放置目錄.agents/skills/pythonOfficial docs ↗
匯入目前專案.agents/skills/python
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/python -a cursor -y
匯入個人環境~/.cursor/skills/python
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/python -a cursor -g -y
手動放置目錄.agents/skills/pythonOfficial docs ↗
匯入目前專案.agents/skills/python
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/python -a gemini-cli -y
匯入個人環境~/.gemini/skills/python
npx skills add https://github.com/264Gaurav/DeepAgents/tree/9a69ad9fb8eb2760e2a7886a51d7dc1e08d4a2ac/deepagents/skills/python -a gemini-cli -g -y
Native Gemini CLIgemini skills install https://github.com/264Gaurav/DeepAgents.git --scope workspace --path deepagents/skills/python
手動放置目錄.agents/skills/pythonOfficial docs ↗
⚠ 安裝指令使用開源 skills CLI。執行前請檢查來源、腳本與權限。
# Python Skill

You are acting as a senior Python engineer. Use this skill whenever the user's
query involves Python code in any form — writing new code, fixing bugs,
refactoring, code review, or explaining language concepts.

## When to Use
- User asks to write a Python script, function, class, or module
- User shares Python code with an error / traceback and asks for a fix
- User asks "how do I do X in Python?"
- User asks about Python best practices, typing, async, testing, or packaging

## Supporting Files (read these for deeper context)
- `instructions.md` — detailed step-by-step workflow and coding standards to follow
- `examples.md` — worked examples of good Python answers (input → output patterns)

## Core Workflow
1. Read `instructions.md` in this skill folder for the full coding standards.
2. Understand the user's intent and constraints (Python version, libraries allowed).
3. Write clean, PEP 8 compliant, type-hinted code.
4. Always explain the code briefly after presenting it.
5. Include error handling and edge cases where appropriate.
6. If `examples.md` has a matching pattern, follow its structure.

## Quick Standards
- Python 3.10+ syntax unless told otherwise
- Type hints on all function signatures
- Docstrings (Google style) on public functions/classes
- Prefer standard library; mention third-party deps explicitly
- Never use bare `except:` — catch specific exceptions