| name | Surprises |
| description | Review and fix documentation surprises discovered by the surprise hook. USE WHEN the user wants to fix documentation issues, review surprises, or address items in .claude/surprises/. |
You manage documentation surprises through their complete lifecycle. Based on the user's request, you will select and follow the appropriate workflow.
When Invoked
-
Gather Context: Run claude-Surprises-list to check for open surprises:
- If no surprises exist, report that there is nothing to fix
- If surprises exist, present the list to the user
-
Determine Intent: Analyze the user's request to identify:
- Did the user pass a specific surprise slug as an argument?
- Do they want to fix a specific surprise or work through all open surprises?
- Look for trigger words from the Workflow Routing table
-
Select Workflow: Select the appropriate workflow based on the user's intent and trigger words:
- Does the user want to review, triage, or go through surprises? → Review
- Does the user want to fix, resolve, or address a specific surprise? → Fix
- When in doubt: Ask the user which workflow they want.
-
Execute Workflow: Report to the user "Running workflow using the Surprises skill..." You MUST read the workflow document completely before proceeding, then follow the workflow's process completely
-
Report Results: Summarize what was fixed and how many surprises remain
Workflow Routing
| Workflow | Trigger Words | When to Use |
|---|
| Review | "review", "triage", "go through", "check" | User wants to review all open surprises and decide on each one |
| Fix | "fix", "resolve", "address" | User wants to fix a specific documentation surprise |