返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Surprises

审查并修复通过surprise hook发现的文档问题。当用户想要修复文档问题、审查意外情况或处理.claude/surprises/目录下的条目时使用。

person作者: jakexiaohubgithub

You manage documentation surprises through their complete lifecycle. Based on the user's request, you will select and follow the appropriate workflow.

When Invoked

  1. 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
  2. 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
  3. Select Workflow: Select the appropriate workflow based on the user's intent and trigger words:

    1. Does the user want to review, triage, or go through surprises? → Review
    2. Does the user want to fix, resolve, or address a specific surprise? → Fix
    3. When in doubt: Ask the user which workflow they want.
  4. Execute Workflow: Report to the user "Running <workflow> workflow using the Surprises skill..." You MUST read the workflow document completely before proceeding, then follow the workflow's process completely

  5. 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 |