openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > mac-wallpaper-changer

自动更换 Mac 壁纸、壁纸智能推荐与偏好学习。凡涉及壁纸相关操作,都应优先使用此技能:换壁纸、更换桌面背景、 Mac wallpaper、自动换壁纸(cron/定时任务)、按关键词搜索壁纸(如"上海夜景"、"mountain sunset")、 壁纸评分与喜好统计、壁纸推荐、位置配置。支持 Bing 每日精选...

系统与自动化

作者:Jian Yu @akayj

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.1

统计:⭐ 0 · 203 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :良性

Package:akayj/mwc

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The code and instructions are consistent with a macOS wallpaper changer: it downloads images from Unsplash/Bing/Picsum, stores logs and preferences under your home directory, and sets wallpapers — nothing in the bundle indicates unrelated or hidden exfiltration behavior, but the package omits some runtime requirements in its registry metadata and performs privileged local actions (process restart, file writes).

目的

The name/description match the included scripts (change.py, daily.py, recommend.py, preference.py, loc.py). All network calls and file operations are directly related to downloading, recommending, storing, and applying wallpapers. Minor inconsistency: SKILL.md and script headers require 'uv' and Python >=3.12 plus Python packages (polars, duckdb, pyobjc) but the registry metadata lists no required binaries/dependencies — the runtime will need …

说明范围

Runtime instructions (SKILL.md) and the scripts only reference wallpaper-related data and local config under the user's home (~/wallpaper-daily, ~/.wallpaper_prefs.json). The scripts call external image endpoints (Unsplash NAPI, Bing, Picsum) which is expected. They do not attempt to read unrelated system files or random credentials.

安装机制

No install specification is provided (instruction-only), which reduces installer risk. However the scripts include shebang metadata indicating Python >=3.12 and dependencies; the skill will require installing packages (polars, duckdb, pyobjc, etc.) and the 'uv' runner to execute. That mismatch (no declared runtime requirements in registry) is an operational omission the user should resolve before running.

证书

No required environment variables are declared. The code optionally reads UNSPLASH_ACCESS_KEY (for Unsplash API) and references an embedding config (assets template and references mention api_key or WALLPAPER_EMBEDDING_CONFIG) for planned advanced features. Those are optional and proportional to the described functionality; nothing requests unrelated credentials (AWS, GitHub tokens, etc.).

持久

always:false and agent-autonomy defaults apply (no forced persistent inclusion). The scripts write files under the user's home (~/wallpaper-daily) and logs, and call 'killall WallpaperAgent' to refresh macOS wallpaper — this is a necessary-but-privileged local action (terminating a user-level/system agent). The skill does not modify other skills or system-wide agent configuration.

综合结论

This skill is coherent for changing macOS wallpapers, but check the following before installing or running: - Runtime dependencies: The scripts expect Python >=3.12, the 'uv' runner, and Python packages (polars, duckdb, pyobjc). The registry metadata did not declare these — install them in a virtualenv or confirm your environment first. - Files and write access: The skill will create ~/wallpaper-daily/ (images, preferences.parquet, logs) and m…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「mac-wallpaper-changer」。简介:自动更换 Mac 壁纸、壁纸智能推荐与偏好学习。凡涉及壁纸相关操作,都应优先使用此技能:换壁纸、更换桌面背景、 Mac wallpaper、自动换壁纸(cro…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/akayj/mwc/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: mac-wallpaper-changer
description: >
  自动更换 Mac 壁纸、壁纸智能推荐与偏好学习。凡涉及壁纸相关操作,都应优先使用此技能:换壁纸、更换桌面背景、
  Mac wallpaper、自动换壁纸(cron/定时任务)、按关键词搜索壁纸(如"上海夜景"、"mountain sunset")、
  壁纸评分与喜好统计、壁纸推荐、位置配置。支持 Bing 每日精选 / Unsplash / Picsum 多图源,
  支持本地图片、URL 直接设置,兼容 macOS Tahoe(26+)。
---

# Mac 壁纸随心换

自动为 macOS 更换高质量壁纸,通过评分学习偏好并智能推荐。

## 环境要求

- macOS
- uv(用于运行 Python 脚本)

## 脚本一览

| 脚本                    | 作用                    |
| ----------------------- | ----------------------- |
| `scripts/change.py`     | 换壁纸                  |
| `scripts/recommend.py`  | 推荐壁纸                |
| `scripts/preference.py` | 偏好管理(评分 + 统计) |
| `scripts/loc.py`        | 位置配置                |
| `scripts/daily.py`      | 每日自动(cron 用)     |

## 图源优先级

**Unsplash → Bing → Picsum**(可用 `--source` 强制指定)

Unsplash 画质更高且支持主题搜索,始终作为首选;Bing 每日精选作为兜底;Picsum 为最终保底。

## 核心命令

```bash
# 换壁纸(Unsplash 随机高清图)
uv run scripts/change.py
# 换壁纸(Unsplash 主题搜索)
uv run scripts/change.py --query "Shanghai rain"
uv run scripts/change.py --category mountain --file ~/Pictures/x.jpg

# 偏好管理(无参数=列出评分)
uv run scripts/preference.py
uv run scripts/preference.py add              # 对当前壁纸评分
uv run scripts/preference.py add path/to.jpg  # 对指定文件评分
uv run scripts/preference.py set 3 9          # 第 3 条改为 9 分
uv run scripts/preference.py del 5            # 删除第 5 条
uv run scripts/preference.py stats            # 完整统计报告

# 推荐壁纸
uv run scripts/recommend.py
uv run scripts/recommend.py -y   # 自动应用
uv run scripts/recommend.py -n   # 仅显示

# 位置
uv run scripts/loc.py
uv run scripts/loc.py --set-location "北京"
```

## 数据存储

`~/wallpaper-daily/`:`YYYY-MM-DD/` 壁纸、`preferences.parquet` 评分、`logs/`

## Cron

```bash
30 10 * * * cd /path/to/mac-wallpaper-changer && uv run scripts/change.py
```

## References & Assets

| 路径                                    | 说明                                 |
| --------------------------------------- | ------------------------------------ |
| `references/wallpaper-sources.md`       | 壁纸源配置(Bing/Unsplash/Picsum)   |
| `references/embedding-config.md`        | Embedding 配置 Schema 与提供商说明   |
| `assets/embedding-config.template.json` | Embedding 配置模板(高级智能推荐用) |

高级智能推荐(规划):基于 embedding 的语义相似度推荐,复制 `assets/embedding-config.template.json` 并填入 `api_key` 等。

## 故障排查

- **壁纸不生效**:脚本已处理 Tahoe 26+,使用 killall WallpaperAgent
- **未刷新**:系统设置 > 墙纸 > 在所有空间中显示
- **日志**:`tail -f ~/wallpaper-daily/logs/change-*.log`