From ecf715940d00ae1568d78abc0e1e68f584bc0925 Mon Sep 17 00:00:00 2001 From: David Abutbul Date: Fri, 6 Feb 2026 01:17:15 +0200 Subject: [PATCH] chore(constants, SKILL.md): update SKILL_URL to version 0.0.6 and adjust download script --- constants.ts | 2 +- skills/clawsec-suite/SKILL.md | 26 +++----------------------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/constants.ts b/constants.ts index 7454cdb..7222814 100644 --- a/constants.ts +++ b/constants.ts @@ -1,6 +1,6 @@ // ClawSec Suite SKILL.md URL - injected at build time, with hardcoded fallback export const SKILL_URL = import.meta.env.VITE_CLAWSEC_SUITE_URL || - 'https://clawsec.prompt.security/releases/download/clawsec-suite-v0.0.5/SKILL.md'; + 'https://clawsec.prompt.security/releases/download/clawsec-suite-v0.0.6/SKILL.md'; // Feed URL for fetching live advisories export const ADVISORY_FEED_URL = 'https://clawsec.prompt.security/releases/latest/download/feed.json'; diff --git a/skills/clawsec-suite/SKILL.md b/skills/clawsec-suite/SKILL.md index 75074a0..7b54ed2 100644 --- a/skills/clawsec-suite/SKILL.md +++ b/skills/clawsec-suite/SKILL.md @@ -243,7 +243,7 @@ cd "$(mktemp -d)" # 1) Download checksums.json and artifact curl -fsSL "$BASE/checksums.json" -o checksums.json -curl -fsSL "$BASE/clawsec-suite.skill" -o clawsec-suite.skill +curl -fsSL "$BASE/SKILL.md" -o SKILL.md # 2) Extract expected checksum from checksums.json EXPECTED_SHA256=$(jq -r '.files["clawsec-suite.skill"].sha256' checksums.json) @@ -256,7 +256,7 @@ fi if command -v shasum >/dev/null 2>&1; then ACTUAL_SHA256=$(shasum -a 256 clawsec-suite.skill | awk '{print $1}') else - ACTUAL_SHA256=$(sha256sum clawsec-suite.skill | awk '{print $1}') + ACTUAL_SHA256=$(sha256sum SKILL.md | awk '{print $1}') fi # 4) Verify checksum (fail closed) @@ -270,8 +270,7 @@ echo "Checksum verified: $ACTUAL_SHA256" # 5) Install rm -rf "$DEST"/* -unzip -oq clawsec-suite.skill -d "$DEST" - +#download specific files by checksum list, or .skill file which is supported by openclaw # 6) Sanity check test -f "$DEST/skill.json" test -f "$DEST/SKILL.md" @@ -299,25 +298,6 @@ Each release publishes a `checksums.json` file that contains version info and SH - `https://clawsec.prompt.security/releases/download/clawsec-suite-v/checksums.json` -The checksums.json structure: - -```json -{ - "skill": "clawsec-suite", - "version": "0.0.3", - "generated_at": "2026-02-04T23:42:57Z", - "repository": "prompt-security/ClawSec", - "tag": "clawsec-suite-v0.0.3", - "files": { - "clawsec-suite.skill": { - "sha256": "339a4817aba054e6da5a6d838e2603d16592b43f6bdb7265d6b1918b22fe62cb", - "size": 4870, - "url": "https://clawsec.prompt.security/releases/download/clawsec-suite-v0.0.5/clawsec-suite.skill" - } - } -} -``` - To check for updates, compare the installed version against the latest `checksums.json`. See `HEARTBEAT.md` for the upgrade check procedure. ## Platform adapters (optional sections)