clawhub-convex

为 ClawHub 定制的 Convex 约定与路由器。用于将请求路由至托管的 Convex 技能,适用于 convex/ 目录中的更改、Convex 命令或部署目标、查询性能、迁移与保留策略、运行时验证,以及对 ClawHub 仓库中技能统计数据的读写操作。

仓库最近推送
GitHub Stars
9,560
Forks
1,493
Issues / PRs
60

预览截图

来自skillπ 实验室的展示

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "clawhub-convex":https://skillpi.com/zh/skills/deepskill-5a3909262ed329cd05bdd60ca0e351cb41cd3d7c1af7e03f598ce510b962d3df。安装前核对上游来源和版本:https://github.com/openclaw/clawhub。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

为 ClawHub 定制的 Convex 约定与路由器。用于将请求路由至托管的 Convex 技能,适用于 convex/ 目录中的更改、Convex 命令或部署目标、查询性能、迁移与保留策略、运行时验证,以及对 ClawHub 仓库中技能统计数据的读写操作。

0 下载

介绍来源: third_party · openclaw · 0.0.1 参考来源

SkillPi 解读

能完成的任务
应用 ClawHub 特定的 Convex 常规和途径 右侧管理的 Convex 技能。 Convex/, Convex 命令或部署目标、查询性能、迁移、保留、运行时间验证,或技能 stat 读写在 ClawHub 寄存器中的任何更改。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: clawhub-convex
description: Apply ClawHub-specific Convex conventions and route to the right managed Convex skill. Use for any change under convex/, Convex commands or deployment targeting, query performance, migrations, retention, runtime validation, or skill stat reads and writes in the ClawHub repository.

ClawHub Convex

Use the managed Convex guidance for general framework behavior and this skill for ClawHub's repository-specific boundaries.

Start Here

  1. Read convex/_generated/ai/guidelines.md before editing Convex code.
  2. Name the target runtime before running a Convex command: local, dev, or prod. Include the exact deployment when known and whether the current function/schema code has already been pushed there.
  3. Route to the most specific companion skill:
    • Query cost, indexes, read amplification, subscriptions, or OCC: convex-performance-audit
    • Production migration, backfill, schema narrowing, or table reshaping: convex-migration-helper and create-and-cleanup-migration
    • Tables, TTL fields, cleanup crons, retention, auth/session cleanup, metric dedupe cleanup, or deprecated table removal: convex-retention
    • Auth, reusable components, or setup: use the matching managed Convex skill.

Do not edit upstream-managed Convex skills to store ClawHub policy.

Commands And Runtime Validation

  • Push new or changed functions before convex run:
    • dev: bunx convex dev --once
    • prod: deploy through the workflow described by clawhub-production-release
  • For a non-interactive direct production deploy when explicitly required, use bunx convex deploy -y.
  • If bunx convex run --env-file .env.local ... returns 401 MissingAccessToken after login, omit --env-file and target the deployment with --deployment <name> or --prod.
  • Regenerate committed API/types with bunx convex codegen after Convex API/schema changes.
  • Import mutations from convex/functions.ts, not convex/_generated/server, so ClawHub's trigger wrapper runs. Type imports can still come from convex/_generated/server.
  • Do not disable typechecking for an ordinary direct deploy. The production workflow owns its explicit deploy behavior and exceptions.

Mocked ctx tests cover pure business logic only. When behavior depends on pagination, indexes, validators, auth identity, internal/public boundaries, schedulers, actions calling functions, HTTP actions, storage, or OCC, also run a real Convex path such as:

  • bunx convex dev --once
  • bunx convex run ...
  • an HTTP action smoke
  • bun run test:pw:local-auth

Tests that invoke a mutation through ._handler need a mock database with normalizeId: vi.fn() for trigger-wrapper compatibility.

ClawHub Migration Boundaries

  • Default production data changes to @convex-dev/migrations; the companion skills own batching, dry runs, resume/progress, confirmation, validation, and cleanup.
  • Put component-backed table-wide backfills in convex/migrations.ts.
  • Put custom repairs, admin-gated operations, and incident-specific workflows in convex/maintenance.ts.
  • Keep one-off operator migration runs out of .github/workflows/deploy.yml.
  • Remove temporary migration functions in a follow-up PR after production apply and verification unless they are intentionally retained as maintenance tooling.

Query And Bandwidth Work

Use convex-performance-audit for the detailed rules on indexes, bounded reads, denormalization, digest tables, subscriptions, and function limits. Before writing or reviewing a performance-sensitive query, check deployment health when available:

bunx convex insights --details
bunx convex logs --failure

Prefer measured runtime signals over speculative restructuring.

ClawHub Hot-Path Conventions

Use convex-performance-audit for the complete workflow. Preserve these ClawHub-specific implementations when touching their paths:

  • Public listing and browse pages use one-shot ConvexHttpClient.query() reads unless the user needs live updates.
  • When a skillSearchDigest row exists, resolve owner data with digestToOwnerInfo(digest). Do not re-read the owner document when the digest already contains the required owner fields.
  • Keep denormalized tables synchronized through the existing convex-helpers triggers and skip writes when derived fields did not change.
  • Paginate computed search results client-side after running the scoring pipeline once; do not rerun the full vector, lexical, and popularity pipeline for each page.
  • Add delayMs between backfill batches that update reactively subscribed tables.
  • Split mutations that would read more than the transaction budget through the existing action-query-mutation pattern.

Skill Stat Contract

The skills table still has a compatibility shape for four migrated stats:

Legacy nested field Top-level source of truth
stats.downloads statsDownloads
stats.stars statsStars
stats.installsCurrent statsInstallsCurrent
stats.installsAllTime statsInstallsAllTime
  • Read these fields with readCanonicalStat() from convex/lib/skillStats.ts. It prefers the top-level field and falls back for pre-migration documents.
  • Write deltas with applySkillStatDeltas(). It updates both shapes in one patch.
  • Any direct patch touching these values must update both shapes.
  • Nested-only reads remain valid for stats.comments and stats.versions.
  • When adding a migrated stat field, use the same dual-write shape and add a cursor-based backfill.

版本历史

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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 实验室的评测报告。

场景价值72/100

亮点

  • 针对 ClawHub 仓库中 Convex 框架的特定约定与路由,解决实际开发痛点
  • 覆盖部署、迁移、性能优化、统计读写等关键场景,实用性强
触发精准92/100

亮点

  • 触发词精准完整,覆盖多种变体,边界清晰,不易误触
结构规范95/100

亮点

  • 结构清晰,分节明确,有具体步骤和命令示例
  • frontmatter 完整,文档组织良好
执行可靠78/100

待提升项

  • 引用文件缺失 原报告严重程度:重大

    SKILL.md 引用了 `convex/_generated/ai/guidelines.md` 文件,但该文件未传入 ZIP 包

    改进建议:请确保所有被引用的文件都包含在 Skill 包中,或明确说明该文件为项目运行时生成文件

亮点

  • 工具来源明确,参数正确,覆盖常见异常场景
  • 对不可逆操作有确认机制指引,可靠性良好
证据可验 (前四项均值)84/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。