Use when adding or changing ClawHub Convex tables, TTL fields, cleanup crons, retention policy, auth/session cleanup, metric dedupe cleanup, or deprecated table removal
80%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.agents/skills/convex-retention/SKILL.mdClawHub 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.
clawhub-convex and read convex/_generated/ai/guidelines.md first.RETENTION_POLICIES; the Record<TableNames, RetentionPolicy> type
is the enforcement gate..withIndex()
and .take(...).expirationTime to match Convex Auth. Keep existing expiresAt,
dayStart, and processedAt fields unless that table already needs a real migration.RETENTION_STANDARD_BATCH_SIZE for ordinary retention jobs. Keep incident-tested special cases,
such as skillStatEvents, on their documented caps.convex-migration-helper.authSessions and authRefreshTokens are pruned by
convex/retention.ts.bunx convex codegen after schema/API changes.bunx convex dev --once --typecheck=disable.openclaw/clawhub
d932829
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.