用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/LangSensei/swat-marketplace --skill debrief命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | debrief |
| version | 3.2.0 |
| description | Operation completion gate — notify the user or dispatch the next task |
| dependencies | {"skills":[],"mcps":["swat"]} |
Every operation must end with a debrief. Choose exactly one exit:
Never both. Never neither.
Use this flowchart to decide which exit to take. Squad-specific debrief rules in the MANIFEST always override this general guidance.
START
│
├─ Does your squad MANIFEST have "Debrief Rules (mandatory)" section?
│ YES → Follow those rules exactly. Stop here.
│ NO → Continue below.
│
├─ Did your operation produce work that needs follow-up by another squad?
│ YES → Exit 2 (Dispatch)
│ NO → Continue below.
│
├─ Did your operation complete its assigned task successfully?
│ YES → Exit 1 (Notify)
│ NO → Continue below.
│
├─ Did your operation fail in a way another squad could fix?
│ YES → Exit 2 (Dispatch) with failure context
│ NO → Exit 1 (Notify) with failure report
│
END
| Scenario | Exit | Target |
|---|---|---|
| PR opened, needs review | Dispatch | swat-review |
| PR reviewed, changes requested | Dispatch | swat-dev |
| PR reviewed, approved, zero comments | Notify | — |
| Analysis/research completed | Notify | — |
| Lint found errors, needs fix | Dispatch | swat-dev |
| All checks pass | Notify | — |
| Task failed, another squad can help | Dispatch | relevant squad |
| Task failed, no recovery path | Notify | — |
Send a concise notification to the user with your key findings.
Call the swat_notify MCP tool with your notification message:
swat_notify({"operation_id": "<your-operation-id>", "message": "your notification message"})
operation_id— read from OPERATION.md frontmatter. This enables the desktop notification to link directly toreport.htmlwhen clicked. Optional but recommended.
Good — leads with conclusion, includes data:
PR #42 on LangSensei/swat approved with no comments. Clean merge candidate.
Good — failure with context:
Build failed for feature/mcp-retry on LangSensei/swat. Go compilation error in mcp/client.go:128 — undefined reference to RetryConfig. This appears to require a type definition that wasn't included in the brief.
Bad — too vague:
Operation complete. Check the report for details.
When further work is needed, use the swat_dispatch MCP tool to hand off to the next squad.
Call the swat_dispatch MCP tool with a task brief:
swat_dispatch({"brief": "your dispatch brief", "details": "additional context, file paths, specifics"})
brief— concise one-line task description (used for classification). Keep it short and actionable.details— expanded context, constraints, file paths, code snippets, error messages. Put lengthy context here instead of cramming it intobrief.
Every dispatch brief must be self-contained — the receiving squad has no access to your operation context. Include:
Good — PR review dispatch (swat-dev → swat-review):
Review PR #47 on LangSensei/swat (branch: swat/20260415-abc12345).
Changes: Added retry logic to MCP client with exponential backoff. Modified mcp/client.go and mcp/client_test.go.
Files changed: mcp/client.go, mcp/client_test.go, mcp/config.go
Good — fix dispatch (swat-review → swat-dev):
Fix review comments on PR #47, LangSensei/swat. Branch: swat/20260415-abc12345. Resume the existing branch.
Fixes needed:
[blocking] mcp/client.go:142 — retry loop does not check context cancellation, risk of infinite retry on shutdown
[blocking] mcp/client.go:156 — error wrapping loses original error type, breaks errors.Is() checks downstream
[suggestion] mcp/config.go:28 — MaxRetries default of 10 seems high, consider 3 with longer backoff
PR context: Adds retry logic to MCP client for transient network failures.
Bad — missing context:
Fix the PR issues.
基于 SOC 职业分类