Logo Clawkeeper

Clawkeeper

Cộng đồngPhổ biến
SafeAI-Lab-X
clawkeeper

Install, configure, verify, and debug the Clawkeeper watcher stack in this workspace. Use when a user asks to set up `clawkeeper`, initialize `remote` or `local` mode, enable `clawkeeper-watcher`, wire `clawkeeper-bands`, diagnose `context-judge` routing, inspect watcher logs, fix mode/config mismatches, or troubleshoot startup, audit, hardening, rollback, drift monitoring, or bridge notification issues.

Add to TypingMind

Tổng quan

Nhà phát hànhSafeAI-Lab-X
Kho mãClawKeeper
Tên kỹ năngclawkeeper
Sao
1K
Bản fork
57
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được SafeAI-Lab-X công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Clawkeeper trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/SafeAI-Lab-X/ClawKeeper/tree/main/legacy/clawkeeper-watcher/skills/clawkeeper
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SafeAI-Lab-X/ClawKeeper.git /tmp/ClawKeeper
mkdir -p .claude/skills
cp -r /tmp/ClawKeeper/legacy/clawkeeper-watcher/skills/clawkeeper .claude/skills/clawkeeper
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Clawkeeper trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Clawkeeper ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Clawkeeper với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Clawkeeper

Use this skill only for the Clawkeeper workspace. Treat clawkeeper-watcher as the product center and clawkeeper as the launcher that prepares mode-specific runtime state.

Core mental model

  • plugins/clawkeeper-watcher/ is the watcher plugin and governance engine.
  • clawkeeper/ is the launcher that prepares isolated remote and local mode roots, then delegates to OpenClaw.
  • plugins/clawkeeper-bands/ is the user-side bridge for notifications and approvals.
  • remote is read-only judgment and historical intelligence.
  • local is trusted audit, hardening, rollback, drift monitoring, and skill guard.
  • Both watcher modes expose POST /plugins/clawkeeper-watcher/context-judge.

Read these files when needed:

  • README.md
  • plugins/clawkeeper-watcher/README.md
  • plugins/clawkeeper-bands/README.md
  • clawkeeper/src/cli.ts

Preferred workflow

Follow this order unless the user explicitly narrows the task:

  1. Identify whether the user wants install, config, validation, or debugging.
  2. Check whether the issue is about the launcher, the watcher plugin, or the bands bridge.
  3. Verify the exact mode in play: remote, local, or both.
  4. Run the smallest direct validation command first.
  5. Only after validation fails, inspect config, logs, bridge wiring, and code paths.

Do not jump straight to speculative fixes.

Install and initialize

For source checkout setup in this repo, use:

bash
pnpm install
cd clawkeeper
npm install
npm run build
npm link
cd ..

Initialize modes with:

bash
clawkeeper init remote
clawkeeper init local
clawkeeper local config set gateway.mode local
clawkeeper status

Important:

  • local mode expects gateway.mode=local.
  • The launcher stores mode state under ~/.clawkeeper/ by default unless --root overrides it.
  • If the problem is only inside the watcher plugin, do not blame launcher setup until clawkeeper status or mode launch actually fails.

Validation commands

Use the most direct command for the claimed problem.

Launcher validation

bash
clawkeeper --help
clawkeeper status
clawkeeper init remote
clawkeeper init local

Mode launch validation

bash
clawkeeper remote gateway run
clawkeeper local gateway run

Watcher validation

bash
clawkeeper remote clawkeeper-watcher status
clawkeeper remote clawkeeper-watcher logs
clawkeeper remote clawkeeper-watcher fingerprints
clawkeeper remote clawkeeper-watcher profiles

clawkeeper local clawkeeper-watcher status
clawkeeper local clawkeeper-watcher logs
clawkeeper local clawkeeper-watcher audit
clawkeeper local clawkeeper-watcher harden
clawkeeper local clawkeeper-watcher monitor
clawkeeper local clawkeeper-watcher rollback
clawkeeper local clawkeeper-watcher scan-skill <name-or-path>

Context-judge validation

Confirm that the route is the watcher route, not the bands route:

text
POST /plugins/clawkeeper-watcher/context-judge

Bridge validation

Install the receiving-side bridge plugin with:

bash
openclaw plugins install --link /path/to/clawkeeper/plugins/clawkeeper-bands

