com um clique
review-checklist
LobeHub code review checklist. Use when reviewing a PR, diff, or branch for console leftovers, return await, secrets, i18n, desktop router drift, UI imports, migrations, or cloud impact.
Menu
LobeHub code review checklist. Use when reviewing a PR, diff, or branch for console leftovers, return await, secrets, i18n, desktop router drift, UI imports, migrations, or cloud impact.
LobeHub Drizzle ORM schema and query style. Use for pgTable schemas, indexes, joins, inferred types, db.select/db.query, schema fields, foreign keys, junction tables, or postgres query patterns.
Vitest testing guide. Use when writing or updating tests, fixing failing tests, improving coverage, debugging test issues, or setting up mocks.
Add server-side environment variables that control default values for user settings.
Agent runtime lifecycle hooks. Use for before/after tool or step hooks, tool mocks, human intervention, sub-agent calls, context compression, evals, tracing, callAgent, or lifecycle events.
Build or extend LobeHub Agent Signal pipelines. Use for signal sources, signal/action types, policies, middleware, workflow handoff, dedupe, scope behavior, or observability.
Agent tracing CLI for execution snapshots. Use for agent-tracing, traces, snapshots, LLM call inspection, context engine data, agent step analysis, or execution debugging.
| name | review-checklist |
| description | LobeHub code review checklist. Use when reviewing a PR, diff, or branch for console leftovers, return await, secrets, i18n, desktop router drift, UI imports, migrations, or cloud impact. |
| user-invocable | false |
console.log / console.debug — should use debug package or removereturn await in try/catch — see https://typescript-eslint.io/rules/return-await/ (not in our ESLint config yet, requires type info)console.* or debug() outputpackages/database/src/models/**, src/repositories/**) must ship a sibling __tests__/<name>.test.ts — incl. user-isolation tests; BM25 search guarded by describe.skipIf(!isServerDB) (see /testing → db-model-test.md)vi.spyOn over vi.mock (see /testing skill)src/locales/default/{namespace}.ts with {feature}.{context}.{action|status} naminglocales/ translations for all languages updated (pnpm i18n)desktopRouter pair: If the diff touches src/spa/router/desktopRouter.config.tsx, does it also update src/spa/router/desktopRouter.config.desktop.tsx with the same route paths and nesting? Single-file edits often cause drift and blank screens.packages/utils or shared modules?antd imports replaceable with @lobehub/ui wrapped components (Input, Button, Modal, Avatar, etc.)antd-style token system, not hardcoded colors; prefer createStaticStyles + cssVar.* over createStyles + token unless runtime computation is requiredIF NOT EXISTS, IF EXISTS guards)A downstream cloud deployment depends on this repo. Flag changes that may require cloud-side updates:
src/app/(backend)/webapi/chat/route.ts or changing its exportssrc/app/[variants]/(auth)/next or drizzle-orm in package.json@lobechat/business-* exports changed — e.g., renaming a function in src/business/ or changing type signatures in packages/business/src/business/ and packages/business/ must not expose cloud commercial logic in comments or code