Action

作者 Rootly-AI-Labs65832aa6ff7a无许可证收录于 2026年10月8日更新于 2026年10月8日

Manage incident action items from the terminal. Subcommands - list (default - your open action items) or add <incident> "<summary>" (create one on an incident). Use to capture follow-ups during or after an incident without opening the Rootly UI.

仅含说明DevOps & Cloud
AI 生成的概览

通过 MCP 工具在终端查看和创建 Rootly 事件行动项。

功能
该技能列出当前用户在 Rootly 中未完成的行动项,按事件分组并按严重程度和时长排序,也可在指定事件上创建新的行动项。它支持用 UUID、INC 编号或纯数字解析事件,写入前先展示预览,并要求用户明确确认后才会创建。它依赖 Rootly MCP 工具,不包含脚本。
适用场景
适合在事件处理过程中或之后记录后续事项,或查看自己尚未完成的行动项,无需打开 Rootly 界面。适用于行动项存放在 Rootly 的事件响应流程。
运行要求
需要访问 Rootly MCP 工具(mcprootly*),包括 getCurrentUser、listAllIncidentActionItems、getIncident 和 createIncidentActionItem。不附带脚本,仅为指令。

Action Items

You are helping the user view or update incident action items in Rootly.

Subcommand routing

Parse $ARGUMENTS:

  • Empty or starts with list → List mode (default).
  • Starts with add <incident-ref> → Add mode. The remainder is the description.
  • Anything else → show the usage from argument-hint and stop.

List mode

Goal: show the user their open action items, sorted by incident severity then age.

  1. Call mcp__rootly__getCurrentUser to get the user's UUID.
  2. Call mcp__rootly__listAllIncidentActionItems and filter results client-side by assigned_to_user_id matching the current user, plus status not in done/closed/cancelled.
  3. For each item, the response usually includes an incident_id or incident reference. Cluster results by incident.
  4. Render:
## Your Open Action Items ([N] total across [M] incidents)
### [INC-XXXX] [Incident title] ([severity])- [ ] [Action item description] — due [date or "no due date"], priority [priority]- [ ] [Action item description] — due [date], priority [priority]
### [INC-YYYY] [Incident title] ([severity])- [ ] [Action item description] — due [date], priority [priority]

If there are zero open items, say so plainly: "No open action items assigned to you."


Add mode

Goal: create a new action item on an incident. Write action — requires explicit confirmation.

  1. Parse the incident reference from $ARGUMENTS (UUID, INC-XXXX, or bare number).
  2. Resolve the incident by calling mcp__rootly__getIncident with the reference exactly as the user provided it. The MCP server now accepts UUIDs plus sequential forms like 4460, #4460, and INC-4460.
  3. Parse the action item summary: everything after the incident reference, stripped of surrounding quotes.
  4. Show a preview to the user:
**About to create action item:**- Incident: [INC-XXXX] [title]- Summary: [summary]- Assigned to: [you / unassigned per default]- Priority: medium (default — adjust in Rootly UI if needed)
Confirm to create? (yes / no)
  1. Wait for the user's reply. Do not call mcp__rootly__createIncidentActionItem until they say yes.
  2. On confirmation, call mcp__rootly__createIncidentActionItem with:
json
{  "incident_id": "[resolved incident UUID]",  "data": {    "type": "incident_action_items",    "attributes": {      "summary": "[summary]",      "priority": "medium",      "status": "open"    }  }}

Echo the resulting action item ID and any URL. 7. On rejection, acknowledge and stop without making the call.


Guidelines

  • Never mutate Rootly state without explicit confirmation. The "yes" must come from the user, not be assumed.
  • Show what will change before the call, not after.
  • If a write fails mid-flight, surface the exact error so the user can decide whether to retry.
  • If mcp__rootly__listAllIncidentActionItems is rate-limited or paginates, take just the first page (50 items). The user can re-run if they need more.
  • Do not imply that action items can be marked done through this skill until the MCP exposes an update action item tool.

来源与署名

来源:Rootly-AI-Labs/rootly-claude-plugin位于skills/action提交65832aa

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架