← Back to Skills Marketplace
50
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install python-mutable-default-args
Description
A Python function uses a mutable object (list, dict, set) as a default argument, sharing state across calls in a way that produces silent bugs.
Usage Guidance
This skill is a harmless, text-only explanation of a Python coding pitfall and how to fix it. It requires no install, no credentials, and does not instruct the agent to read or transmit files. You can safely enable or use it to get guidance on mutable default arguments. If you plan to act on its suggestions, consider enabling linters (pylint/ruff) and running a repository-wide search for patterns like '=[]', '={}', and '=set()' to find instances to fix. If you want stricter assurance, review the SKILL.md yourself — it contains all runtime instructions and performs no external actions.
Capability Analysis
Type: OpenClaw Skill
Name: python-mutable-default-args
Version: 1.0.0
The skill bundle is purely educational, providing documentation and code examples regarding the 'mutable default arguments' pitfall in Python. It contains no executable code or malicious instructions, focusing instead on explaining a common coding error and its canonical fix (SKILL.md).
Capability Assessment
Purpose & Capability
Name and description match the SKILL.md content. The skill only explains a common Python pitfall and remediation; it requests no binaries, credentials, or config that would be unrelated to that purpose.
Instruction Scope
Instructions are limited to explaining the bug, showing safe code patterns, suggesting heuristics for searching code (signatures like '=[]', '={}', '=set()'), and recommending linters (pylint/ruff). The skill does not instruct the agent to read system files, access environment variables, or transmit data externally.
Install Mechanism
No install spec or code files are present (instruction-only). Nothing will be written to disk or executed by an installer as part of installing this skill.
Credentials
The skill requests no environment variables, credentials, or config paths. No sensitive access is required to accomplish the stated purpose.
Persistence & Privilege
always is false and the skill is user-invocable; autonomous invocation is allowed (platform default) but the skill's instructions are benign and do not require elevated or persistent system privileges.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install python-mutable-default-args - After installation, invoke the skill by name or use
/python-mutable-default-args - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of python-mutable-default-args skill.
- Explains Python's mutable default argument pitfall with examples and symptoms.
- Provides canonical workaround using None as the default.
- Highlights common detection strategies and linter rules.
- Applicable across macOS, Linux, and Windows platforms.
Metadata
Frequently Asked Questions
What is Python Mutable Default Args?
A Python function uses a mutable object (list, dict, set) as a default argument, sharing state across calls in a way that produces silent bugs. It is an AI Agent Skill for Claude Code / OpenClaw, with 50 downloads so far.
How do I install Python Mutable Default Args?
Run "/install python-mutable-default-args" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Python Mutable Default Args free?
Yes, Python Mutable Default Args is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Python Mutable Default Args support?
Python Mutable Default Args is cross-platform and runs anywhere OpenClaw / Claude Code is available (macos, linux, windows).
Who created Python Mutable Default Args?
It is built and maintained by mvogt99 (@mvogt99); the current version is v1.0.0.
More Skills