← 返回 Skills 市场
liyulingyue

ai-wallpaper-skill

作者 张春乔 · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ⚠ suspicious
92
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install ai-wallpaper-skill
功能描述
一个能够根据用户提示词生成 AI 图片并自动将其设置为桌面壁纸的能力模块。当用户提到“换壁纸”、“生成桌面”、“设置背景”等需求时触发。当前实现支持 Windows 和 macOS。
使用说明 (SKILL.md)

\r \r

Instructions\r

\r

核心原则\r

  • 这是一个面向 Windows 和 macOS 的桌面增强能力模块。\r
  • 当前版本支持 Windows 和 macOS;Linux 暂未接入。\r
  • 必须获取用户的 prompt(描述壁纸内容的提示词)。\r
  • 必须获取 API 访问权限:\r
  • Python 依赖为 openai 包;该脚本通过 OpenAI 兼容协议访问百度端点。\r \r

执行步骤\r

  1. 环境检查: 确认当前系统为 Windows 或 macOS。\r
  2. 生成并配置: 调用 scripts/wallpaper_skill.py 脚本,将用户的提示词作为输入。该脚本将自动执行以下操作:\r
    • 调用 AI API 生成图片。\r
    • 将图片保存至 assets/wallpaper.png。\r
    • 在 Windows 上通过 SPI 接口即时更新桌面壁纸;在 macOS 上通过 osascript 更新所有桌面空间的壁纸。\r \r

输出反馈\r

  • 成功后告知用户壁纸已更新,并提及图片已持久化存储在 assets/ 目录下。\r
安全使用建议
This skill's behavior is largely consistent with its description: it generates an image and sets it as your wallpaper. Before installing or running it: (1) confirm the BAIDU_API_KEY requirement — the registry metadata did not list it, but the script does need it; (2) only supply an API key you trust and avoid changing --base_url unless you know the endpoint is safe; (3) review the included scripts/wallpaper_skill.py yourself (it is short and readable) and run in a controlled environment first; (4) on macOS you must grant System Events automation permission for wallpaper changes; (5) if you have concerns about exporting images or keys, run the script offline or with a test key. If you want higher assurance, ask the publisher for a canonical homepage or repository and a clarification of the declared metadata.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The code and SKILL.md match the stated purpose: they generate an image via an OpenAI-compatible API and set it as the desktop wallpaper on Windows/macOS. However, registry metadata (top-level requirements) lists no required env vars while SKILL.md and the script both require an API key (BAIDU_API_KEY). This mismatch between declared registry metadata and the runtime instructions is an incoherence that should be resolved.
Instruction Scope
SKILL.md instructs only to check platform, obtain a prompt and API token, run the included Python script which calls the image API, writes assets/wallpaper.png, and updates the system wallpaper via platform-appropriate APIs. The instructions do not direct the agent to read unrelated system files, collect other credentials, or transmit data to unexpected external endpoints (default endpoint is Baidu AIStudio).
Install Mechanism
There is no install spec — the skill is executed by running the included Python script. Dependencies are minimal and explicit (requirements.txt uses the openai package). No network downloads or archive extraction are embedded in an installer.
Credentials
The script and SKILL.md require an API key (BAIDU_API_KEY) to call an external image-generation API; that is proportionate to the stated functionality. Two concerns: (1) the registry metadata did not declare this required environment variable, creating a mismatch the user should notice; (2) the script allows overriding --base_url, which is useful for legitimate testing but also means a user (or attacker with local access) could point the client at an arbitrary endpoint to receive generated images or accept uploaded content. Verify you only provide API keys to trusted endpoints and do not run the script with a modified base_url from untrusted sources.
Persistence & Privilege
The skill does not request permanent 'always' inclusion, does not modify other skills, and does not write to system-wide configs beyond storing the generated image in assets/ and calling standard OS APIs to set wallpaper. macOS requires granting Automation permission for 'System Events' — the script notes this.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ai-wallpaper-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ai-wallpaper-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Now supports both Windows and macOS platforms for AI-generated wallpaper setting. - Updated instructions and metadata to reflect macOS compatibility. - Linux platform is not yet supported. - No code changes detected; improvements are in documentation only.
v1.0.2
- Updated SKILL.md metadata for BAIDU_API_KEY to clarify it requires a "Baidu AIStudio AccessToken". - No functional or behavioral changes; documentation refinement only.
v1.0.1
ai-wallpaper-skill v1.0.1 - Added requirements.txt for dependency management. - Updated documentation to specify Windows-only support and outline future cross-platform plans. - Clarified the need for the BAIDU_API_KEY environment variable. - Noted that the Python dependency on openai is required for API requests. - Improved metadata to include platform and required environment variables.
v1.0.0
ai-wallpaper-skill 1.0.0 - Initial release: generate AI wallpapers from user prompts and set them as Windows desktop backgrounds. - Guides users to obtain necessary API credentials from Baidu AIStudio. - Automatically saves wallpapers in the assets/ directory for future access. - Designed for Windows platforms only; verifies environment before execution.
元数据
Slug ai-wallpaper-skill
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

ai-wallpaper-skill 是什么?

一个能够根据用户提示词生成 AI 图片并自动将其设置为桌面壁纸的能力模块。当用户提到“换壁纸”、“生成桌面”、“设置背景”等需求时触发。当前实现支持 Windows 和 macOS。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 92 次。

如何安装 ai-wallpaper-skill?

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

ai-wallpaper-skill 是免费的吗?

是的,ai-wallpaper-skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

ai-wallpaper-skill 支持哪些平台?

ai-wallpaper-skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ai-wallpaper-skill?

由 张春乔(@liyulingyue)开发并维护,当前版本 v1.0.3。

💬 留言讨论