convex-retention
预览截图
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "convex-retention":https://skillpi.com/zh/skills/deepskill-4f4c931426c232b957ad22f5420ebb43657ca1028ca4068a8b06b5517b640b54。安装前核对上游来源和版本:https://github.com/openclaw/clawhub。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于向 ClawHub 的 Convex 添加或修改表格与保留策略,包括 TTL 字段、清理定时任务、保留策略、认证/会话清理、指标去重清理或移除已弃用的表。
介绍来源: third_party · openclaw · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 添加或修改 ClawHub Convex 表格、 TTL 字段、 清理 crons、 保留政策、 认证/ 会话清理、 公制去dupe 清理 或 折旧表删除时使用
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: convex-retention
description: Use when adding or changing ClawHub Convex tables, TTL fields, cleanup crons, retention policy, auth/session cleanup, metric dedupe cleanup, or deprecated table removalConvex Retention
Overview
ClawHub retention is code-owned. Every current Convex table must be classified in
convex/lib/retentionPolicy.ts, and ephemeral tables need an indexed, bounded cleanup path unless
their lifecycle is handled by usage-time validation or a documented component.
Checklist
- Use
clawhub-convexand readconvex/_generated/ai/guidelines.mdfirst. - Add every new schema table to
RETENTION_POLICIES; theRecord<TableNames, RetentionPolicy>type is the enforcement gate. - For ephemeral tables, prefer an explicit expiration field plus index, then prune with
.withIndex()and.take(...). - For new generic TTL tables, prefer
expirationTimeto match Convex Auth. Keep existingexpiresAt,dayStart, andprocessedAtfields unless that table already needs a real migration. - Use
RETENTION_STANDARD_BATCH_SIZEfor ordinary retention jobs. Keep incident-tested special cases, such asskillStatEvents, on their documented caps. - Cron jobs should schedule bounded cleanup entrypoints only. Large one-off production migrations or
destructive backfills still start with
convex-migration-helper. - Do not bulk-clear active auth state. Expired
authSessionsandauthRefreshTokensare pruned byconvex/retention.ts.
Verification
- Add or update focused tests for policy classification and cleanup behavior.
- Run the focused Vitest slice for touched cleanup modules.
- Run
bunx convex codegenafter schema/API changes. - Run a real Convex runtime check such as
bunx convex dev --once --typecheck=disable.
版本历史
-
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 Convex 数据保留策略管理,解决数据库表生命周期、TTL、清理任务等明确技术痛点
- 提供了详细的操作清单和验证步骤,实用性强
亮点
- description 明确列出了适用场景,覆盖合理,边界清晰
待提升项
-
缺少 When to Use 显式章节 原报告严重程度:轻微
文档结构清晰,但未显式设置 When to Use 章节
改进建议:建议增加 When to Use 章节,明确说明何时使用此 Skill
-
缺少端到端完整示例 原报告严重程度:轻微
提供了操作清单和验证步骤,但缺少一个完整的端到端执行示例
改进建议:建议补充一个完整的端到端示例,展示从添加表到验证清理的完整流程
亮点
- 文档结构清晰,包含 Overview、Checklist、Verification 等章节
- frontmatter 完整,内容详实,步骤明确
亮点
- 提供了具体的操作清单和验证步骤,工具来源明确
- 覆盖了主要异常处理,不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。