A specialized tool for identifying and remediating Python functions that use mutable objects as default arguments to prevent silent state sharing.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install python-mutable-default-args
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install python-mutable-default-args using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Python Mutable Default Arguments skill addresses a notorious technical debt issue where Python evaluates default argument values only once at function definition. When a list, dictionary, or set is used as a default, that specific object is shared across all function calls, leading to data leakage and unpredictable behavior.
Integrating this into your Openclaw Skills workflow ensures that these silent bugs are caught before they reach production. By replacing mutable defaults with the canonical None-check pattern, this skill maintains function purity and ensures that every invocation starts with a fresh, empty state as intended by the developer.
To enable this capability within your Openclaw Skills environment, ensure your workspace is configured for Python analysis. You can trigger the remediation flow via CLI:
# Install the skill package
claw-cli install python-mutable-default-args
# Run a scan on your local Python files
claw-cli scan --skill python-mutable-default-args ./src
The skill analyzes function metadata and applies transformations based on the following taxonomy:
| Attribute | Description |
|---|---|
| Language | Python (3.x recommended) |
| Detected Patterns | =[], ={}, =set(), =[] |
| Remediation Pattern | arg=None with if arg is None: arg = [] |
| Metadata | Compatible with macOS, Linux, and Windows environments |
Loading
A guide for detecting and mitigating performance degradation caused by AI models reaching their context window limits during long sessions.

A high-performance search skill for X/Twitter that fetches raw tweet data and engagement metrics for AI agents.

An advanced legal automation tool that identifies contract risks and programmatically modifies Word documents based on professional legal analysis.

An AI-powered imaging skill designed to generate professional, high-fidelity product mockup photos for ecommerce platforms and marketing materials.

A comprehensive data skill providing deep insights into Barcelona's tech ecosystem, economic drivers, and historical evolution.

A diagnostic and corrective skill focused on identifying and fixing AI outputs that appear correct but address the wrong task due to prompt ambiguity.








































