name: pixel-office description: Animated pixel-art office where agents appear as characters that walk, sit, and interact with furniture in real time. 畫素風辦公室,讓各個 agents 以角色形式即時走動、入座,並與傢俱互動。
Launch and manage the Pixel Office web UI where agents appear as animated pixel-art characters that walk, sit, and interact with furniture in real time.
Activate when user says: - "開啟畫素辦公室" - "open pixel office" - "畫素辦公室" - "pixel office"
~/projects/OpenClaw-bot-review/%USERPROFILE%\projects\OpenClaw-bot-review\~/.openclaw/openclaw.json (or %USERPROFILE%\.openclaw\openclaw.json on Windows)# Check if process is already running on port 3000
# macOS/Linux
lsof -ti:3000
# Windows
netstat -ano | findstr :3000
If already running: - Stop the service first (ensure clean restart)
macOS/Linux:
lsof -ti:3000 | xargs kill -9 2>/dev/null
echo "已停止舊服務"
Windows (PowerShell):
Get-Process -Id (Get-NetTCPConnection -LocalPort 3000).OwningProcess | Stop-Process -Force
Write-Host "已停止舊服務"
Windows (cmd):
for /f "tokens=5" %a in ('netstat -ano ^| findstr :3000') do taskkill /F /PID %a
echo 已停止舊服務
Then proceed to Step 1.5.
If project exists, check if there's a newer version:
If git is available:
# macOS/Linux
cd ~/projects/OpenClaw-bot-review
git fetch origin main 2>/dev/null
LOCAL=$(git rev-parse HEAD 2>/dev/null)
REMOTE=$(git rev-parse origin/main 2>/dev/null)
if [ "$LOCAL" != "$REMOTE" ]; then
echo "update_available"
else
echo "up_to_date"
fi
# Windows (PowerShell)
cd "$env:USERPROFILE\projects\OpenClaw-bot-review"
git fetch origin main 2>$null
$local = git rev-parse HEAD 2>$null
$remote = git rev-parse origin/main 2>$null
if ($local -ne $remote) { "update_available" } else { "up_to_date" }
If update available:
- Inform user: "檢測到新版本,正在更新..."
- Pull latest code: git pull origin main
- Reinstall dependencies: npm install
- Continue to Step 5 (start service)
If up to date: - Continue to Step 5 (start service)
If git is NOT available: - Inform user: "檢測到專案無 git 管理,正在重新下載最新版本..." - Remove old project directory: ```bash # macOS/Linux rm -rf ~/projects/OpenClaw-bot-review
# Windows (PowerShell) Remove-Item -Recurse -Force "$env:USERPROFILE\projects\OpenClaw-bot-review" ``` - Go to Step 3 (download project via ZIP)
# macOS/Linux
test -d ~/projects/OpenClaw-bot-review && echo "exists" || echo "not found"
# Windows (PowerShell)
Test-Path "$env:USERPROFILE\projects\OpenClaw-bot-review"
If exists, skip to Step 4.
Option A: With git (preferred)
# macOS/Linux
mkdir -p ~/projects
cd ~/projects
git clone https://github.com/xmanrui/OpenClaw-bot-review.git
# Windows (PowerShell)
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\projects"
cd "$env:USERPROFILE\projects"
git clone https://github.com/xmanrui/OpenClaw-bot-review.git
Option B: Without git (fallback)
macOS/Linux:
mkdir -p ~/projects
cd ~/projects
curl -L https://github.com/xmanrui/OpenClaw-bot-review/archive/refs/heads/main.zip -o openclaw-dashboard.zip
unzip openclaw-dashboard.zip
mv OpenClaw-bot-review-main OpenClaw-bot-review
rm openclaw-dashboard.zip
Windows (PowerShell):
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\projects"
cd "$env:USERPROFILE\projects"
Invoke-WebRequest -Uri "https://github.com/xmanrui/OpenClaw-bot-review/archive/refs/heads/main.zip" -OutFile "openclaw-dashboard.zip"
Expand-Archive -Path "openclaw-dashboard.zip" -DestinationPath "."
Rename-Item -Path "OpenClaw-bot-review-main" -NewName "OpenClaw-bot-review"
Remove-Item "openclaw-dashboard.zip"
Windows (cmd with curl - Windows 10+):
mkdir "%USERPROFILE%\projects" 2>nul
cd /d "%USERPROFILE%\projects"
curl -L https://github.com/xmanrui/OpenClaw-bot-review/archive/refs/heads/main.zip -o openclaw-dashboard.zip
tar -xf openclaw-dashboard.zip
ren OpenClaw-bot-review-main OpenClaw-bot-review
del openclaw-dashboard.zip
Check if node_modules exists. If not:
# macOS/Linux
cd ~/projects/OpenClaw-bot-review
npm install
# Windows
cd "%USERPROFILE%\projects\OpenClaw-bot-review"
npm install
macOS/Linux:
cd ~/projects/OpenClaw-bot-review
npm run dev > /dev/null 2>&1 &
Windows (PowerShell):
cd "$env:USERPROFILE\projects\OpenClaw-bot-review"
Start-Process -NoNewWindow -FilePath "npm" -ArgumentList "run", "dev"
Windows (cmd):
cd /d "%USERPROFILE%\projects\OpenClaw-bot-review"
start /B npm run dev
Poll http://localhost:3000 until it responds (max 30 seconds).
# macOS/Linux
for i in {1..30}; do
curl -s http://localhost:3000 > /dev/null && break
sleep 1
done
# Windows (PowerShell)
for ($i=0; $i -lt 30; $i++) {
try {
Invoke-WebRequest -Uri "http://localhost:3000" -UseBasicParsing -TimeoutSec 1 | Out-Null
break
} catch {
Start-Sleep -Seconds 1
}
}
You MUST return both: - Local URL - LAN URL
First, actually detect the machine's LAN IPv4 address. Do not guess it.
macOS/Linux:
(ipconfig getifaddr en0 || ipconfig getifaddr en1 || hostname -I | awk '{print $1}') 2>/dev/null
Windows (PowerShell):
(Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias "Ethernet*","Wi-Fi*" | Select-Object -First 1).IPAddress
Rules: - You MUST execute an IP detection command before composing the final reply. - Do NOT guess or fabricate the LAN IP. - Do NOT omit the LAN URL just because localhost works. - You MUST include both the local URL and the LAN URL in the final reply. - If LAN IP detection fails, you MUST still include the local URL and explicitly say: - 區域網訪問地址:獲取失敗 - and briefly mention that LAN IP detection failed. - Do NOT end with only a localhost URL.
Return message format:
✅ Pixel Office 已啟動!
訪問地址:
- 本地訪問:http://localhost:3000/pixel-office
- 區域網訪問:http://<LAN-IP>:3000/pixel-office
Pixel Office 會自動讀取你的 OpenClaw 配置,展示所有機器人、模型、會話的狀態。
需要停止服務時告訴我一聲。
If LAN IP detection fails, use:
✅ Pixel Office 已啟動!
訪問地址:
- 本地訪問:http://localhost:3000/pixel-office
- 區域網訪問:獲取失敗
原因:未能檢測到當前機器的區域網 IPv4 地址。
需要停止服務時告訴我一聲。
When user asks to stop:
macOS/Linux:
lsof -ti:3000 | xargs kill -9
Windows (PowerShell):
Get-Process -Id (Get-NetTCPConnection -LocalPort 3000).OwningProcess | Stop-Process -Force
Windows (cmd):
for /f "tokens=5" %a in ('netstat -ano ^| findstr :3000') do taskkill /F /PID %a
PORT=3001 npm run dev)~/.openclaw/openclaw.jsonnpm cache clean --force and retrying~/.openclaw/openclaw.json - no database needed# Detect OS
uname -s # macOS: Darwin, Linux: Linux, Windows (Git Bash): MINGW*/MSYS*
# Windows detection in PowerShell
$PSVersionTable.Platform # Win32NT or empty on Windows
# Check if git is available
git --version
# Exit code 0 = installed, non-zero = not installed
Detection logic:
1. Run git --version at the beginning
2. Store result (available/not available)
3. Use this result throughout the workflow
If git not available: - Always use ZIP download method - Always force re-download when project exists (to get latest version) - Clean up old directory before downloading
小蔥技能站7w4.net發現了升級外掛。
這個 Skill 質量中規中矩,做得好的地方是支援多種作業系統、觸發方式多樣、啟動服務前會自動清理舊程序。但不足之處也明顯:文件描述前後不一致、缺少必要的依賴檢查、安裝位置寫死了無法自定義。總體來說能基本滿足需求,但細節打磨還需加強,適合對技術有一定了解的使用者使用。