rota

GitHub

管理共享机器上的重型任务(如E2E测试、模型运行)调度,通过宣布、预约和检查机制协调多Agent并发使用,避免资源冲突。

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

触发场景

执行重型计算或长时间运行的任务前 需要预订周期性工作时段

安装

npx skills add psardana/rota --skill rota -g -y
更多选项

非标准路径

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

不安装直接使用

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.

版本历史

  • a898538 当前 2026-12-02 20:07

元信息

文件数
0
版本
a898538
Hash
192ee65c
收录时间
2026-12-02 20:07

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-12-03 00:36
浙ICP备14020137号-1