Skip to content
Back to skills

Customize Shortcuts

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentstypescriptshelldockerkubernetesgitapi

Works with

  • terminal
  • cli
  • api

Security analysis

A92/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned December 6, 2026

npx -y skills add jinghan-yu/personalAIstudio --skill customize-shortcuts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Customize Shortcuts?

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

Security grade badge for Customize Shortcuts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jinghan-yu-customize-shortcuts/badge)](https://www.skillsdirectory.com/skills/jinghan-yu-customize-shortcuts)

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: 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

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.