warden-sweep

作者: sentry

完整儲存庫程式碼掃描。使用 Warden 掃描每個檔案,透過深度追蹤驗證發現結果,為已驗證的問題建立草稿 PR。當被要求…時使用。

npx skills add https://github.com/getsentry/warden --skill warden-sweep

Warden Sweep

Run a full-repository Warden sweep: scan files, verify findings, create a tracking issue, open draft PRs for validated issues, and organize the final report.

Requires: warden, gh, git, jq, uv.

Run commands from the repository root. Use the host's skill-root path for bundled scripts and references.

Output goes to .warden/sweeps/<run-id>/.

References

Load only the reference for the current phase:

NeedRead
Script arguments, outputs, and side effectsreferences/script-interfaces.md
Phase 1 scan workflowreferences/scan-phase.md
Phase 2 verification workflowreferences/verify-phase.md
Phase 3 tracking issue workflowreferences/issue-phase.md
Phase 4 patch and draft PR workflowreferences/patch-phase.md
Phase 5 organize and final report workflowreferences/organize-phase.md
Resume behavior and artifact layoutreferences/resume-and-artifacts.md
Verification task prompt templatereferences/verify-prompt.md
Patch task prompt templatereferences/patch-prompt.md

Workflow

Track progress across phases:

  • Phase 1: Scan repository files with Warden.
  • Phase 2: Verify findings before patching.
  • Phase 3: Create a tracking issue.
  • Phase 4: Patch verified findings and open draft PRs.
  • Phase 5: Organize results and produce the final report.

Phase Order

  1. Read references/script-interfaces.md once before running scripts.
  2. Run Phase 1 from references/scan-phase.md. Save runId and sweepDir.
  3. Run Phase 2 from references/verify-phase.md. Verify every finding before patching.
  4. Run Phase 3 from references/issue-phase.md. Continue if issue creation fails.
  5. Run Phase 4 from references/patch-phase.md. Patch sequentially, one finding at a time.
  6. Run Phase 5 from references/organize-phase.md.
  7. For interrupted or partial runs, read references/resume-and-artifacts.md and continue from the first incomplete phase.

Non-Negotiable Rules

  • Verify findings before creating fixes.
  • Use draft PRs for generated patches.
  • Branch every patch from the repository default branch.
  • Patch findings sequentially; do not run patch workers in parallel.
  • Skip existing entries in sweep artifacts instead of duplicating work.
  • Record failures in sweep data and continue to the next finding when possible.
  • Clean up each worktree after patch success or failure.

Final Response

After organizing, report:

## Sweep Complete

| Metric | Count |
|--------|-------|
| Files scanned | {filesScanned} |
| Findings verified | {verified} |
| PRs created | {prsCreated} |
| Security findings | {securityFindings} |

Full report: `{summaryPath}`

來自 sentry 的更多技能

add-ai-integration
sentry
在 Sentry JavaScript SDK 中新增一個 AI 提供者整合。用於貢獻新的 AI 檢測工具(OpenAI、Anthropic、Vercel AI、LangChain 等)時使用…
add-cdn-bundle
sentry
為瀏覽器套件建立一個包含指定功能的新 CDN 套件組合
agent-prompt
sentry
撰寫有效代理提示與技能的參考指南。適用於建立新技能、審查提示品質或理解 Warden 的提示…
agents-md
sentry
當使用者要求「建立 AGENTS.md」、「更新 AGENTS.md」、「維護代理文件」、「設定 CLAUDE.md」或需要保持代理…時,應使用此技能。
agents-md
sentry
建立並維護精簡、高訊號的代理文件,內容不超過60行。強制採用經研究驗證的代理文件最佳實踐;指令品質會隨長度下降。需包含三個核心章節:套件管理器、檔案範圍指令(每個檔案的測試/語法檢查/型別檢查),以及帶有代理身份的提交歸屬。分析專案結構(鎖定檔案、語法檢查器設定、CI指令、單一儲存庫指標)以決定檔案中應包含的內容。僅使用標題與項目符號;參考...
agents-md
sentry
當使用者要求「建立 AGENTS.md」、「更新 AGENTS.md」、「維護代理文件」、「設定 CLAUDE.md」或需要保持代理…時,應使用此技能。
ai-sdk
sentry
ai-sdk — 一個可安裝的 AI 代理技能,由 getsentry/webvitals.com 發布。
analytics
sentry
在 Sentry 的前端 UI 中檢測並探索分析事件。用於在按鈕、頁面、模態框或自訂互動中添加追蹤,以及定義新的…