Skip to content

Commit 28ff82d

Browse files
committed
chore: add Clownfish cloud PR skill
1 parent b96e773 commit 28ff82d

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

  • .agents/skills/clownfish-cloud-pr
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
name: clownfish-cloud-pr
3+
description: Use when launching Clownfish in GitHub Actions to create or update one guarded GitHub implementation PR from issue/PR refs, a ClawSweeper report, or a custom maintainer prompt.
4+
---
5+
6+
# Clownfish Cloud PR
7+
8+
Use this skill when the user wants Codex to ask Clownfish to create a PR in the
9+
cloud from issue/PR refs plus a custom prompt.
10+
11+
## Create One Job
12+
13+
```bash
14+
cd ~/Projects/clownfish
15+
git status --short --branch
16+
npm run create-job -- \
17+
--repo openclaw/openclaw \
18+
--refs 123,456 \
19+
--prompt-file /tmp/clownfish-prompt.md
20+
```
21+
22+
From a ClawSweeper report:
23+
24+
```bash
25+
npm run create-job -- \
26+
--from-report ../clawsweeper/records/openclaw-openclaw/items/123.md
27+
```
28+
29+
The script checks for an existing open PR/body match and remote branch named
30+
`clownfish/<cluster-id>` before writing a duplicate job. Use `--dry-run` to
31+
inspect the exact job body.
32+
33+
## Validate And Dispatch
34+
35+
```bash
36+
npm run validate:job -- jobs/openclaw/inbox/clawsweeper-openclaw-openclaw-123.md
37+
npm run render -- jobs/openclaw/inbox/clawsweeper-openclaw-openclaw-123.md --mode autonomous >/tmp/clownfish-rendered-prompt.md
38+
git add jobs/openclaw/inbox/clawsweeper-openclaw-openclaw-123.md
39+
git commit -m "chore: add ClawSweeper promoted job"
40+
git push origin main
41+
npm run dispatch -- jobs/openclaw/inbox/clawsweeper-openclaw-openclaw-123.md \
42+
--mode autonomous \
43+
--runner blacksmith-4vcpu-ubuntu-2404 \
44+
--execution-runner blacksmith-16vcpu-ubuntu-2404 \
45+
--model gpt-5.5
46+
```
47+
48+
Do not use `--dispatch` until the job is committed and pushed; the workflow
49+
reads the job path from GitHub. Keep `CLOWNFISH_ALLOW_MERGE=0` unless Peter
50+
explicitly opens the merge gate.
51+
52+
## Guardrails
53+
54+
- One cluster, one branch, one PR: `clownfish/<cluster-id>`.
55+
- No security-sensitive work.
56+
- Do not close duplicates before the fix PR path exists, lands, or is proven
57+
unnecessary.
58+
- Codex workers do not get GitHub tokens; deterministic scripts own writes.

0 commit comments

Comments
 (0)