Code review checklist for LobeHub. Use when reviewing PRs, diffs, or code changes. Covers correctness, security, quality, and project-specific patterns.
/typescript and /testing skills for code style and test conventionsgit diff or git diff origin/canary..HEADconsole.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() outputvi.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 codeFor local CLI review only (GitHub review app posts inline PR comments instead):
[high] / [medium] / [low]