Skip to content

Commit 372f82b

Browse files
guanjiaweiclaude
andcommitted
feat: agent auto-downloads runtime with SHA256 verification
Add step-by-step agent instructions to automatically download the runtime from GitHub Releases and verify SHA256 checksum before extraction. Falls back to manual download if auto-install fails. Scan remains Benign. Published as v0.2.7. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 46b8f46 commit 372f82b

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

clawhub-skill/aima-doctor/SKILL.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,30 @@ Use this skill when OpenClaw needs diagnosis or repair and the normal agent flow
2020

2121
## Execution rules
2222

23-
1. Prefer the packaged helper over ad-hoc shell commands.
24-
2. Summarize the user symptom into one short sentence and pass it to the helper.
25-
3. On macOS or Linux, run:
23+
1. Before running the helper, check that the runtime exists. On macOS/Linux check for `~/.openclaw/tools/aima-doctor/run.sh`; on Windows check for `%USERPROFILE%\.openclaw\tools\aima-doctor\run.ps1`.
24+
2. If the runtime is missing, install it automatically:
25+
- Download `aima-doctor-runtime.zip` from `https://github.com/Approaching-AI/aima-openclaw/releases/download/v0.2/aima-doctor-runtime.zip`
26+
- Verify the SHA256 checksum matches `0f38959c6759e72a25bf089c9ab4aef1cf0022ba3aef1ea6686593896e973d1e`. If it does not match, stop and warn the user.
27+
- Create the target directory `~/.openclaw/tools/aima-doctor/` if it does not exist.
28+
- Extract the archive into that directory.
29+
- Confirm the runtime is now present before proceeding.
30+
3. Prefer the packaged helper over ad-hoc shell commands.
31+
4. Summarize the user symptom into one short sentence and pass it to the helper.
32+
5. On macOS or Linux, run:
2633

2734
```bash
2835
bash ~/.openclaw/tools/aima-doctor/run.sh --run --terminal --symptom "<symptom>"
2936
```
3037

31-
4. On Windows, run:
38+
6. On Windows, run:
3239

3340
```powershell
3441
& "$env:USERPROFILE\.openclaw\tools\aima-doctor\run.ps1" --run --terminal --symptom "<symptom>"
3542
```
3643

37-
5. If the helper asks a question, relay that question to the user and rerun or continue with the answer as required.
38-
6. If the helper reports success or failure, quote that result plainly. Do not invent a better outcome.
39-
7. If the helper is missing, tell the user the runtime install is incomplete and direct them to the GitHub release at `https://github.com/Approaching-AI/aima-openclaw/releases`.
44+
7. If the helper asks a question, relay that question to the user and rerun or continue with the answer as required.
45+
8. If the helper reports success or failure, quote that result plainly. Do not invent a better outcome.
46+
9. If the automatic download in step 2 fails, direct the user to the GitHub release at `https://github.com/Approaching-AI/aima-openclaw/releases` to download and extract manually.
4047

4148
## Scope
4249

0 commit comments

Comments
 (0)