diff --git a/memory/memories.db-shm b/memory/memories.db-shm index 03e31a2f8..f013119ef 100644 Binary files a/memory/memories.db-shm and b/memory/memories.db-shm differ diff --git a/memory/memories.db-wal b/memory/memories.db-wal index d9a748d1e..eb2663a2e 100644 Binary files a/memory/memories.db-wal and b/memory/memories.db-wal differ diff --git a/skills/openclaw-bugfix-pr/SKILL.md b/skills/openclaw-bugfix-pr/SKILL.md new file mode 100644 index 000000000..0922dcc1b --- /dev/null +++ b/skills/openclaw-bugfix-pr/SKILL.md @@ -0,0 +1,96 @@ +--- +name: openclaw-bugfix-pr +description: Find, fix, validate, and ship focused bug-fix pull requests for the openclaw/openclaw repository. Use when asked to “find a bug,” “fix this regression,” “open a PR,” “watch CI,” or do end-to-end contribution work from triage through green checks in OpenClaw. +--- + +# OpenClaw Bugfix PR + +## Overview +Execute a full bug-fix contribution loop in `openclaw/openclaw`: pick a real bug, reproduce it, implement a minimal fix, validate with tests, open a clean PR, and monitor CI to completion. + +Work pragmatically and keep scope tight. Prefer one bug, one root cause, one focused commit. + +## Workflow + +### 1) Establish Safe Working Context +- Confirm repository and branch state before edits. +- Respect existing unrelated changes; do not revert work you did not make. +- Read repository `AGENTS.md` instructions first. + +Use: +```bash +git status -sb +git branch --show-current +git remote -v +``` + +### 2) Pick a Real Bug +- Prefer active, concrete bugs from GitHub issues. +- If issue triage is unavailable, find a reproducible local defect with existing tests. +- Choose bugs with clear expected vs actual behavior. + +Useful triage commands: +```bash +gh search issues --repo openclaw/openclaw --state open --label bug --limit 20 --json number,title,url,updatedAt +``` + +If `gh issue view` fails, fetch via API: +```bash +gh api repos/openclaw/openclaw/issues/ +``` + +### 3) Reproduce Before Fixing +- Reproduce with a targeted test whenever possible. +- Add or adjust one regression test that fails on current code. +- Keep reproduction deterministic and small. + +### 4) Implement Minimal Fix +- Fix root cause, not symptoms. +- Prefer existing code paths/patterns over new abstractions. +- Keep changes surgical and readable. +- Add brief comments only where logic is non-obvious. + +### 5) Validate Thoroughly but Efficiently +- Run the exact failing test first. +- Run adjacent suites affected by the change. +- If dependencies are missing, install once and rerun the exact command. + +Typical sequence: +```bash +pnpm vitest run +pnpm vitest run +``` + +### 6) Commit Correctly +- Use repository-required committer script. +- Keep commit message concise and action-oriented. +- Commit only relevant files. + +```bash +scripts/committer "Tools: fix " +``` + +### 7) Push and Open PR +- Push to upstream if permitted. +- If upstream push fails (403), push to user fork and open PR from fork branch. +- Reference the issue in PR summary. + +Push pattern: +```bash +git push origin HEAD:refs/heads/ +# fallback +git remote add fork https://github.com//.git +git push fork HEAD:refs/heads/ +``` + +Create PR with heredoc body (avoid shell escaping issues): +```bash +gh pr create --repo openclaw/openclaw --base main --head : --title "" -F - <<'EOF' +## Summary +- ... + +## Problem +Fixes #<issue> + +## Validation +- `pnpm vitest run ...` diff --git a/skills/openclaw-bugfix-pr/agents/openai.yaml b/skills/openclaw-bugfix-pr/agents/openai.yaml new file mode 100644 index 000000000..a07be0662 --- /dev/null +++ b/skills/openclaw-bugfix-pr/agents/openai.yaml @@ -0,0 +1,4 @@ +interface: + display_name: "OpenClaw Bugfix PR" + short_description: "Ship OpenClaw bug-fix PRs with tests and CI follow-through" + default_prompt: "Use $openclaw-bugfix-pr to find a real bug, fix it, validate with tests, open a PR, and monitor CI to green."