π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
id_prefix: style verify: true skip_when: docs/lockfile-only diff
Code Style
Fragment-level readability and convention adherence. Look at each changed hunk in isolation β cross-file reuse and abstraction questions belong to reuse-architecture.
Quick checklist
- Leftover
console.log/console.debugβ use thedebugpackage or remove - Missing
return awaitinside try/catch (the rejection escapes the catch) β https://typescript-eslint.io/rules/return-await/ - Hardcoded user-facing strings β must go through i18n keys (
packages/locales/src/default/<namespace>.ts, named{feature}.{context}.{action|status}) antd/antd-styleimports β both are gone; use the@lobehub/uicomponent and itscreateStaticStyles/cssVar/cx- Hardcoded colors / raw CSS values β use
cssVar.*tokens withcreateStaticStylesfrom@lobehub/ui - Dead code, commented-out blocks, unused exports introduced by this diff
- Comments: missing on hacky/non-obvious logic; stale after a signature change; or merely restating the code
- Nesting β₯ 3 levels that early returns / lookup tables would flatten
- Redundant or derivable state: a variable/state field that mirrors a prop or is computable from existing state β derive it (selector,
useMemo, plain expression) instead of storing a second copy that can drift - Type looseness:
any, runtime narrowing that the type signature hides, implicit contracts - File ballooning past ~1200 lines without splitting
Rule sources (deep mode: read before reviewing)
.agents/skills/typescript/SKILL.mdβ TS style and type-safety rules.agents/skills/react/SKILL.mdβ component conventions, base-ui/@lobehub/ui/antd priority, styling.agents/skills/i18n/SKILL.mdβ locale key conventions, what needs a key- Repo root
AGENTS.md/CLAUDE.mdβ repo-wide conventions
How to check
- Read the diff hunk by hunk; style issues must be visible within the fragment (plus its file).
- For UI imports:
rg "from 'antd'" <changed files>and check whether@lobehub/uior@lobehub/ui/base-uiexports the same component. - For strings: scan added JSX/text literals; anything a user can see needs an i18n key.
- For comments: diff the signature/behavior changes against surrounding JSDoc β flag stale docs.
Violations
- Anything in the Quick checklist, when introduced or made worse by this diff.
- Naming that misleads (name says X, code does Y) β this is a violation even when the codebase has other weak names, because it is newly introduced.
Not violations
- Formatting that Prettier/ESLint already enforces β CI owns it, do not report.
- Naming that is merely bland but accurate.
- Pre-existing style debt in untouched lines (calibration principle: this diff didn't make it worse).
- Comment density matching the file's existing norm β do not demand JSDoc on every function in a file that comments sparsely.