




















@@ -0,0 +1,109 @@
1+---
2+name: clawsweeper
3+description: Inspect ClawSweeper commit-review and issue/PR-sweeper reports for OpenClaw, including recent per-commit reports, finding summaries, GitHub Checks, Actions monitoring, manual backfills, and report links.
4+---
5+6+# ClawSweeper
7+8+ClawSweeper lives at `~/Projects/clawsweeper`. Use this skill when Peter asks
9+about ClawSweeper reports, commit-review checks, recent findings, historic
10+backfills, or whether the sweeper/dispatch lane is healthy.
11+12+## Start
13+14+```bash
15+cd ~/Projects/clawsweeper
16+git status --short
17+git pull --ff-only
18+pnpm run build
19+```
20+21+Do not overwrite unrelated local edits. If the tree is dirty, inspect status
22+and keep report-reading commands read-only unless Peter asked to commit.
23+24+## Recent Commit Reports
25+26+Canonical reports are flat:
27+28+```text
29+records/<repo-slug>/commits/<40-char-sha>.md
30+```
31+32+Use the lister instead of browsing date folders:
33+34+```bash
35+pnpm commit-reports -- --since 6h
36+pnpm commit-reports -- --since "24 hours ago" --findings
37+pnpm commit-reports -- --since 7d --non-clean
38+pnpm commit-reports -- --repo openclaw/openclaw --author steipete --since 7d
39+pnpm commit-reports -- --since 24h --json
40+```
41+42+One report per commit. Reruns overwrite the same SHA-named file. Results:
43+`nothing_found`, `findings`, `inconclusive`, `failed`, `skipped_non_code`.
44+45+## Monitor Actions
46+47+Receiver lane in `openclaw/clawsweeper`:
48+49+```bash
50+gh run list --repo openclaw/clawsweeper --workflow "ClawSweeper Commit Review" \
51+ --limit 12 --json databaseId,displayTitle,event,status,conclusion,createdAt,updatedAt,url
52+gh run list --repo openclaw/clawsweeper --workflow "ClawSweeper Commit Review" \
53+ --status in_progress --limit 20 --json databaseId,displayTitle,event,status,createdAt,url
54+```
55+56+Target dispatcher in `openclaw/openclaw`:
57+58+```bash
59+gh run list --repo openclaw/openclaw --workflow "ClawSweeper Dispatch" \
60+ --event push --limit 8 --json databaseId,displayTitle,event,status,conclusion,headSha,url
61+git ls-remote https://github.com/openclaw/openclaw.git refs/heads/main
62+```
63+64+Check the target commit's published report check:
65+66+```bash
67+gh api "repos/openclaw/openclaw/commits/<sha>/check-runs?per_page=100" \
68+ --jq '.check_runs[] | select(.name=="ClawSweeper Commit Review") | [.status,.conclusion,.details_url] | @tsv'
69+```
70+71+## Manual Backfill
72+73+Use the workflow when Peter asks to review a specific commit or historic range:
74+75+```bash
76+gh workflow run commit-review.yml --repo openclaw/clawsweeper \
77+ -f target_repo=openclaw/openclaw \
78+ -f commit_sha=<end-sha> \
79+ -f before_sha=<start-sha> \
80+ -f create_checks=true \
81+ -f enabled=true
82+```
83+84+For a targeted rerun with extra instructions, add:
85+86+```bash
87+-f additional_prompt="Review this commit with focus on <topic>."
88+```
89+90+## Report Reading
91+92+Lead with counts and useful findings:
93+94+```bash
95+pnpm commit-reports -- --since 24h
96+pnpm commit-reports -- --since 24h --findings
97+```
98+99+If findings exist, open the markdown report and summarize:
100+101+- SHA and author/co-authors
102+- result, confidence, severity, check conclusion
103+- concrete finding and affected file
104+- whether the report includes tests/live checks
105+- GitHub report URL:
106+`https://github.com/openclaw/clawsweeper/blob/main/<report-path>`
107+108+Do not post GitHub comments from this lane. Commit Sweeper's public surfaces are
109+markdown reports and the `ClawSweeper Commit Review` check.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。