Cover

作者 Rootly-AI-Labs65832aa6ff7a無授權條款收錄於 2026年10月8日更新於 2026年10月8日

Offer to cover someone else's on-call shift. Lists upcoming shifts on a team or schedule and creates an override placing you on the chosen one after explicit confirmation. Write action - never executes without confirming.

AI 產生的概覽

列出即將到來的值班班次,並在使用者明確確認後建立 Rootly 覆寫,讓使用者代班所選班次。

功能
此技能引導代理使用 Rootly 工具提出替他人值班。它會辨識目前使用者,依選用參數解析團隊或排班表,抓取未來 14 天的班次,並排除使用者自己的班次與已開始的班次。它會以編號表格呈現最多 10 個可代班次,可選擇檢查使用者是否有時間衝突,並在使用者明確回覆 yes 後建立覆寫班次,回顯結果與後續建議。
適用情境
當使用者想主動替 Rootly 團隊或排班表中他人即將到來的值班班次時使用。適用於使用者需要先查看哪些班次可以代班、再正式接手的情境。
執行需求
需要 Rootly MCP 工具(mcprootly*),包括 getCurrentUser、listTeams、listSchedules、listShifts、check_responder_availability 和 createOverrideShift,並需要具備建立覆寫權限的 Rootly 帳戶存取權。此技能不附帶指令碼,僅為指示。

Offer to Cover a Shift

You are helping the user volunteer to take someone else's upcoming on-call shift. This is the inverse of /rootly:swap. Write action — explicit confirmation required.

Workflow

1. Identify the user

Call mcp__rootly__getCurrentUser to capture the current user's user_id and team membership.

2. Determine the scope

Parse $ARGUMENTS:

  • Empty → show the user's own teams' upcoming shifts (next 14 days), filtered to shifts assigned to other people.
  • A name → resolve to a team via mcp__rootly__listTeams or a schedule via mcp__rootly__listSchedules. If multiple matches, list them and ask.

3. Pull candidate shifts

Call mcp__rootly__listShifts (or list_shifts) for the chosen schedule(s) over the next 14 days.

Filter:

  • Exclude shifts already assigned to the current user.
  • Exclude shifts that have already started or are in the past.

4. Present the list

## Upcoming shifts you could cover
| # | Schedule | When | Currently | Length ||---|---|---|---|---|| 1 | [name] | [start] → [end] | [user name] | [duration] || 2 | [name] | [start] → [end] | [user name] | [duration] |[max 10]
Reply with the shift number you'd like to cover, or `none` to cancel.

If there are zero matches, say "No upcoming shifts available to cover in [scope]." and stop.

5. On user selection

When the user picks a number:

  1. Optionally call mcp__rootly__check_responder_availability for the current user against that time window to verify they don't have a conflict. If a conflict exists, surface it and ask if the user wants to proceed anyway.
  2. Show the proposal:
**Proposed coverage:**- **Shift**: [Schedule] [start] → [end] (timezone)- **Currently assigned**: [original user]- **You will cover**: [your name]- **Conflict check**: [no conflicts | conflict with X — proceed anyway?]
Confirm to create the override? (yes / no)
  1. Wait for explicit yes. Anything else → cancel.

6. On confirmation

Call mcp__rootly__createOverrideShift with:

  • schedule_id of the target shift's schedule
  • data.type = "shifts"
  • data.attributes.starts_at and data.attributes.ends_at matching the shift window
  • data.attributes.user_id = current user's integer Rootly user ID

Echo the result:

✅ Override created. You're now on call for [Schedule] [start] → [end].- Override ID: [uuid]
Recommended next steps:- Let [original user] know in Slack so they can plan around it.- Verify in /rootly:my that the shift now appears under your upcoming on-call.

7. Guidelines

  • Never mutate without confirmation. Same rule as /rootly:swap.
  • If the user has a conflict and proceeds anyway, the system should still create the override — but flag the conflict clearly in the success message so the user remembers to resolve it.
  • Show timezones explicitly. Always.
  • If createOverrideShift returns an error (permission, schedule not editable), surface the exact error and don't retry silently.

來源與署名

來源:Rootly-AI-Labs/rootly-claude-plugin位於skills/cover提交65832aa

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架