Back to skills
SKILL.md
Customize Shortcuts
ASecurityCustomize Research Studio's Admin Quick Terminal shortcuts and zero-token shell monitoring patrols for any GPU cluster (Slurm, PBS, Kubernetes, Docker, remote SSH hosts, WandB) without editing TypeScript source code.
- 3 stars
- 0 votes
- 0 copies
- 0 views
- Added December 6, 2026
Works with
Security analysis
92/100- Uses curl or wget to download content
npx -y skills add jinghan-yu/personalAIstudio --skill customize-shortcuts --agent claude-codeAre you the author of Customize Shortcuts?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jinghan-yu-customize-shortcuts)---
name: customize-shortcuts
description: Customize Research Studio's Admin Quick Terminal shortcuts and zero-token shell monitoring patrols for any GPU cluster (Slurm, PBS, Kubernetes, Docker, remote SSH hosts, WandB) without editing TypeScript source code.
---
# Research Studio — Cluster Shortcuts & Patrol Customization Skill
Use this skill when the user wants to tailor Research Studio's **Terminal quick buttons** or **zero-token scheduled patrols** for their own GPU cluster, Slurm partition, SSH hosts, Docker containers, or research workflow.
## 1. Customizing Admin Terminal Shortcut Buttons (Zero Code Changes!)
Research Studio dynamically loads Admin Terminal buttons on every `/api/health` request from (in priority order):
1. `server/data/shortcuts.json` (recommended — hot-reloads with **no restart needed!**)
2. `TERMINAL_SHORTCUTS` JSON array in `server/.env`
Write up to 12 concise buttons into `server/data/shortcuts.json`:
```json
[
{ "label": "Slurm 队列", "cmd": "ssh gpu-cluster \"squeue -u $USER\"" },
{ "label": "GPU 卡时", "cmd": "ssh gpu-cluster \"gpu-quota\"" },
{ "label": "集群磁盘", "cmd": "ssh gpu-cluster \"df -h ~ /tmp\"" },
{ "label": "Git 状态", "cmd": "git status -sb" },
{ "label": "最近日志", "cmd": "tail -n 40 logs/latest.log" }
]
```
Rules:
- Keep `label` <= 12 characters so chips wrap neatly on mobile screens.
- Use non-interactive SSH commands (verify `ssh -n -o BatchMode=yes <alias> true` works first!).
- Always quote remote commands carefully so local shell expansion does not break remote variables.
## 2. Creating Zero-Token Shell Monitoring Patrols
For repetitive cluster checks (Slurm job state, GPU OOM detection, disk quota alerts), prefer **Shell patrols (`kind: "shell"`)** with `notifyMode: "on_change"`:
- Uses **0 AI tokens** while polling.
- Automatically normalizes volatile Slurm `TIME` columns (`01:23:45` → `TIME`) so notifications fire **only** when a job finishes, starts, fails, or changes state!
- Pushes immediately via Native PWA Web Push (+ optional Bark).
Create via authenticated API or UI (`巡检 → + 新建 → Shell 巡检`):
- Example Slurm command: `ssh gpu-cluster "squeue -u $USER && df -h ~"`
- Example local GPU command: `nvidia-smi --query-gpu=index,utilization.gpu,memory.used,memory.total --format=csv,noheader`
## 3. Verifying Changes
1. Check `curl -fsS http://127.0.0.1:8787/api/health | jq .shortcuts` to confirm the new shortcut buttons are live.
2. Refresh the web/PWA client and click one shortcut in the **终端 (Terminal)** tab to confirm clean non-interactive execution.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.