← 返回 Skills 市场
mvogt99

Python Mutable Default Args

作者 mvogt99 · GitHub ↗ · v1.0.0 · MIT-0
macoslinuxwindows ✓ 安全检测通过
50
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
安全使用建议
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.
功能分析
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).
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install python-mutable-default-args
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /python-mutable-default-args 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug python-mutable-default-args
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 50 次。

如何安装 Python Mutable Default Args?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install python-mutable-default-args」即可一键安装,无需额外配置。

Python Mutable Default Args 是免费的吗?

是的,Python Mutable Default Args 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Python Mutable Default Args 支持哪些平台?

Python Mutable Default Args 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux, windows)。

谁开发了 Python Mutable Default Args?

由 mvogt99(@mvogt99)开发并维护,当前版本 v1.0.0。

💬 留言讨论