Then verify the local watcher bridge config:

bash
clawkeeper local config set plugins.entries.clawkeeper-watcher.config.notify.userBridge.enabled true
clawkeeper local config set plugins.entries.clawkeeper-watcher.config.notify.userBridge.url http://127.0.0.1:18889
clawkeeper local config set plugins.entries.clawkeeper-watcher.config.notify.userBridge.token <gateway-token>

Debugging order

When debugging, follow this sequence:

  1. Confirm the exact failing command.
  2. Confirm whether the command is running in remote or local.
  3. Confirm whether the command is launcher-level or watcher-level.
  4. Inspect current config relevant to that failure.
  5. Read watcher logs or gateway output.
  6. Check bridge endpoint path and token if notifications or approvals are involved.
  7. Only then inspect code.

Report the first verified failing boundary, not every possible theory.

Common failure patterns

Local command run in remote mode

Symptoms:

  • audit, harden, monitor, or rollback rejected
  • output says the command is only available in local mode

Fix:

  • rerun on the local instance
  • verify CLAWKEEPER_MODE or config mode if behavior is unexpected

gateway.mode mismatch

Symptoms:

  • local launch behaves like plain or wrong mode
  • local-only watcher behavior does not appear

Fix:

  • set clawkeeper local config set gateway.mode local
  • restart the local mode process

Wrong route when testing context judgment

Symptoms:

  • request sent to bands instead of watcher
  • remote judgment appears missing

Fix:

  • use POST /plugins/clawkeeper-watcher/context-judge for watcher judgment
  • use clawkeeper-bands only for the receiving-side bridge and approval surface

Bridge configured but notifications do not arrive

Symptoms:

  • startup audit or approval summary never reaches user-side gateway

Check:

  • bridge enabled
  • bridge url
  • bridge token
  • receiving gateway has clawkeeper-bands installed
  • user-side receiver path exists and gateway is reachable

Logs exist but the wrong file is inspected

Symptoms:

  • "no events" while watcher is active

Check:

  • today vs explicit --date
  • current mode and workspace
  • whether the command is reading watcher event logs or launcher stdout

Use:

bash
clawkeeper local clawkeeper-watcher log-path
clawkeeper local clawkeeper-watcher logs --all
clawkeeper local clawkeeper-watcher logs --date YYYY-MM-DD

Audit result interpreted as host hardening

Symptoms:

  • user expects firewall, SSH, or OS policy changes

Clarify:

  • Clawkeeper watcher audits and hardens OpenClaw-side runtime state
  • it does not automatically perform generic host OS hardening

Command accuracy guardrails

Do not invent flags or routes. Prefer commands already documented in:

  • README.md
  • plugins/clawkeeper-watcher/README.md
  • clawkeeper/src/cli.ts

Current launcher surface:

  • clawkeeper init <mode>
  • clawkeeper status
  • clawkeeper remote ...
  • clawkeeper local ...

Current watcher CLI surface includes:

  • audit
  • harden
  • monitor
  • rollback
  • status
  • logs
  • log-path
  • scan-skill
  • fingerprints
  • profiles

Response expectations

When using this skill:

  • State whether the issue is launcher, watcher, or bridge related.
  • State whether it is remote, local, or cross-mode.
  • Show the exact command you used to validate the issue.
  • Separate verified facts from inference.
  • Prefer the narrowest fix that matches the failing boundary.

Câu hỏi thường gặp

Kỹ năng AI Clawkeeper làm được gì?

Install, configure, verify, and debug the Clawkeeper watcher stack in this workspace. Use when a user asks to set up `clawkeeper`, initialize `remote` or `local` mode, enable `clawkeeper-watcher`, wire `clawkeeper-bands`, diagnose `context-judge` routing, inspect watcher logs, fix mode/config mismatches, or troubleshoot startup, audit, hardening, rollback, drift monitoring, or bridge notification issues.

Vì sao nên dùng Clawkeeper trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Clawkeeper là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Clawkeeper trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/SafeAI-Lab-X/ClawKeeper/tree/main/legacy/clawkeeper-watcher/skills/clawkeeper. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Clawkeeper?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Clawkeeper với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Clawkeeper với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Clawkeeper có miễn phí không?

Kỹ năng này được SafeAI-Lab-X phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