Python
Skill1 starsChanged 3 months agoMITView on GitHub
Write reliable Python avoiding mutable defaults, import traps, and common runtime surprises.
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 typescript, cicd and 8 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.
MicrosoftSkilltypescript
Use this guide when working on TypeScript changes in the FAST monorepo — authoring Web Components, writing templates and styles, working with the observable/reactive system, and testing.
Also in 9 projects that use this
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
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
- alexander-danilenko/cortex-ai-skills★ 16same name
- kissgyorgy/coding-agents★ 15same name
- jnotsknab/mux-swarm★ 9same 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 repository198 other files it gives its agents.
- activecampaignSkill
- adcp-advertisingSkill
- admapixSkill
- aegis-auditSkill
- afrexai-compliance-auditSkill
- afrexai-seo-content-engineSkill
- agent-browserSkill
- Agentic CodingSkill
- agent-overflowSkill
- agent-skills-toolsSkill
- ai-ppt-generatorSkill
- airdrop-hunterSkill
- ai-web-automationSkill
- alicloud-ai-video-wan-r2vSkill
- alpha-finderSkill
- amap-trafficSkill
- amazon-product-api-skillSkill
- apertureSkill
- api-developmentSkill
- api-gatewaySkill
- asterSkill
- auto-replySkill
- auto-updater-gatewaySkill
- aviation-weatherSkill
- awwwards-designSkill
- base-8004Skill
- bioskillsSkill
- brainrepoSkill
- browserless-agentSkill
- browser-secureSkill
- btc15-autonomous-marketSkill
- buy-anythingSkill
- byteroverSkill
- cal-com-automationSkill
- capability-evolverSkill
- catalogSkill
- chargebeeSkill
- clawcostSkill
- clawdbot-documentation-expertSkill
- clawdbot-for-vcsSkill
- clawddocsSkill
- claw-syncSkill
- claw-trader-liteSkill
- clean-codeSkill
- cloudphoneSkill
- codebergSkill
- code-mentorSkill
- commit-analyzerSkill
- competitor-analysis-reportSkill
- content-ideas-generatorSkill
- content-ideasSkill
- contract-generatorSkill
- conventional-commitsSkill
- copywritingSkill
- crypto-payments-ecommerceSkill
- custom-smtp-senderSkill
- dashboard-manager2Skill
- data-analystSkill
- docker-sandboxSkill
- elite-longterm-memorySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Import order matters for monkey patching — patch before target module imports patched module
- Distinctive: line 23
Default argument values bound at definition — closure over loop variable captures final value
- Very specific: line 60
Default encoding is platform-dependent — always specify encoding='utf-8'
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mutable Default Arguments
def f(items=[])shares list across all calls — useitems=Nonethenitems = items or []- Same for dicts, sets, any mutable — default evaluated once at definition, not per call
- Class attributes with mutables shared across instances — define in
__init__instead
Import Traps
- Circular imports fail silently or partially — import inside function to break cycle
from module import *pollutes namespace — explicit imports always- Relative imports require package context —
python -m package.modulenotpython module.py - Import order matters for monkey patching — patch before target module imports patched module
__init__.pyruns on package import — keep it minimal
Scope Gotchas
UnboundLocalErrorwhen assigning to variable that exists in outer scope — usenonlocalorglobal- List comprehension has own scope, but loop variable leaks in Python 2 — not 3
except Exception as e—eis deleted after except block in Python 3- Default argument values bound at definition — closure over loop variable captures final value
String Pitfalls
isvs==:ischecks identity,==checks equality —"a" * 100 is "a" * 100may be False- f-strings evaluate at runtime —
f"{obj}"calls__str__each time str.split()vsstr.split(' ')— no arg splits on any whitespace and removes empties- Unicode normalization:
'café' != 'café'if composed differently — useunicodedata.normalize()
Iteration Traps
- Modifying list while iterating skips elements — iterate over copy:
for x in list(items): - Dictionary size change during iteration raises RuntimeError — copy keys:
for k in list(d.keys()): - Generator exhausted after one iteration — can't reuse, recreate or use
itertools.tee range()doesn't include end —range(5)is 0,1,2,3,4
Class Gotchas
__init__is not constructor —__new__creates instance,__init__initializes- Method resolution order (MRO) in multiple inheritance — use
super()correctly or break chain @propertymakes attribute read-only unless you add setter__slots__breaks__dict__and dynamic attributes — can't add new attributes- Mutable class attribute shared by all instances — each instance modifying same list
Exception Handling
- Bare
except:catchesSystemExitandKeyboardInterrupt— useexcept Exception: except A, B:is syntax error in Python 3 — useexcept (A, B):- Exception chaining:
raise NewError() from originalpreserves context finallyruns even on return — return in finally overrides try's returnelsein try/except runs only if no exception — often clearer than flag variable
Numeric Surprises
0.1 + 0.2 != 0.3— floating point, usedecimal.Decimalfor money- Integer division:
//always floors toward negative infinity —-7 // 2is -4, not -3 boolis subclass ofint—True + True == 2- Large integers have no overflow — but operations get slow
isfails for large integers — only small ints (-5 to 256) are cached
File and I/O
open()without context manager leaks file handles — always usewith open():- Default encoding is platform-dependent — always specify
encoding='utf-8' read()loads entire file to memory — usereadline()or iterate for large files- Binary mode
'rb'required for non-text — Windows line endings differ in text mode
Concurrency
- GIL prevents true parallel Python threads — use multiprocessing for CPU-bound
- Threading still useful for I/O-bound — network, file operations release GIL
async/awaitis not threading — single-threaded cooperative multitaskingmultiprocessingshares nothing by default — use Queue or Manager for communication- Daemon threads killed abruptly on exit — may corrupt data
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.

