neo-python
Skill7 starsChanged 6 months agoMITView on GitHub
Use this skill when writing, reviewing, debugging, or architecting Python 3.10+ code, including type hints, structural pattern matching, dataclasses, async/task groups, packaging-aware project structure, testability, and maintainability.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- generate-skillSkill
- neo-azure-pipelinesSkill
- neo-clarificationSkill
- neo-clean-architectureSkill
- neo-code-reviewSkill
- neo-csharp-interface-generatorSkill
- neo-csharpSkill
- neo-dotnet-ef-coreSkill
- neo-dotnet-minimal-apisSkill
- neo-dotnet-mvcSkill
- neo-dotnetSkill
- neo-dotnet-tag-helperSkill
- neo-dotnet-webapiSkill
- neo-harness-projectSkill
- neo-harnessSkill
- neo-javascriptSkill
- neo-opentelemetrySkill
- neo-prSkill
- neo-python-managerSkill
- neo-rabbitmqSkill
- neo-rustSkill
- neo-stop-slopSkill
- neo-sub-agentSkill
- neo-swiftSkill
- neo-swift-uiSkill
- neo-typescriptSkill
- neo-vueSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Write Python code with complete Type Hints, prioritizing the X | Y syntax.
- Very specific: line 32
Prefer modern language features: match statements (3.10+), TaskGroup (3.11+), and new generic syntax (3.12+).
- Distinctive: line 33
Ensure code passes static analysis and unit tests.
- Very specific: line 37
PEP 8 Compliance: Follow official style guidelines.
- Very specific: line 38
Async Processing: Use 3.11+ asyncio.TaskGroup to manage concurrent tasks.
- Very specific: line 39
Error Handling: Use specific exception types and leverage 3.11+ ExceptionGroup and except* syntax.
- Distinctive: line 56
All public APIs should have complete type hints.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Python 3.10+ Expert Skill
Trigger On
- The user asks to write, debug, review, or refactor Python code.
- Working in a repository containing
*.py,pyproject.toml,requirements.txt,Pipfile, orpoetry.lock. - Requires asynchronous programming (
asyncio), type hinting, or modern Python feature recommendations. - The project needs setup for testing frameworks (
pytest) or static analysis tools (ruff,mypy).
Workflow
- Perceive:
- Inspect the project root to identify package management tools:
pyproject.toml(Poetry/PDM/Ruff),requirements.txt(pip), orenvironment.yml(Conda). - Probe for Python version requirements (ensure compatibility with 3.10+ minimum).
- Identify the application type: Web API (FastAPI, Flask, Django), Data Science (Pandas, PyTorch), or CLI tools.
- Inspect the project root to identify package management tools:
- Reason:
- Evaluate if the current code follows modern Python (3.10+) idioms (e.g.,
match/case,|union types). - Decide if type checking (MyPy/Pyright) or auto-formatting (Ruff/Black) needs to be introduced.
- Recommend appropriate architectural patterns based on project scale.
- Evaluate if the current code follows modern Python (3.10+) idioms (e.g.,
- Act:
- Write Python code with complete Type Hints, prioritizing the
X | Ysyntax. - Prefer modern language features:
matchstatements (3.10+),TaskGroup(3.11+), and new generic syntax (3.12+). - Ensure code passes static analysis and unit tests.
- Write Python code with complete Type Hints, prioritizing the
Coding Standards
- Type Hinting: Strongly recommended for all function signatures. Use 3.10+ union syntax like
list[int | str]. - PEP 8 Compliance: Follow official style guidelines. Recommended to use
ruffas a linter and formatter for consistency. - Async Processing: Use 3.11+
asyncio.TaskGroupto manage concurrent tasks. - Error Handling: Use specific exception types and leverage 3.11+
ExceptionGroupandexcept*syntax.
Tooling Recommendations
- Linter / Formatter:
ruff(high performance and highly integrated). - Type Checker:
mypyorpyright. - Testing:
pytestwithpytest-asyncioorpytest-cov. - Package Management:
Poetryoruvto ensure dependency locking and environment consistency.
Deliver
- Code Quality Report: Identify parts that do not comply with 3.10+ modern syntax or PEP 8.
- Best Practice Recommendations: Provide specific refactoring suggestions, such as converting complex logic into
match/casestructures. - Validated Code: Provide Python source code accompanied by test cases and passed type checks.
Validate
- Code must run in a Python 3.10+ environment.
- Functions should have Docstrings (following Google or NumPy styles).
- Complex logic should include unit tests.
- All public APIs should have complete type hints.
Documentation
Official References
Internal References
- Modern Python syntax evolution (3.10-3.14) and PEP 8 naming conventions
- Recommended modern Python 3.10 - 3.14 development patterns and best practices
- Outdated Python practices to avoid, common pitfalls, and security traps
- Intelligent detection and management of Python project virtual environments and dependency tools
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

