rota

GitHub

Rota 是共享计算资源的协调工具,用于管理重型任务(如 E2E 测试、模型训练)的调度。通过预约、检查点机制避免资源冲突,确保多 Agent 环境下的有序执行和公平性。

integrations/claude-code/skills/rota/SKILL.md psardana/rota

Trigger Scenarios

需要运行重型计算任务时 预订周期性或长期任务时

Install

npx skills add psardana/rota --skill rota -g -y
More Options

Non-standard path

npx skills add https://github.com/psardana/rota/tree/main/integrations/claude-code/skills/rota -g -y

Use without installing

npx skills use psardana/rota@rota

指定 Agent (Claude Code)

npx skills add psardana/rota --skill rota -a claude-code -g -y

安装 repo 全部 skill

npx skills add psardana/rota --all -g -y

预览 repo 内 skill

npx skills add psardana/rota --list

SKILL.md

Frontmatter
{
    "name": "rota",
    "description": "Use before any heavy work on this machine - browser or UI tests, end-to-end suites, renders, video or audio work, model runs, benchmarks, large migrations or long agent runs - and when booking recurring work for a project. Rota decides whose turn it is on the machine. Ordinary builds and unit tests are not heavy."
}

Heavy work goes through Rota

This machine is shared by several agents and by its owner. Rota decides whose turn it is. Use the rota_* tools (or the rota command if the tools are not available).

Ad-hoc heavy work

  1. Announce it with rota_announce: a name that starts with the project ("web-app: e2e suite"), an estimate (est, e.g. 40m), and cpu, ram and gpu if you can guess them. Add usage, e.g. ["claude:15"], for a long agent run.
  2. Start only on GO. On WAIT, do light work and call rota_ask again after the time given. Never start the heavy part early.
  3. While it runs, call rota_checkin every few minutes. CONTINUE means keep going. WRAP UP means stop at a safe point by the time given. PAUSE means stop at the next safe point.
  4. When it stops, call rota_done: result ok, failed (with a note), or paused after a wrap-up or pause. Tell the user where you stopped.

Known and recurring work

Book it a week ahead with rota_book, using at ("tue 22:00") for one-off work or cron ("0 2 * * *") for repeating work. Rota moves a booking whose slot is taken and says where. Check the plan with rota_week.

Rules

  • The owner's blocked time always wins. Never work around WAIT, WRAP UP or PAUSE, and never change the owner's blocks or priorities.
  • Usage warnings are only warnings. Mention them to the user; don't stop for them.
  • If Rota is not running, say so and ask the user before starting heavy work.
  • If you can't tell whether something is heavy, ask the user.

Version History

  • a898538 Current 2026-12-02 20:07

Metadata

Files
0
Version
a898538
Hash
192ee65c
Indexed
2026-12-02 20:07

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-12-03 18:07
浙ICP备14020137号-1