Skip to content
Back to skills

Wallrus

BSecurity

Build, check, hot-swap, visually verify, and live-control interactive 3D Three.js desktop wallpapers on Linux (Wayland/X11) and macOS using the `wallrus` CLI or MCP server. Use whenever the user asks to create, edit, animate, debug, or interact with a 3D/shader/Three.js desktop wallpaper.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 28, 2026
ai-agentsrustgoshellbashreactrails

Works with

  • cursor
  • terminal
  • cli
  • mcp

Security analysis

B84/100
  • mediumUses curl or wget to download content
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 5 files and shows the line behind each finding

Scanned November 28, 2026

npx -y skills add joexk1/wallrus --skill wallrus --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Wallrus?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Wallrus
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/joexk1-wallrus/badge)](https://www.skillsdirectory.com/skills/joexk1-wallrus)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wallrus
description: Build, check, hot-swap, visually verify, and live-control interactive 3D Three.js desktop wallpapers on Linux (Wayland/X11) and macOS using the `wallrus` CLI or MCP server. Use whenever the user asks to create, edit, animate, debug, or interact with a 3D/shader/Three.js desktop wallpaper.
---

# Wallrus — Agent Skills & Tools Pack for 3D Live Wallpapers

`wallrus` is an agent-first Three.js wallpaper runtime written in Rust for **Linux** (`zwlr_layer_shell_v1` on Wayland, `_NET_WM_WINDOW_TYPE_DESKTOP` on X11) and **macOS** (native CoreGraphics desktop window + Metal `WKWebView`).

## Bundled Pack Contents

When installed via `wallrus install-skill` (or `./install.sh`), this pack provides:
- `SKILL.md` — Complete agent workflow, scene contract, and CLI/MCP reference
- `templates/starter_scene.js` — Ready-to-customize procedural Three.js starter wallpaper
- `references/scene-recipes.md` — Copy-pasteable recipes (procedural heightmaps, GLSL sky domes, multi-plane 3D parallax staging, system metrics, HUD ricing)
- `scripts/verify-scene.sh` — One-shot validator (`wallrus check` -> `wallrus set` -> `wallrus screenshot` -> `wallrus status --json`)
- `tools/mcp.json` — Stdio MCP server config (`wallrus mcp`) exposing `get_scene_contract`, `check_scene`, `set_wallpaper_scene`, `capture_scene_screenshot`, `send_scene_event`, `toggle_interactive_mode`, and `get_wallpaper_status`

---

> Converting an existing Three.js page/project/URL/shader into a wallpaper? Use the companion **`wallrusify`** skill (`~/.claude/skills/wallrusify/SKILL.md`, or `curl -fsSL https://wallrus.pages.dev/skills/wallrusify/SKILL.md`).

## The Autonomous Agent Loop (Always Follow This!)

1. **Check environment** (if first run):
   ```bash
   wallrus doctor
   ```
2. **Write a self-contained ES module** (start from `templates/starter_scene.js` or `./library/*.js`, and save to `./scenes/<name>.js` or `~/.local/share/wallrus/scenes/<name>.js`).
3. **Validate & deploy live**:
   ```bash
   wallrus check ./scenes/<name>.js && wallrus set ./scenes/<name>.js
   ```
   - Exit code `0`: Scene passed contract/guardrails, compiled all GLSL shaders, and is live on the user's desktop.
   - Exit code `1`: Exact JS/GLSL or guardrail error printed to `stderr` while keeping the user's previous wallpaper alive without a flicker. Fix all reported errors and re-run.
4. **Visually self-verify framing & lighting (Privacy-Safe!)**:
   ```bash
   wallrus screenshot /tmp/wallrus-preview.png
   ```
   - Reads directly from the Three.js WebGL backbuffer (**never** captures open desktop windows or icons).
   - Inspect `/tmp/wallrus-preview.png` with your vision/file-reading tool to critique composition, contrast, bloom threshold, and depth separation. Edit the file in place — `wallrus` auto-hot-reloads changes within 250ms!
5. **Verify FPS & telemetry**:
   ```bash
   wallrus status --json
   ```

---

## Standardized Scene Contract

Every scene is a zero-asset ES module. **No `npm install` or external CDN is needed** — Three.js `r170`, common addons, and seeded procedural noise are embedded inside the `wallrus` binary.

### Pre-Bundled Offline Imports
```js
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import { UnrealBloomPass } from 'three/addons/postprocessing/UnrealBloomPass.js';
import { EffectComposer } from 'three/addons/postprocessing/EffectComposer.js';
import { Sky } from 'three/addons/objects/Sky.js';
import { Water } from 'three/addons/objects/Water.js';
import { RoundedBoxGeometry } from 'three/addons/geometries/RoundedBoxGeometry.js';
import * as BufferGeometryUtils from 'three/addons/utils/BufferGeometryUtils.js';
```

### Engine-Managed 3D Parallax, Orbit & WASD Camera Rig

`wallrus` **automatically provides**:
- **Window-Pivot 3D Cursor Depth Parallax** while pinned on the desktop (tracked globally at 30Hz with zero permissions on both Hyprland/Wayland and macOS Quartz),
- **Interactive Spotlight Mode** (`Ctrl+Alt+I` on Linux, `⌃⌥I` / `Ctrl+Opt+I` on macOS, or `wallrus interact`) with damped mouse orbit/pan/zoom, **`WASD` + `Q`/`E` (+ `Shift`) 3D flight**, and live HUD parallax slider,
- **Persistent Camera Pinning (`Esc`) & Reset (`R`)**, plus automatic near/far frustum protection.

**Golden Rule:** Set `camera.position` and `controls.target` once in `setup(ctx)`, place foreground/midground/background depth layers around `controls.target`, and **do NOT overwrite `camera.position` inside `ctx.onTick`**. Use `ctx.pointer.smoothX` / `smoothY` for subtle world/shader reactions (wind, ripples, particles, lights).

```js
import * as THREE from 'three';

export const meta = {
  title: 'Rainy Cyberpunk Skyline',
  category: 'Cyber & Sci-Fi',
  description: 'Neon-drenched rainy skyline with reflective wet streets and volumetric light.',
  // Clickable HUD chips + keyboard shortcuts in Interactive Mode (avoid W/A/S/D/Q/E/R/P):
  controls: [
    { key: '1', label: 'Neon Dusk' },
    { key: '2', label: 'Acid Rain' },
    { key: 'Space', label: 'Lightning' },
  ],
};

export function setup(ctx) {
  const { scene, camera, renderer, controls, noise } = ctx;

  camera.position.set(0, 8, 26);
  controls.target.set(0, 4, 0);
  controls.update();

  const bloom = ctx.enableBloom({ strength: 0.45, radius: 0.5, threshold: 0.72 });

  // Built-in seeded procedural noise:
  // noise.noise2D(x, y)            -> [-1, 1]
  // noise.noise3D(x, y, z)         -> [-1, 1]
  // noise.fbm2D(x, y, octaves)     -> [-1, 1]
  // noise.ridged2D(x, y, octaves)  -> [0, 1] sharp ridges/peaks

  ctx.onClick(({ raycaster, ndc }) => {
    // Raycast interactive clicks in Interactive Mode
  });

  ctx.onKey((key) => {
    if (key === '1') ctx.toast('preset: neon dusk');
  });

  ctx.onEvent((name, payload) => {
    // Live external control via `wallrus send <name> '<json>'`
  });

  ctx.onTick(({ dt, elapsed, pointer, system, interactive }) => {
    // Animate meshes, shaders, and subtle pointer world effects (pointer.smoothX / smoothY).
  });
}
```

---

## Config, Shortcuts & Desktop Ricing (`config.toml` + `hud.css`)

Both `~/.config/wallrus/config.toml` and `~/.config/wallrus/hud.css` **auto-hot-reload within 250ms** on save:

```bash
wallrus bind                                              # Bind Ctrl+Alt+I (Linux) or ⌃⌥I (macOS)
wallrus enable                                            # Autostart via systemd --user (Linux) or LaunchAgent (macOS)
wallrus config --show                                     # Show config.toml & hud.css paths + active values
wallrus config --parallax true --parallax-strength 1.0    # Adjust 3D depth parallax (0.0..2.5)
wallrus config --wasd-speed 1.2 --fps 60                  # Adjust WASD flight speed & background FPS cap
wallrus hud --position bottom --theme catppuccin          # Themes: default, catppuccin, tokyo-night, gruvbox, nord, rose-pine, kanagawa, transparent
```

---

## Wallpaper Complexity & Anti-Game Guardrails

Identically enforced by `wallrus check`, `wallrus set`, and `https://wallrus.pages.dev` uploads:
1. **Lightweight Self-Contained Source**: `<= 1 MB` locally (`<= 512 KB` for community web uploads).
2. **No Desktop Hijacking**: `PointerLockControls`, fullscreen requests, popups, gamepads, `eval`, and audio autoplay are blocked/muted.
3. **60 FPS GPU Budget**: Keep scenes `< 3,500` draw calls and `< 10M` triangles per frame (prefer `THREE.InstancedMesh`, `THREE.Points`, and `THREE.ShaderMaterial`).
4. **Desktop Legibility**: Keep `toneMappingExposure` around `0.95–1.15` and bloom `threshold >= 0.65` so desktop icons and terminal windows stay crisp.

Files in this skill

  • SKILL.md7.5 KB
  • references/scene-recipes.md3.3 KB
  • scripts/verify-scene.sh431 B
  • templates/starter_scene.js2.8 KB
  • tools/mcp.json99 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.