clawhub-moderation
预览截图
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "clawhub-moderation":https://skillpi.com/zh/skills/deepskill-ba2def0903230bd66072f192ea42973993f9660b86ad0fb8e2916fcf0a4c2973。安装前核对上游来源和版本:https://github.com/openclaw/clawhub。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于 ClawHub 工作人员通过仓库本地 ClawHub 管理工具执行的管理操作:技能、用户、组织发布者、插件包、可信发布者、官方发布者以及受保护的员工邮箱。
介绍来源: third_party · openclaw · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 使用 ClawHub 员工节制动作, 使用 Repo- local ClawHub 管理员工具: 技能、 用户、 org 出版商、 插件包、 信任的出版商、 官方出版商、 以及保护员工的电子邮件 。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: clawhub-moderation
description: "Use for ClawHub staff moderation actions with the repo-local ClawHub admin tool: skills, users, org publishers, plugin packages, trusted publishers, official publishers, and guarded staff email."ClawHub Moderation
Use the repo-local admin tool from a checked-out ClawHub repo. It wraps the existing ClawHub CLI auth/config and HTTP API surfaces. Do not call Convex internal mutations directly for staff actions.
Safety Rules
- Require an explicit target from the user: skill slug, user handle, or user id.
- Require a reason for destructive, restorative, ownership, or moderation writes.
- Before any write, show the exact command and ask for confirmation unless the
user already said to proceed or supplied
--yes. - For
email send, the user must explicitly ask for the email and sign off on the final recipient, subject, and body. Dry-run is fine for drafting. Never send until both are true, and only use--send --confirm-user-request --confirm-user-signoffafter that approval. - Prefer handles for humans. Use
--idonly when the user provides a user id. - Never bypass API-token auth, server role checks, or audit logging.
- After the write, verify state with the CLI/API and report the result.
Command Map
Run from the ClawHub repo root:
bun run admin -- --help
Authenticate or validate the current token:
bun run admin -- login
bun run admin -- whoami
Current top-level command groups:
auth
users
plugins|plugin
packages|package
org
email
skills|skill
Skills
bun run admin -- skills --help exposes:
unhide <slug>
revoke-version <slug>
rescan <slug>
reports
triage-report <report-id>
Examples:
bun run admin -- skills unhide <slug> --reason "<reason>" --yes
bun run admin -- skills revoke-version <slug> --version <version> --reason "<reason>" --yes
bun run admin -- skills rescan <slug> --reason "<reason>" --yes
bun run admin -- skills reports --status open
bun run admin -- skills triage-report <report-id> --status confirmed --action hide --note "<note>" --yes
Pass --owner <handle> to revoke-version when more than one publisher uses the same slug.
Users
bun run admin -- users --help exposes:
ban <handleOrId>
unban <handleOrId>
set-role <handleOrId> <role>
reclassify-ban <handleOrId>
remediate-autobans
Examples:
bun run admin -- users ban <handleOrId> --reason "<reason>" --yes
bun run admin -- users unban <handleOrId> --reason "<reason>" --yes
bun run admin -- users set-role <handleOrId> <user|moderator|admin> --yes
bun run admin -- users reclassify-ban <handleOrId> --reason "<reason>" --apply --yes
bun run admin -- users remediate-autobans --apply --reason "<reason>"
Use --id when <handleOrId> is a user id. Use --fuzzy only when the user
has asked for fuzzy handle resolution or the exact handle is ambiguous.
Org Publishers
bun run admin -- org --help exposes:
official
create <handle>
remove-member <handle> <member>
delete <handle>
repair-scoped-packages <csv>
Examples:
bun run admin -- org official list
bun run admin -- org official add <handle> --reason "<reason>" --yes
bun run admin -- org official remove <handle> --reason "<reason>" --yes
bun run admin -- org create <handle> --display-name "<name>" --member <user-handle> --role owner
bun run admin -- org remove-member <handle> <member-handle>
bun run admin -- org delete <handle> --reason "<reason>" # dry-run
bun run admin -- org delete <handle> --reason "<reason>" --apply
bun run admin -- org repair-scoped-packages <csv> # dry-run
bun run admin -- org repair-scoped-packages <csv> --apply
org create requires --member; it must not add the moderator running the
command as an implicit owner. org delete only works for empty org publishers
and defaults to dry-run.
Plugin Packages
bun run admin -- packages --help exposes:
moderate <name>
status|moderation-status <name>
queue|moderation-queue
reports
triage-report <report-id>
transfer <name>
repair-name <name>
migrations
set-migration <bundled-plugin-id>
trusted-publisher
Examples:
bun run admin -- packages status <name>
bun run admin -- packages transfer <name> --to <owner> --reason "<reason>" # dry-run
bun run admin -- packages transfer <name> --to <owner> --reason "<reason>" --apply
bun run admin -- packages repair-name <name> --next-name <name> --reason "<reason>"
bun run admin -- packages trusted-publisher get <name>
bun run admin -- packages trusted-publisher set <name> --repository <owner/repo> --workflow-filename <file>
Staff Email
bun run admin -- email send --help exposes:
--to <email>
--user <handle>
--subject <subject>
--body-file <path>
--body <text>
--send
--confirm-user-request
--confirm-user-signoff
--json
Draft only:
bun run admin -- email send --user <handle> --subject "<subject>" --body-file <path>
Send only after explicit request and sign-off:
bun run admin -- email send --user <handle> --subject "<subject>" --body-file <path> --send --confirm-user-request --confirm-user-signoff
The server sends through the production noreply provider and writes an audit log only after admin auth succeeds.
Verification
- For skills, inspect the page/API status after
skills unhide. - For users, prefer user search/admin surfaces for target accounts where available.
- For orgs and packages, use the public publisher/plugin pages and the relevant CLI status command after a write.
- For email, verify the CLI response and audit expectation; do not send a second email just to test delivery.
- If verification is blocked by auth or missing admin access, report the command result and the verification blocker plainly.
Impact Notes
skills unhideis a moderator manual restore. It clears skill hidden state, applies a clean manual override to top-level moderation fields, preserves version-level scanner records, updates public stats, and writes audit logs.skills revoke-versionpermanently removes one exact version, records staff evidence, advances latest pointers to a safe survivor when one exists, and keeps the skill independently hidden when no usable version remains.- There is no standalone
skills hidecommand inclawhub-admin; use report triage with--action hidewhen resolving a report that should hide a skill. users banis disruptive: it revokes API tokens, marks the user deleted, hides owned skills, soft-deletes comments, and writes audit logs.users unbanis admin-only. It clears ban state and restores skills that were hidden by the matching ban flow; revoked API tokens stay revoked.packages transferpreserves the package row, stats, releases, and history; it changes the owner publisher.org deletesoft-deletes an empty org publisher and retains member rows for history; it refuses orgs with active skills or packages.
版本历史
-
v0.27.0
GitHub ↗
原版更新说明
## 0.27.0 - 2026-11-17 - Scan reports: `clawhub scan download <skill> --version <version>` now returns a report when a skill version's publication checks failed before a verdict. It used to answer "Scan results not found". The archive says the scan failed with no safety verdict, lists the check states and whether a retry is waiting, and says to remove Python bytecode when that stopped the scan. Worker errors are not included. Plugin versions are unchanged. - CLI: add `clawhub skill publication <skill> --version <version>`. It prints the owner-only publication stage for that exact skill version, including whether a retry is already waiting and how to download a stored scan report. A completed publication does not claim the skill is currently visible. - Package publish: a missing uploaded package tarball is a client error. The message stays "Package tarball upload no longer exists". - Skill reads: a missing stored skill file is a client error for the readme, skill card, file text, and publish preview text. The message stays "File missing in storage". - Catalog: keep package search versions aligned with the current release when editing metadata on packages with stale version summaries. Package mutations now rely on the shared trigger to refresh search projections. - Skill publish: a bad upload ticket is a client error. The messages stay "Skill upload ticket is missing, used, or expired", "Uploaded file does not match its skill upload ticket", and "Skill upload ticket does not match this publish". - Scanning: reuse the shared subprocess runner for legacy pre-publication scanners, bounding captured output to 32 MiB stdout and 1 MiB stderr while preserving scanner verdict exit codes. ### Release Proof - npm: https://www.npmjs.com/package/clawhub/v/0.27.0 - tarball: https://registry.npmjs.org/clawhub/-/clawhub-0.27.0.tgz - integrity: sha512-C8iIFtKZ2s2b8lS8LL70aDkYAzZ0Q1W4P816shyFz80gm4FJe2J3Df+Y7NqooryR7N6nuL5V7uPf+3QXorKsbQ== - npm preflight: https://github.com/openclaw/clawhub/actions/runs/44250634360 - npm publish: https://github.com/openclaw/clawhub/actions/runs/44251605577
-
v0.26.0
GitHub ↗
原版更新说明
## 0.26.0 - 2026-11-12 - Templates: accept native agent settings, including `agent.tools`, and top-level `skills` and `plugins` dependencies in `CLAW.md`. Dependencies can reference exact ClawHub versions or bundled package directories. This fixes the stable CLI rejecting the supported Template format before upload (#4551). Publish an already-built `.tgz`; successful publication does not establish compatibility with a particular OpenClaw consumer release. - CLI: add `clawhub package publication <name> --version <version>`. It prints whether that exact version is published, still pending, failed, or was never accepted. The public version list hides a pending release, and `package readiness` remains the official-migration check. Older registries that answer the publication URL with a version document or 404 are checked through the version endpoint. A failed attempt says an authorized publisher may recover it with `package recover` and a reason. - Publishing: run reusable package-publish plugin validation with Node.js 24. The CLI refuses `package validate` under Bun, so the workflow builds the pinned CLI and runs `node packages/clawhub/bin/clawdhub.js package validate`. - CLI login: the device page no longer fills the approval code from the link. Type the code from the terminal. The page shows the token label and that approval creates a full API token. A scope other than `read write` is rejected. Authorize and Deny turn off when the code's expiry time passes, including when the page was already open before the code was typed, and the pending query does not read the clock. Expired, used, and mistyped codes say how to continue, and a finished approval no longer shows the code as already used. - CI: verify and cache a pinned Convex backend through the release-asset API before local-auth browser tests, with bounded download retries. - CLI: keep a saved API token on the registry that issued it. A `--site` well-known document cannot send that token to another origin, and it does not replace the saved login, including a legacy `auth.clawhub.ai` registry. Discovered registry URLs must be `http` or `https` and must not contain userinfo. `clawhub-admin` commands follow the same rule. - Skills: recognize a single top-level `env` name as a required variable so installation guidance and scanner metadata retain the declared credential. - CLI: on Bun, send the API token to curl on stdin instead of the command line. JSON, form, text, download, and binary upload requests use the same header stdin path. - API: return one publish-token rejection when a package is missing, hidden, or the GitHub identity does not match, without naming the trusted repository. The body tells the caller to ask a package manager to check the trusted-publisher configuration and the workflow OIDC claims. A GitHub signing-key outage answers a retryable `503` instead of a rejection. - CI: right-size Skill Card workers and credential canaries to two-vCPU runners, retaining four-vCPU skill evaluations and existing resource checks. - CLI: explain a missing npm when packing a package folder. On Windows, packing runs the installed npm directly, so a package folder cannot substitute its own `npm.cmd`. Other platforms keep the normal `npm` lookup. - Security: retire VirusTotal entirely. ClawHub no longer uploads skill or plugin artifacts to VirusTotal, polls or backfills its results, re-queues ClawScan from VirusTotal updates, delays ClawScan for it, or shows VirusTotal data in the UI, CLI, public API, scan reports, or audit exports. The `clawhub-admin skills repair-vt-pending` command and its API route are removed. - Publishing: remove the in-publish static scan, which ran out of memory on large plugin packages and duplicated the ClawScan pre-publication gate. Static results are no longer computed, sent to ClawScan, or displayed; Skill Cards now wait only for ClawScan. - Publishing: return `503` with `Retry-After` instead of `400`/`401` when Convex reports a transient platform failure (overload, internal/transient error, write admission or conflict) on publish, upload, token-mint, recovery and API-token auth paths; genuine validation errors keep their `4xx` and message. - API: send rate-limit headers only on a real `429`, never on admitted requests or while the rate limiter is switched off. - CLI: retry `503` and real `429` responses with bounded, jittered backoff that honors `Retry-After`, and show quota/reset hints only for a real `429`. - Publishing: pin the server Plugin Inspector to 0.4.3 so large plugin publishes (such as `@openclaw/matrix` and `@openclaw/whatsapp`) stay under the 512 MiB Node action limit; 0.4.4+ type-checks the whole OpenClaw declaration surface while preparing the publish target. Until a bounded Inspector release, retirement notices may name replacements the selected OpenClaw release does not export yet. - CLI: reuse canonical schema implementations during builds while retaining standalone npm artifacts and embedding their debug sources. - Catalog: keep skill and plugin browsing available when optional heading counts fail. - Search: propagate cancelled initial requests without logging expected navigation changes as search failures. - Publishing: bound stored-file metadata verification to 16 concurrent reads and drain started work before cleanup, preserving server-computed hashes and archive bytes. - Tooling: preserve the component example correction and canonical AGENTS.md when refreshing Convex AI guidance. - Docs: clarify that API retirement notices require replacement APIs available in the selected OpenClaw release and appear in the manager dashboard. - Tests: refresh development dependencies and anchor frozen-clock fixtures to Convex transaction timestamps and stored expiration boundaries. - Dependencies: patch Undici to 7.30.1 in the CLI, admin CLI, and development tools to address upstream transport advisories. - Dependencies: refresh production packages, including Convex 1.49 and Workpool 0.4.15. Convex now requires Node.js 22 or newer; do not downgrade Workpool after its new queue pointers are stored, and complete its upstream backfill before a future 0.5 upgrade. - CI: escape Unicode line separators in security dataset JSONL so line readers preserve complete records during snapshot validation. - CI: reuse Playwright browser downloads across unrelated dependency updates by keying caches to the installed Playwright version and runner architecture. - CI: use a single-commit checkout for static checks instead of fetching full history. - CI: cache the pinned OpenClaw contract package store while retaining frozen installs and full contract proof on every run. - Tooling: use the existing pinned Bun formatter for format commands while preserving Oxfmt configuration and exclusions. - Publishing: prepare staged ClawPacks in the Node runtime so large archives can reach package validation without exhausting the HTTP action memory limit. - Scanning: stop classifying Manifest V3 browser host permissions as installation sources while retaining checks for install URLs elsewhere in the manifest. - CI: speed up the Linux root typecheck with pinned tsrs while retaining native TypeScript for local checks and package builds. - CI: run native package typechecks in the packages job only, retaining full package checks in local `ci:types-build`. - CI: run command-script tests in Node instead of starting jsdom for each suite. - skills.sh: sync once a day at 03:00 Pacific and mirror the top 4,000 rows of the all-time and trending views, so the sync completes again after skills.sh expanded its default feed to ~93k rows; Trending keeps the last skills.sh run for up to 50 hours. - Workers: include bounded, redacted skill evaluation failure reasons in CI logs so operators can diagnose failed runs. - Tooling: accept Bun's environment-file loading diagnostic in local dependency audits while preserving tool-error and malware failures. - Plugins: show informational notices for OpenClaw APIs with scheduled retirement dates, with replacement details and a publisher dashboard nudge. - Dependencies: update Plugin Inspector to 0.4.0 in the app and CLI to retain structured API retirement guidance; the CLI now requires Node.js 22.13+ on the 22.x line or Node.js 24+. - CLI/Scans: load Plugin Inspector only for validation, select Node.js 24 for hosted Convex actions, and run bulk scans under Node.js; ordinary Bun CLI commands remain available, while local plugin validation explains its Node.js requirement. - Dependencies: patch vulnerable DOMPurify, Next.js preview tooling, shell-quote, and source-map-js versions. - Dependencies: refresh supported React, TanStack, Radix, email, CLI utility, lint, format, and test packages while retaining the current Node and compiler compatibility contracts. - Tests: update Vitest and its V8 coverage provider together to 5.0.3; retain registered auth callbacks across per-test mock cleanup. - Tests: update jsdom to 30.1.2 and allow its required Undici 8 transport while keeping the CLI on Undici 7. - Runtime: use Bun 1.3.14 across CI and deployment tooling to preserve labelled conditional blocks when compiling React server rendering. - Tests: revalidate cached npm metadata before installing updated Convex external dependencies, retaining cached package tarballs and bounded fetches. - Dependencies: refresh production packages and synchronize the Sharp pin; let each package resolve its supported Undici transport and use the unpatched upstream Workpool release. Retain the old Workpool typecheck patch only for the previous-version test fixture. - Use one shared autoreview installation from `openclaw/agent-skills`; repository entrypoints now receive upstream fixes without copied helpers or test suites. - CI: batch main CodeQL scans every six hours while preserving PR and manual scans; include local composite actions and attribute-only PR changes. - Tooling: generate schema build output during workspace install and Worktrunk setup instead of tracking compiled files; installs that skip scripts must build the schema package before use. ### Release Proof - npm: https://www.npmjs.com/package/clawhub/v/0.26.0 - tarball: https://registry.npmjs.org/clawhub/-/clawhub-0.26.0.tgz - integrity: sha512-KMfkxT79Eb6dauDtZDUXCazpMz7kBYZC3nB5Bnkj8yvoAAQlGuRy6G1y0aPAsQ5Y9uYP+xjXcGB/HfzSAsuYpg== - npm preflight: https://github.com/openclaw/clawhub/actions/runs/43353954827 - npm publish: https://github.com/openclaw/clawhub/actions/runs/43354207902
-
v0.25.1
GitHub ↗
原版更新说明
## 0.25.1 - 2026-11-03 ### Fixes - CLI: update Plugin Inspector to 0.4.5 so API retirement notices require replacement APIs available in the selected OpenClaw release. - Dependencies: patch Undici to 7.30.1 and update ArkType, ignore, and mime to their latest patch releases. ### Release Proof - npm: https://www.npmjs.com/package/clawhub/v/0.25.1 - tarball: https://registry.npmjs.org/clawhub/-/clawhub-0.25.1.tgz - integrity: sha512-OvImDyHSXPF5ypL3KpM18Ck7F2SKBD0z8ZWGzDl11kGE0dHoTJmX8935FuJwOvFCY8oGGIzT204RoWkWVGkAyQ== - npm preflight: https://github.com/openclaw/clawhub/actions/runs/41647745429 - npm publish: https://github.com/openclaw/clawhub/actions/runs/41648297345
-
v0.25.0
GitHub ↗
原版更新说明
## 0.25.0 - 2026-11-01 ### Compatibility - Experimental Claw packages are now Templates. Use `clawhub package explore --family template` and `clawhub package publish <artifact.tgz> --family template`; `--family claw` is rejected. Public scoped routes use `/<owner>/templates/<slug>` instead of `/<owner>/claws/<slug>`. - New packages use `openclaw.template` in `package.json`. `CLAW.md`, existing package/version identities and published artifact bytes remain unchanged. ### Fixes - CLI: show the publishing step, file position, HTTP status and safe request ID when an upload fails, while preserving retry timing and existing error messages. ### Release Proof - npm: https://www.npmjs.com/package/clawhub/v/0.25.0 - tarball: https://registry.npmjs.org/clawhub/-/clawhub-0.25.0.tgz - integrity: sha512-G+ofWmCHK0w/kl2MWaKurYlnucw1cUbWnH7ecRUo0uzKmmSmQI9YyyaphZV+jqt8m2pCDT4j9edHiuv3LxSa0A== - npm preflight: https://github.com/openclaw/clawhub/actions/runs/41279997287 - npm publish: https://github.com/openclaw/clawhub/actions/runs/41280523399
-
v0.24.1
GitHub ↗
原版更新说明
## 0.24.1 - 2026-10-28 ### Fixes - CLI/API: let authorized skill owners inspect the publication state of an exact held version, including failed checks and active retries, without exposing private uploads publicly. Avoid reporting a clean older release as the held version's result, and fail file reads until that version is available. ### Compatibility - The CLI includes Plugin Inspector 0.4.3 and requires Node.js 22.13+ on the 22.x line or Node.js 24+. ### Release Proof - npm: https://www.npmjs.com/package/clawhub/v/0.24.1 - tarball: https://registry.npmjs.org/clawhub/-/clawhub-0.24.1.tgz - integrity: sha512-je0nAOJvXBhA1WaIwLFL+9MKDNQBhu+23N074pvB3s8XCKAOV/QfjgWCr8Co2AGCGO8yE0KmllfUOqPs2CDTlQ== - npm preflight: https://github.com/openclaw/clawhub/actions/runs/40642033913 - npm publish: https://github.com/openclaw/clawhub/actions/runs/40642249975 - [Installed npm CLI and production verification](https://github.com/openclaw/clawhub/pull/4110#issuecomment-6462153133) The signed npm publish was accepted while npm processed the version. The workflow’s short post-publish metadata wait expired; the public registry artifact and installed CLI were verified afterward.
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 面向 ClawHub 工作人员,提供技能、用户、组织发布者、插件包、可信发布者、官方发布者以及受保护的员工邮箱的管理操作能力,功能明确,解决平台运营中的核心管理任务,属于高价值/高频刚需场景,直接提升管理效率。
亮点
- description 明确指出用于 ClawHub 工作人员通过仓库本地 ClawHub 管理工具执行的管理操作,并列举了具体的管理对象(技能、用户、组织发布者等),触发词精准完整,边界清晰,覆盖多种变体。
亮点
- 文档结构清晰,包含 Safety Rules、Command Map、Verification、Impact Notes 等章节,步骤划分明确,有出口条件,含端到端示例,frontmatter 完整,单文件未超过 500 行。
亮点
- 工具来源明确(bun run admin),参数正确,覆盖主要异常(如 Require a reason for destructive actions, Before any write, show the exact command and ask for confirmation),不可逆操作有确认机制(如 --yes, --apply, --confirm-user-request, --confirm-user-signoff)。
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。