← Back to Skills Marketplace
ivangdavila

Python

by Iván · GitHub ↗ · v1.0.1
linuxdarwinwin32 ✓ Security Clean
3494
Downloads
5
Stars
14
Active Installs
2
Versions
Install in OpenClaw
/install py
Description
Write reliable Python avoiding mutable defaults, import traps, and common runtime surprises.
README (SKILL.md)

Quick Reference

Topic File
Dynamic typing, type hints, duck typing types.md
List/dict/set gotchas, comprehensions collections.md
Args/kwargs, closures, decorators, generators functions.md
Inheritance, descriptors, metaclasses classes.md
GIL, threading, asyncio, multiprocessing concurrency.md
Circular imports, packages, init.py imports.md
Pytest, mocking, fixtures testing.md

Critical Rules

  • def f(items=[]) shares list across all calls — use items=None then items = items or []
  • is checks identity, == checks equality — "a" * 100 is "a" * 100 may be False
  • Modifying list while iterating skips elements — iterate over copy: for x in list(items):
  • GIL prevents true parallel Python threads — use multiprocessing for CPU-bound
  • Bare except: catches SystemExit and KeyboardInterrupt — use except Exception:
  • UnboundLocalError when assigning to outer scope variable — use nonlocal or global
  • open() without context manager leaks handles — always use with open():
  • Circular imports fail silently or partially — import inside function to break cycle
  • 0.1 + 0.2 != 0.3 — floating point, use decimal.Decimal for money
  • Generator exhausted after one iteration — can't reuse, recreate or use itertools.tee
  • Class attributes with mutables shared across instances — define in __init__ instead
  • __init__ is not constructor — __new__ creates instance, __init__ initializes
  • Default encoding is platform-dependent — always specify encoding='utf-8'
Usage Guidance
This skill is documentation-only and appears coherent with its purpose. It doesn't include executable code or ask for secrets. Before installing, confirm your agent sandbox: if the agent is permitted to execute python3 or access local files, the agent could (independently of this skill) run Python code you provide — that's a general platform permission concern, not an issue with this skill. If you want extra caution, keep the agent's execution rights and file access restricted, and verify the system python3 version matches what you expect.
Capability Analysis
Type: OpenClaw Skill Name: py Version: 1.0.1 The OpenClaw AgentSkills bundle consists entirely of markdown files providing educational content on common Python programming pitfalls and best practices. The `SKILL.md` defines the skill as a reference for writing reliable Python and specifies a `python3` dependency, which is appropriate. There is no executable code, no instructions for the agent that could lead to prompt injection, data exfiltration, or any other malicious activity. All content is purely informational and aligns with the stated purpose.
Capability Assessment
Purpose & Capability
Name, description, and required binary (python3) align with a Python guidance helper. The content is documentation on common Python pitfalls and does not request unrelated credentials or tools. Minor metadata inconsistency: registry slug is 'py' while SKILL.md uses slug 'python' — likely cosmetic and not a security issue.
Instruction Scope
SKILL.md and the included .md files are documentation-only; they do not instruct the agent to read arbitrary files, send data externally, or run network requests. There are no open-ended directives that would give the agent broad discretion to collect or exfiltrate data.
Install Mechanism
No install spec and no code files to write or execute. This is the lowest-risk form (instruction-only).
Credentials
The skill requests no environment variables, credentials, or config paths. Requesting only python3 is proportionate for a Python guidance skill.
Persistence & Privilege
Defaults (always: false, model invocation allowed) are appropriate. The skill does not request permanent presence or system-wide changes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install py
  3. After installation, invoke the skill by name or use /py
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Initial release
v1.0.0
Initial release
Metadata
Slug py
Version 1.0.1
License
All-time Installs 15
Active Installs 14
Total Versions 2
Frequently Asked Questions

What is Python?

Write reliable Python avoiding mutable defaults, import traps, and common runtime surprises. It is an AI Agent Skill for Claude Code / OpenClaw, with 3494 downloads so far.

How do I install Python?

Run "/install py" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Python free?

Yes, Python is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Python support?

Python is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).

Who created Python?

It is built and maintained by Iván (@ivangdavila); the current version is v1.0.1.

💬 Comments