python
Skill16 starsChanged 4 months agoMITView on GitHub
Apply these opinionated Python 3.11+ conventions when writing Python in this codebase: type hints with mypy, async/await, pytest fixtures, dataclasses, Poetry packaging, production patterns.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- niksavis/basiclytheir own version, first seen Oct 5, 2026
- lgzarturo/codeconductortheir own version, first seen Sep 30, 2026
- kissgyorgy/coding-agentstheir own version, first seen Sep 20, 2026
- jdharmon/skillstheir own version, first seen Sep 8, 2026
- erikhoward/agent-toolstheir own version, first seen Sep 7, 2026
- jawwad-ali/claude-code-skillstheir own version, first seen Sep 5, 2026
Used with
Projects with it also use cicd, fastapi and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ffsshhttiikkSkillcicd
Continuous integration and delivery pipelines
Also in 3 projects that use this
martinholovskySkillfastapi
REST API and WebSocket development with FastAPI emphasizing security, performance, and async patterns
Also in 3 projects that use this
0xSeroSkillsecurity
Also in 7 projects that use this
akornmeierSkilldocker
Guide for using Docker - a containerization platform for building, running, and deploying applications in isolated containers. Use when containerizing applications, creating Dockerfiles, working with Docker Compose, managing images/containers, configuring networking and storage, optimizing builds, deploying to production, or implementing CI/CD pipelines with Docker.
Also in 4 projects that use this
MicrosoftSkillcode-quality
Statically check changed C# against the same deterministic rules github-code-quality[bot] runs on pull requests, so a contributor can fix likely findings before opening the PR and keep the bot's inline comments to a minimum. Activate when a contributor asks to "check code quality", "run code quality on my changes", "will the code quality bot complain", "pre-check before I open the PR", "code quality check", or similar. Scoped to C#. Reads the diff and compares it against the enumerated csharp-code-quality rule set below — no CodeQL download or build required. This is a fast approximation of a dataflow engine, not a reproduction; report accordingly. Does NOT apply fixes unless explicitly asked.
Also in 3 projects that use this
shanggqmSkilldata-analysis
数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。
Also in 3 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- alinaqi/maggy★ 707same name
- Mindrally/skills★ 266same name
- martinholovsky/claude-skills-generator★ 47same name
- neuron-one/GODMODE★ 33same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- siviter-xyz/dot-agent★ 22same name
- sordi-ai/skill-everything★ 20same name
- kissgyorgy/coding-agents★ 15same name
- jnotsknab/mux-swarm★ 9same name
- Cogni-AI-OU/cogni-ai-agent-skills★ 4same name
16 more not listed
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 repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- csharpSkill
- documentationSkill
- dotnet-coreSkill
- humanize-textSkill
- javascriptSkill
- jira-report-commentSkill
- legacy-modernizationSkill
- nestjsSkill
- nextjsSkill
- reactSkill
- simple-englishSkill
- spec-miningSkill
- testingSkill
- typescriptSkill
The file
Files
Python
House conventions for Python 3.11+. Apply them to code you are writing or changing — don't refactor untouched files to match unless asked.
Conventions
- Type every public signature and keep
mypy --strictgreen. Types on internals are optional; types at the boundary are what stop a caller passing the wrong thing. - Built-in generics and
X | None—list[str],dict[str, int],str | None.typing.ListandOptional[str]are the pre-3.10 spelling and only cost an import. Protocolover ABC inheritance. Structural typing lets any correctly-shaped object satisfy the contract — including a test double — with no inheritance tree to maintain.- Dataclasses for data,
slots=Trueandfrozen=Truewhere they fit. They generate__init__,__repr__, and__eq__correctly; a hand-written__init__is where field drift starts. Pydantic is for validation and (de)serialisation at a boundary, not for plain records. pathlib, notos.path. Operator joins can't silently produce a wrong path from a stray separator.- Never a mutable default argument.
def f(items=[])shares one list across every call — a bug that only appears on the second call. Default toNoneand build inside. asyncio.TaskGroupover baregather(3.11+): it cancels siblings on failure and reports viaExceptionGroup, so a crashed task can't leave the rest running detached. Useasync with asyncio.timeout(n)for deadlines.Hold a reference to every
create_task. The event loop only keeps a weak reference, so a fire-and-forget task can be garbage-collected mid-execution and simply vanish — no error, no result. Keep them in asetand discard on completion:_tasks: set[asyncio.Task[None]] = set() def spawn(coro: Coroutine[None, None, None]) -> None: task = asyncio.create_task(coro) _tasks.add(task) task.add_done_callback(_tasks.discard)- Never a bare
except:— it swallowsKeyboardInterruptandSystemExit. Catch what you can actually handle. - Google-style docstrings on public functions and classes, carrying intent rather than a restatement of the signature. The
documentationskill has the full rule. - pytest: fixtures for setup,
parametrizefor cases. A loop inside one test reports a single failure and hides which case broke;parametrizenames each one. - Poetry and
pyproject.tomlfor packaging, ruff for lint and format, and apy.typedmarker on any package whose types consumers should see. Use asrc/layout — it stops tests from importing the working directory instead of the installed package, which is how a broken package still passes its own suite.
Tooling baseline
strict = true covers most of it; these add the checks that catch real bugs rather than style. --strict-markers matters more than it looks: without it a typo'd @pytest.mark.integraton silently does nothing and the test runs where you thought it was excluded.
[tool.mypy]
strict = true
warn_unreachable = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "untyped_dep.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = ["-ra", "--strict-markers", "--strict-config"]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.

