docs: simplify README, remove REST API examples and dev section, polish SKILL.md
This commit is contained in:
parent
3c7f970d4f
commit
ba3b365f4e
2 changed files with 71 additions and 168 deletions
62
SKILL.md
62
SKILL.md
|
|
@ -30,63 +30,71 @@ When Moritz asks to do something on a connected PC:
|
|||
```bash
|
||||
SKILL_DIR=/home/moritz/.openclaw/workspace/skills/helios-remote
|
||||
|
||||
# Devices
|
||||
# List connected devices
|
||||
python $SKILL_DIR/remote.py devices
|
||||
|
||||
# Screenshot → /tmp/helios-remote-screenshot.png
|
||||
# ALWAYS prefer window screenshots (saves bandwidth)!
|
||||
python $SKILL_DIR/remote.py screenshot moritz_pc google_chrome # window by label
|
||||
python $SKILL_DIR/remote.py screenshot moritz_pc screen # full screen only when no window known
|
||||
python $SKILL_DIR/remote.py screenshot moritz-pc chrome # window by label
|
||||
python $SKILL_DIR/remote.py screenshot moritz-pc screen # full screen only when no window known
|
||||
|
||||
# List visible windows (use labels for screenshot/focus/maximize)
|
||||
python $SKILL_DIR/remote.py windows moritz-pc
|
||||
|
||||
# Window labels come from the process name (e.g. chrome, discord, pycharm64)
|
||||
# Duplicates get a number suffix: chrome, chrome2, chrome3
|
||||
# Use `windows` to discover labels before targeting a specific window
|
||||
|
||||
# Focus / maximize a window
|
||||
python $SKILL_DIR/remote.py focus moritz-pc discord
|
||||
python $SKILL_DIR/remote.py maximize moritz-pc chrome
|
||||
|
||||
# Minimize all windows
|
||||
python $SKILL_DIR/remote.py minimize-all moritz-pc
|
||||
|
||||
# Shell command (PowerShell, no wrapper needed)
|
||||
python $SKILL_DIR/remote.py exec moritz_pc "Get-Process"
|
||||
python $SKILL_DIR/remote.py exec moritz_pc "hostname"
|
||||
python $SKILL_DIR/remote.py exec moritz-pc "Get-Process"
|
||||
python $SKILL_DIR/remote.py exec moritz-pc "hostname"
|
||||
# With longer timeout for downloads etc. (default: 30s)
|
||||
python $SKILL_DIR/remote.py exec moritz_pc --timeout 600 "Invoke-WebRequest -Uri https://... -OutFile C:\file.zip"
|
||||
|
||||
# Windows (visible only, shown with human-readable labels)
|
||||
python $SKILL_DIR/remote.py windows moritz_pc
|
||||
python $SKILL_DIR/remote.py focus moritz_pc discord
|
||||
python $SKILL_DIR/remote.py maximize moritz_pc google_chrome
|
||||
python $SKILL_DIR/remote.py minimize-all moritz_pc
|
||||
python $SKILL_DIR/remote.py exec moritz-pc --timeout 600 "Invoke-WebRequest -Uri https://... -OutFile C:\file.zip"
|
||||
|
||||
# Launch program (fire-and-forget)
|
||||
python $SKILL_DIR/remote.py run moritz_pc notepad.exe
|
||||
python $SKILL_DIR/remote.py run moritz-pc notepad.exe
|
||||
|
||||
# Ask user to do something (shows MessageBox, blocks until OK)
|
||||
python $SKILL_DIR/remote.py prompt moritz_pc "Please click Save, then OK"
|
||||
python $SKILL_DIR/remote.py prompt moritz_pc "UAC dialog coming - please confirm" --title "Action required"
|
||||
python $SKILL_DIR/remote.py prompt moritz-pc "Please click Save, then OK"
|
||||
python $SKILL_DIR/remote.py prompt moritz-pc "UAC dialog coming - please confirm" --title "Action required"
|
||||
|
||||
# Clipboard
|
||||
python $SKILL_DIR/remote.py clipboard-get moritz_pc
|
||||
python $SKILL_DIR/remote.py clipboard-set moritz_pc "Text for clipboard"
|
||||
python $SKILL_DIR/remote.py clipboard-get moritz-pc
|
||||
python $SKILL_DIR/remote.py clipboard-set moritz-pc "Text for clipboard"
|
||||
|
||||
# File transfer
|
||||
python $SKILL_DIR/remote.py upload moritz_pc /tmp/local.txt "C:\Users\Moritz\Desktop\remote.txt"
|
||||
python $SKILL_DIR/remote.py download moritz_pc "C:\Users\Moritz\file.txt" /tmp/downloaded.txt
|
||||
python $SKILL_DIR/remote.py upload moritz-pc /tmp/local.txt "C:\Users\Moritz\Desktop\remote.txt"
|
||||
python $SKILL_DIR/remote.py download moritz-pc "C:\Users\Moritz\file.txt" /tmp/downloaded.txt
|
||||
|
||||
# Version: compare relay + remote.py + client commits (are they in sync?)
|
||||
python $SKILL_DIR/remote.py version moritz_pc
|
||||
python $SKILL_DIR/remote.py version moritz-pc
|
||||
|
||||
# Client log (last 100 lines, --lines for more)
|
||||
python $SKILL_DIR/remote.py logs moritz_pc
|
||||
python $SKILL_DIR/remote.py logs moritz_pc --lines 200
|
||||
python $SKILL_DIR/remote.py logs moritz-pc
|
||||
python $SKILL_DIR/remote.py logs moritz-pc --lines 200
|
||||
```
|
||||
|
||||
## Typical Workflow: UI Task
|
||||
|
||||
1. `screenshot <device> screen` → look at the screen
|
||||
2. `windows <device>` → find the window label
|
||||
3. `focus <device> <window_label>` → bring it to front
|
||||
1. `windows <device>` → find the window label
|
||||
2. `screenshot <device> <window_label>` → look at it
|
||||
3. `focus <device> <window_label>` → bring it to front if needed
|
||||
4. `exec` → perform the action
|
||||
5. `screenshot <device> <window_label>` → verify result
|
||||
|
||||
## ⚠️ Prompt Rule (important!)
|
||||
## ⚠️ Prompt Rule
|
||||
|
||||
**Never interact with UI blindly.** When you need the user to click something:
|
||||
|
||||
```bash
|
||||
python $SKILL_DIR/remote.py prompt moritz_pc "Please click [Save], then press OK"
|
||||
python $SKILL_DIR/remote.py prompt moritz-pc "Please click [Save], then press OK"
|
||||
```
|
||||
|
||||
This blocks until the user confirms. Use it whenever manual interaction is needed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue