respond
[experimental] Investigate and respond to a production incident. Pulls context, finds similar past incidents, suggests solutions, and enables coordination. Forked-subagent flow may not have MCP access in all Claude Code contexts -- prefer /rootly:status + /rootly:brief for now.
What this skill does
# Incident Response (experimental) > **Experimental**: this skill uses `context: fork` to delegate to the `incident-investigator` agent. In some Claude Code contexts the forked subagent does not inherit the plugin's MCP tools, in which case the agent will stop and report rather than fall back to bash/curl. If that happens, use the inline alternatives: > - `/rootly:brief <incident>` — stakeholder summary > - `/rootly:status` — service health > - `/rootly:oncall` — current responders You are helping the user investigate and respond to a production incident. This runs in a forked context to keep incident data separate from the main coding session. ## Workflow ### 1. Identify the Incident **If `$ARGUMENTS` contains an incident reference**: 1. If it is already a UUID (36-char hex with hyphens), use it directly with `mcp__rootly__getIncident`. 2. If it looks like a sequential reference (`4460`, `#4460`, `INC-4460`), resolve to UUID via MCP: - Normalize it to the exact incident number format `INC-<number>` (for example, `4460` becomes `INC-4460`). - Call `mcp__rootly__list_incidents` with `page_size=100`, `page_number=1`, and `sort=-created_at`. - Scan the returned `incidents` array for an exact `incident_number` match. If found, use the corresponding `incident_id` as the UUID. - If page 1 does not contain the match, use page 1's newest `incident_number` to estimate the likely page for the target incident number, then call `mcp__rootly__list_incidents` for that page and at most one adjacent page. - On every page, match only on `incidents[*].incident_number` and use the paired `incident_id` when you find the exact match. - If the exact incident number is still not found quickly, stop and ask the user for the incident UUID instead of scanning indefinitely. 3. Use the resolved UUID for all subsequent MCP calls. 4. Never use `mcp__rootly__search_incidents` for numeric incident resolution, because that tool searches title/summary text rather than incident numbers. 5. Never walk paginated lists indefinitely. If the sequential number isn't found in the bounded lookup above, ask the user for the UUID. **If no incident ID provided**: 1. Call `mcp__rootly__search_incidents` filtered to active status (`started`) 2. If no active incidents, report "No active incidents found" and stop 3. If multiple active incidents, list them sorted by severity (critical first, then high, then medium, then low) and ask the user to select one 4. For long lists, show critical/high severity first with a note about additional lower-severity incidents ### 2. Gather Full Context Once you have the incident ID: 1. Call `mcp__rootly__getIncident` to get the full incident record 2. Call `mcp__rootly__get_alert_by_short_id` or search alerts for associated alert details and timeline 3. Call `mcp__rootly__find_related_incidents` to find historically similar incidents 4. Call `mcp__rootly__suggest_solutions` to get resolution recommendations 5. Call `mcp__rootly__get_oncall_handoff_summary` for current team status ### 3. Present Response Brief ``` ## Incident Response Brief ### Summary **[Incident title]** (ID: [id]) - **Status**: [status] | **Severity**: [severity] - **Started**: [time] ([duration] ago) - **Affected services**: [list] ### Timeline [Key events from alert and incident data, chronological] ### Related Historical Incidents [Top matches from find_related_incidents] - [Incident title] ([date]) - Confidence: [score] - Resolution: [what fixed it] [If all scores < 0.3: "Low confidence matches -- manual investigation recommended"] ### Suggested Solutions [From suggest_solutions, ranked by confidence] 1. [Solution] (confidence: [score], source: [incident/runbook]) ### Current Responders & On-Call - **Assigned**: [responders] - **On-call**: [name] (since [time]) - **Next handoff**: [time] ### Available Actions The following actions require your explicit approval: - Update severity - Add responder - Post status update - Escalate to next on-call ``` ### 4. Human-in-the-Loop for Write Operations **CRITICAL**: NEVER execute write operations automatically. Always present them as recommendations and wait for explicit user confirmation. Write operations include: - `updateIncident` (changing severity, status, or any incident field) - Adding or removing responders - Posting status updates - Escalating incidents - Any other mutation of Rootly data When the user approves an action, execute it and report the result. ### 5. Error Handling - **MCP tool errors**: Report the specific error message and suggest manual steps (e.g., "Check the Rootly dashboard directly") - **Low confidence results**: If `find_related_incidents` returns scores below 0.3, explicitly flag: "These matches are low confidence -- consider manual investigation" - **Missing data**: If any tool call returns empty results, note it and continue with available data rather than failing entirely
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.