python-standard
Skill2 starsChanged 5 days agoMITView on GitHub
Standards and workflows for implementing, reviewing, debugging, packaging, testing, and refactoring Python code. Use when working on Python applications, scripts, libraries, APIs, CLIs, data processing jobs, async code, dependency management, pyproject/setup files, pytest tests, type checking, linting, or production hardening. Prefer this skill for existing Python repositories where the agent must detect the runtime, package manager, framework, and local conventions before changing code.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- deepdivesecurity/ai-orchestration-templatetheir own version, first seen Mar 2, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- deepdivesecurity/ai-orchestration-template★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository50 other files it gives its agents.
- angular-standardSkill
- business-analyst-standardSkill
- execute-browser-verifySkill
- execute-build-testSkill
- execute-debug-evidenceSkill
- execute-implementationSkill
- jira-ba-dev-test-flowSkill
- nestjs-standardSkill
- professional-slidesSkill
- senior-angularSkill
- senior-api-designSkill
- senior-backend-engineerSkill
- senior-business-analystSkill
- senior-cicdSkill
- senior-cloud-serverSkill
- senior-code-reviewSkill
- senior-delivery-orchestratorSkill
- senior-designSkill
- senior-dockerSkill
- senior-dotnetSkill
- senior-flutterSkill
- senior-frontend-engineerSkill
- senior-git-workflowSkill
- senior-goSkill
- senior-java-springSkill
- senior-kubernetesSkill
- senior-manual-testingSkill
- senior-mongodbSkill
- senior-mysqlSkill
- senior-nestjsSkill
- senior-nextjsSkill
- senior-nodejsSkill
- senior-observabilitySkill
- senior-performanceSkill
- senior-postgresqlSkill
- senior-python-backendSkill
- senior-react-nativeSkill
- senior-reactSkill
- senior-redisSkill
- senior-refactoringSkill
- senior-securitySkill
- senior-sql-serverSkill
- senior-tech-leadSkill
- senior-technical-writingSkill
- senior-terraformSkill
- senior-test-automationSkill
- senior-test-engineerSkill
- senior-vueSkill
- solution-architect-standardSkill
- tester-standardSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill to make Python changes that fit the repository's runtime, packaging, typing, and test conventions.
- Distinctive: line 13
Prefer existing patterns over new abstractions.
- Distinctive: line 14
Keep public APIs, CLI flags, serialized schemas, database migrations, and file formats backward-compatible unless the request says …
- Distinctive: line 15
Use type hints for new or changed code when the project is typed.
- Distinctive: line 17
Verify with the narrowest useful command: targeted pytest, typecheck, lint/format check, package build, or the repo's own scripts.
- Distinctive: line 21
Before changing Python code, identify:
- Distinctive: line 26
Test stack: pytest, unittest, tox, nox, coverage, hypothesis.
- Distinctive: line 32
Read only what the task needs:
- Distinctive: line 42
Add or update tests around changed behavior, especially edge cases and error paths.
- Distinctive: line 43
Update dependency/config files only when required, using the repo's package manager.
- Distinctive: line 44
Run focused verification and report any command that cannot run.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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 Standard
Use this skill to make Python changes that fit the repository's runtime, packaging, typing, and test conventions. Do not impose a framework or toolchain before discovering what the project already uses.
Operating Rules
- Inspect the project before editing: Python version, package manager, framework, test runner, type checker, linter/formatter, and entry points.
- Prefer existing patterns over new abstractions. Add dataclasses, Pydantic models, async APIs, dependency injection, or package restructuring only when the task benefits from them.
- Keep public APIs, CLI flags, serialized schemas, database migrations, and file formats backward-compatible unless the request says otherwise.
- Use type hints for new or changed code when the project is typed. Do not perform noisy whole-repo typing conversions during small fixes.
- Separate pure logic from I/O where it improves testability. Keep scripts executable and libraries importable.
- Verify with the narrowest useful command: targeted pytest, typecheck, lint/format check, package build, or the repo's own scripts.
Discovery Checklist
Before changing Python code, identify:
- Python version from
.python-version,pyproject.toml,runtime.txt, Dockerfile, CI, or README. - Package manager:
uv, Poetry, PDM, Hatch, pip-tools, pip/venv, Conda. - Framework: FastAPI, Django, Flask, Typer/Click, Celery/RQ, pandas, notebooks, plain scripts.
- Test stack: pytest, unittest, tox, nox, coverage, hypothesis.
- Quality tools: ruff, black, isort, mypy, pyright, pylint, pre-commit.
- Config files:
pyproject.toml,setup.cfg,tox.ini,.pre-commit-config.yaml, CI workflows.
Reference Routing
Read only what the task needs:
references/project-environment.md: packaging, dependencies, environments, entry points, config.references/code-design.md: Python design, typing, dataclasses/Pydantic, errors, async, I/O boundaries.references/testing-quality.md: pytest, mocks, fixtures, coverage, type/lint/format verification.
Implementation Workflow
- Find the closest existing module/test and mirror its style.
- Make the smallest behavioral change first.
- Add or update tests around changed behavior, especially edge cases and error paths.
- Update dependency/config files only when required, using the repo's package manager.
- Run focused verification and report any command that cannot run.
Review Workflow
Prioritize findings in this order:
- Incorrect behavior, data loss, security issues, unsafe deserialization, path traversal, command injection, or secret leaks.
- Broken async/concurrency behavior, resource leaks, file/socket/session cleanup gaps.
- Public API, CLI, schema, or migration regressions.
- Missing tests for changed behavior and brittle tests that mock the wrong boundary.
- Typing, lint, and maintainability issues that hide real defects.
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.

