Real Skill packageSource verifiedClawHub registry

init-hooks

管理 OpenClaw 容器启动时自动执行的脚本钩子。gateway 重启、pod 重启、pod 重建均不丢失(数据持久化在 workspace/.init-hooks/)。 支持 inline 命令、本地脚本(shell/python)、CDN URL(zip/tar.gz 自动下载解压)三种钩子类型。 用于:新增/查看/修改/禁用/删除启动钩子、立即测试运行、查看执行日志。 触发词:init-hooks、启动钩子、startup hook、重启初始化、pod重启执行、开机自启。 安装触发词:帮我安装 init-hooks、初始化 init-hooks、设置 init-hooks、执行 init-hooks 安装。 配置变更触发词:修改 openclaw.json、改 gateway 配置、改配置文件 → 执行后自动调用 sync_openclaw_config.py。 能力边界:不主动修改任何配置项,不预设默认值;只把用户明确给出的 patch 原样写入,并把配置复制到用户配置的持久化路径。

Identity and source

Publisher attributionEvan Songregistry owner unverified by skillvetai
Functional categorySoftware Developmentautomatically inferred · 56% rule confidence
Package forminstruction with code7 recorded files
Canonical sourceClawHub registryclawhub:songhonglei:init-hooks
Open canonical source ↗

Platform declarations

These states come from the source or distribution context. None of the entries below are SkillVetAI compatibility test results.

OpenClawnative officialProvenance: registry distribution

Independent structural checks

These checks parse the fixed package against dated platform rules. They do not execute the Skill or verify task behavior.

Claude Codepasses structure
Checker 0.1.0 · agent-skills-2026-08-13+claude-code-docs-2026-08-13 · 11/14/2026.claude/skills/init-hooks

Runtime, accounts, dependencies, permissions, network behavior and task quality remain untested.

OpenAI Codexpasses structure
Checker 0.1.0 · agent-skills-2026-08-13+codex-docs-2026-08-13 · 11/14/2026.agents/skills/init-hooks

Runtime, accounts, dependencies, permissions, network behavior and task quality remain untested.

OpenClawpasses structure
Checker 0.1.0 · agent-skills-2026-08-13+openclaw-docs-2026-08-13 · 11/14/2026skills/init-hooks

Runtime, accounts, dependencies, permissions, network behavior and task quality remain untested.

Installation and inspection

This command is recorded from the source ecosystem and resolves the registry's latest release. The fixed release shown on this page should be inspected before adoption.

clawhub install @songhonglei/init-hooks
clawhub inspect @songhonglei/init-hooks --version 1.0.4

Security evidence

SkillVetAI static result: no findings detected

This automated, non-executing scan is bound to this release hash. It is not a safety certification and may contain false positives or false negatives.

Status
completed
Coverage
full text content
Files
7 / 7 inspected as text
Checked
11/14/2026, 6:15:49 AM
Scanner
0.1.3
Policy
1.0.3
5 inferred permission indicators
  • shell execution — automatically inferred
  • network access — automatically inferred
  • filesystem read — automatically inferred
  • filesystem write — automatically inferred
  • credential access — automatically inferred
3 dependency and API indicators
  • api: cdn.example.com
  • api: clawhub.ai
  • api: github.com
External clawhub result: suspicious

This is registry-supplied evidence for the recorded release, not an independent SkillVetAI scan. Check the canonical source for the full report, scanner versions, scope, and current moderation state.

Evidence checked
11/14/2026, 4:49:54 AM
Release binding
Matches this record
  • skillspector: suspicious
  • llm: suspicious

Recorded files

The catalog stores hashes and an inventory summary for change detection. It does not republish the package contents.

Package content hashsha256:4cc789851ea26d3d94a4d5a9bf271abaaf31957d2c5e3730a066aeada3ce409f
Show up to 7 recorded paths
  • LICENSE
  • README.md
  • references/best-practices.md
  • scripts/manage.py
  • scripts/sync_openclaw_config.py
  • skill-card.md
  • SKILL.md

Source changelog

Docs only: the python example patched every persistence target independently, so a drifted target kept stale values and re-introduced old config after a rebuild. It now patches runtime only and copies runtime verbatim to each target (matching sync_openclaw_config.py), with patch content supplied by the caller instead of hard-coded keys. Verified against initially divergent targets.

Release security diff

mediumCompared fixed releases 1.0.0 and 1.0.4; 0 finding and 0 permission indicators were added.

Both fixed releases were scanned under the current scanner and policy, so finding, permission and dependency changes are available.

Change reasons and limitations
  • file surface changed
  • content hash changed

Observed release history

These older immutable releases were observed by prior successful syncs. They remain recorded when a newer release becomes current.

1.0.07/13/2026sha256:116c44c760fb65e26b92e5834ece00f47c835fd63c90774effa91ba412be3a02