Community程式設計與開發github.com

OpenClaw GHSA 維護者

檢查、修補、驗證、發布或確認 OpenClaw GHSA 安全公告與私有分支狀態。

OpenClaw GHSA 維護者 是什麼?

此技能專門用於管理 OpenClaw 倉庫的安全公告(GHSA)工作流程,與一般的發布工作完全分離。它提供了一系列嚴格的防護措施,包括在審查或發布前必須先閱讀 `SECURITY.md`、請求許可,以及確保此技能僅用於 GHSA 相關操作。主要功能包括擷取目前公告狀態和最新發佈的 npm 版本、在發布前驗證私有分支上沒有未關閉的 Pull Request,以及使用安全的 Markdown 和 JSON 建構方式來避免常見的格式錯誤。此外,它還詳細說明了應用 PATCH 請求的正確順序(例如避免在同一次 PATCH 中同時設定 `severity` 和 `cvss_vector_string`),以及如何發布公告並驗證發布成功。最後,它列出了常見的 GHSA 陷阱,例如缺少必要欄位、私有分支仍有未關閉的 PR 會導致 HTTP 422 錯誤,以及建議在公開內容中避免使用原始提交哈希、PR 標題/編號等敏感資訊。此技能主要用於命令列環境,並依賴 `gh`、`jq`、`rg` 等工具。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/.agents/skills/openclaw-ghsa-maintainer

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

OpenClaw GHSA 維護者 是做什麼的?

僅將此技能用於倉庫安全公告工作流程。將一般的發布工作保留給 release-openclaw-maintainer。

尊重公告防護措施

  • 在審查或發布倉庫公告之前,請閱讀 SECURITY.md。
  • 在進行任何發布操作前請求許可。
  • 將此技能視為僅限 GHSA 使用。請勿將其用於穩定版或 beta 版發布工作。

擷取並檢查公告狀態

擷取目前公告以及最新的已發布 npm 版本:

gh api /repos/openclaw/openclaw/security-advisories/<GHSA>
npm view openclaw version --userconfig "$(mktemp)"

在修補之前,使用擷取的輸出來確認公告狀態、連結的私有分支以及漏洞載荷的形狀。

驗證私有分支 PR 已關閉

在發布之前,驗證公告的私有分支上沒有未關閉的 PR:

fork=$(gh api /repos/openclaw/openclaw/security-advisories/<GHSA> | jq -r .private_fork.full_name)
gh pr list -R "$fork" --state open

在發布之前,PR 列表必須為空。

安全地準備公告 Markdown 和 JSON

  • 透過 heredoc 將公告 Markdown 寫入暫存檔案。請勿使用跳脫的 \n 字串。
  • 使用 jq 構建 PATCH 載荷 JSON,而不是手動跳脫的 shell JSON。

範例模式:

cat > /tmp/ghsa.desc.md <<'EOF'
<markdown 描述>
EOF

jq -n --rawfile desc /tmp/ghsa.desc.md \
  '{summary,severity,description:$desc,vulnerabilities:[...]}' \
  > /tmp/ghsa.patch.json

以正確順序應用 PATCH 呼叫

  • 請勿在同一次 PATCH 呼叫中同時設定 severity 和 cvss_vector_string。
  • 當公告需要同時設定這兩個欄位時,請使用分開的呼叫。
  • 透過 PATCH 公告並設定 "state":"published" 來發布。沒有單獨的 /publish 端點。

範例形狀:

gh api -X PATCH /repos/openclaw/openclaw/security-advisories/<GHSA> \
  --input /tmp/ghsa.patch.json

發布並驗證成功

發布後,重新擷取公告並確認:

  • state=published
  • published_at 已設定
  • 描述中不包含逐字跳脫的 \\n

驗證模式:

gh api /repos/openclaw/openclaw/security-advisories/<GHSA>
jq -r .description < /tmp/ghsa.refetch.json | rg '\\\\n'

常見的 GHSA 陷阱

  • 如果缺少必要欄位或私有分支仍有未關閉的 PR,則發布會失敗並回傳 HTTP 422。
  • 如果 Markdown 是使用跳脫的換行字串組合而成,則在 shell 中看起來正確的載荷仍可能出錯。
  • 公告 PATCH 順序很重要;當 GHSA API 約束要求時,請分開更新欄位。
  • 公開的強化/無發布評論和草稿文字應避免使用原始提交哈希、PR 標題/編號和修復機制摘要。偏好使用修補版本欄位或僅限發布的用語;將 SHA、PR 和實作說明保留在內部證據中。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相關技能