Skip to content

Commit f2d97df

Browse files
committed
docs: add small bugfix sweep skill
1 parent 8093ae6 commit f2d97df

2 files changed

Lines changed: 64 additions & 1 deletion

File tree

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
name: openclaw-small-bugfix-sweep
3+
description: Fix only small, high-certainty OpenClaw bugs from a pasted issue/PR list after deep code review.
4+
---
5+
6+
# OpenClaw Small Bugfix Sweep
7+
8+
Batch workflow for pasted OpenClaw issue/PR refs.
9+
Execute, do not summarize.
10+
Triage does not commit, push, create PRs, comment, close, label, land, or merge.
11+
12+
## Companion Skills
13+
14+
Use `$gitcrawl` first, `$openclaw-pr-maintainer` for live GitHub hygiene, `$github-deep-review` posture for source tracing, and `$openclaw-testing` for proof.
15+
16+
## Loop
17+
18+
For each ref:
19+
20+
1. Read live target with `gh`.
21+
2. Check `gitcrawl` for related, duplicate, closed, or already-fixed threads.
22+
3. Read body, comments, linked refs, changed files, current code, adjacent tests, and dependency contracts when relevant.
23+
4. Trace the real runtime path.
24+
5. For issues: fix locally only if this is a bug, current code proves root cause, the implicated path is clear, and a narrow patch is cleaner than refactor.
25+
6. For PRs: decide `ready-to-merge`, `needs-fixup`, or `skip`; do not alter PR branches unless explicitly asked.
26+
7. Add focused regression proof when practical for local issue fixes or PR readiness checks.
27+
8. Run the smallest meaningful gate.
28+
9. Continue until every pasted ref is fixed or classified.
29+
30+
No subagents unless explicitly requested.
31+
32+
## Skip If
33+
34+
- not a bug
35+
- config/docs/workflow/release/support/dependency/product work
36+
- repro or root cause is uncertain
37+
- larger refactor or owner-boundary change is cleaner
38+
- already fixed on current `main`
39+
- dependency behavior is guessed
40+
- no focused proof is feasible
41+
42+
Skip with terse reason. Do not pad with low-confidence fixes.
43+
44+
## Fix Rules
45+
46+
- owner module first; generic seam only when required
47+
- existing patterns/helpers/types
48+
- no drive-by refactors
49+
- tests near failing surface
50+
- docs only for changed public behavior
51+
- no commit/push/create PR/comment/close/label/land/merge unless explicitly asked
52+
53+
## PR Rules
54+
55+
- `ready-to-merge`: code is good, current head checked, required proof is green or clearly pending only external CI; list for maintainer merge or `@clawsweeper automerge`
56+
- `needs-fixup`: small bug is clear, but PR branch needs changes; list exact files/tests and wait for explicit fix/push/automerge instruction
57+
- `skip`: broad, stale, speculative, config/product/security/release, owner-boundary, or refactor-sized
58+
- if source PR is untrusted/uneditable, do not create a replacement PR during sweep
59+
60+
## Output Shape
61+
62+
Ledger: `fixed-local`, `ready-to-merge`, `needs-fixup`, `skipped`, `needs-human`.
63+
Final: issue files left on disk, PRs ready for merge/automerge, tests/gates, skip reasons.

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Telegraph style. Root rules only. Read scoped `AGENTS.md` before subtree work.
143143

144144
- Docs change with behavior/API. Use docs list/read_when hints; docs links per `docs/AGENTS.md`.
145145
- Docs final answers: when doc files changed, end with the relevant full `https://docs.openclaw.ai/...` URL(s).
146-
- Changelog user-facing only; pure test/internal usually no entry.
146+
- Changelog user-facing only; fixing an issue or landing/merging a PR needs one unless pure test/internal.
147147
- Changelog placement: active version `### Changes`/`### Fixes`; every added entry must include at least one `Thanks @author` attribution, using credited GitHub username(s). Never add `Thanks @codex`, `Thanks @openclaw`, or `Thanks @steipete`.
148148
- Changelog bullets are always single-line. No wrapping/continuation across multiple lines. Long entries stay on one long line so dedupe, PR-ref, and credit-audit tooling work and so the visual style stays uniform.
149149

0 commit comments

Comments
 (0)