Skip to content

🀯 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.

πŸ“ docs: simplify and refresh skill docs (#14785)

YuTengjingffd66d546554
diff --git a/.agents/skills/add-provider-doc/SKILL.md b/.agents/skills/add-provider-doc/SKILL.md
index d5a9a14dad4..00e7d2c610a 100644
--- a/.agents/skills/add-provider-doc/SKILL.md
+++ b/.agents/skills/add-provider-doc/SKILL.md
@@ -1,6 +1,6 @@
---
name: add-provider-doc
-description: Guide for adding new AI provider documentation. Use when adding documentation for a new AI provider (like OpenAI, Anthropic, etc.), including usage docs, environment variables, Docker config, and image resources. Triggers on provider documentation tasks.
+description: Add documentation for a new AI provider β€” usage docs, env vars, Docker config, image resources.
disable-model-invocation: true
argument-hint: '[provider-name]'
---
diff --git a/.agents/skills/add-setting-env/SKILL.md b/.agents/skills/add-setting-env/SKILL.md
index 5b61b2db98b..ca3918b5c17 100644
--- a/.agents/skills/add-setting-env/SKILL.md
+++ b/.agents/skills/add-setting-env/SKILL.md
@@ -1,6 +1,6 @@
---
name: add-setting-env
-description: Guide for adding environment variables to configure user settings. Use when implementing server-side environment variables that control default values for user settings. Triggers on env var configuration or setting default value tasks.
+description: Add server-side environment variables that control default values for user settings.
disable-model-invocation: true
argument-hint: '[setting-name]'
---
diff --git a/.agents/skills/cli/SKILL.md b/.agents/skills/cli/SKILL.md
index 444b3911f37..c3b0d1652e6 100644
--- a/.agents/skills/cli/SKILL.md
+++ b/.agents/skills/cli/SKILL.md
@@ -1,6 +1,6 @@
---
name: cli
-description: LobeHub CLI (@lobehub/cli) development guide. Use when working on CLI commands, adding new subcommands, fixing CLI bugs, or understanding CLI architecture. Triggers on CLI development, command implementation, or `lh` command questions.
+description: LobeHub CLI (@lobehub/cli) development guide β€” commands, subcommands, architecture.
disable-model-invocation: true
---
diff --git a/.agents/skills/desktop/SKILL.md b/.agents/skills/desktop/SKILL.md
index bf89f52cd00..c69afcd989c 100644
--- a/.agents/skills/desktop/SKILL.md
+++ b/.agents/skills/desktop/SKILL.md
@@ -1,6 +1,6 @@
---
name: desktop
-description: Electron desktop development guide. Use when implementing desktop features, IPC handlers, controllers, preload scripts, window management, menu configuration, or Electron-specific functionality. Triggers on desktop app development, Electron IPC, or desktop local tools implementation.
+description: Electron desktop development guide β€” IPC handlers, controllers, preload scripts, window/menu management.
disable-model-invocation: true
---
diff --git a/.agents/skills/project-overview/SKILL.md b/.agents/skills/project-overview/SKILL.md
index 3ebc348f929..a9c52641b63 100644
--- a/.agents/skills/project-overview/SKILL.md
+++ b/.agents/skills/project-overview/SKILL.md
@@ -6,6 +6,10 @@ user-invocable: false
# LobeHub Project Overview
+> The directory listings below are a **curated map of key locations**, not an
+> exhaustive tree. `packages/`, `src/store/`, route groups etc. grow over time β€”
+> run `ls` against the real directory for the current set.
+
## Project Description
Open-source, modern-design AI Agent Workspace: **LobeHub** (previously LobeChat).
@@ -14,7 +18,7 @@ Open-source, modern-design AI Agent Workspace: **LobeHub** (previously LobeChat)
- Web desktop/mobile
- Desktop (Electron)
-- Mobile app (React Native) - coming soon
+- Mobile app (React Native) β€” **separate repo, already launched** (not in this monorepo)
**Logo emoji:** 🀯
@@ -39,147 +43,92 @@ Open-source, modern-design AI Agent Workspace: **LobeHub** (previously LobeChat)
| Database | Neon PostgreSQL + Drizzle ORM |
| Testing | Vitest |
-## Complete Project Structure
+> Exact versions live in the root `package.json` β€” check there, not here.
+
+## Monorepo Layout
+
+This is a monorepo extending the open-source `lobehub` submodule. Two repos:
-Monorepo using `@lobechat/` namespace for workspace packages.
+- **cloud repo root** β€” `src/` and `packages/business/` (`config`, `const`, `model-runtime`) hold cloud-only SaaS code that overrides/extends the submodule. See `AGENTS.md` for the override mechanism.
+- **`lobehub/` submodule** β€” the open-source product core.
+
+### `lobehub/` submodule β€” key directories
```
lobehub/
β”œβ”€β”€ apps/
-β”‚ └── desktop/ # Electron desktop app
-β”œβ”€β”€ docs/
-β”‚ β”œβ”€β”€ changelog/
-β”‚ β”œβ”€β”€ development/
-β”‚ β”œβ”€β”€ self-hosting/
-β”‚ └── usage/
-β”œβ”€β”€ locales/
-β”‚ β”œβ”€β”€ en-US/
-β”‚ └── zh-CN/
-β”œβ”€β”€ packages/
-β”‚ β”œβ”€β”€ agent-runtime/ # Agent runtime
-β”‚ β”œβ”€β”€ builtin-agents/
-β”‚ β”œβ”€β”€ builtin-tool-*/ # Builtin tool packages
-β”‚ β”œβ”€β”€ business/ # Cloud-only business logic
-β”‚ β”‚ β”œβ”€β”€ config/
-β”‚ β”‚ β”œβ”€β”€ const/
-β”‚ β”‚ └── model-runtime/
-β”‚ β”œβ”€β”€ config/
-β”‚ β”œβ”€β”€ const/
+β”‚ β”œβ”€β”€ cli/ # LobeHub CLI
+β”‚ β”œβ”€β”€ desktop/ # Electron desktop app
+β”‚ └── device-gateway/ # Device gateway service
+β”œβ”€β”€ docs/ # changelog, development, self-hosting, usage
+β”œβ”€β”€ locales/ # en-US, zh-CN, ...
+β”œβ”€β”€ packages/ # ~80 @lobechat/* workspace packages β€” `ls` for the full set. Key ones:
+β”‚ β”œβ”€β”€ agent-runtime/ # Agent runtime
+β”‚ β”œβ”€β”€ agent-signal/ # Agent Signal pipeline
+β”‚ β”œβ”€β”€ builtin-tool-*/ # Builtin tool packages
+β”‚ β”œβ”€β”€ builtin-tools/ # Builtin tool registries
β”‚ β”œβ”€β”€ context-engine/
-β”‚ β”œβ”€β”€ conversation-flow/
-β”‚ β”œβ”€β”€ database/
-β”‚ β”‚ └── src/
-β”‚ β”‚ β”œβ”€β”€ models/
-β”‚ β”‚ β”œβ”€β”€ schemas/
-β”‚ β”‚ └── repositories/
-β”‚ β”œβ”€β”€ desktop-bridge/
-β”‚ β”œβ”€β”€ edge-config/
-β”‚ β”œβ”€β”€ editor-runtime/
-β”‚ β”œβ”€β”€ electron-client-ipc/
-β”‚ β”œβ”€β”€ electron-server-ipc/
-β”‚ β”œβ”€β”€ fetch-sse/
-β”‚ β”œβ”€β”€ file-loaders/
-β”‚ β”œβ”€β”€ memory-user-memory/
-β”‚ β”œβ”€β”€ model-bank/
-β”‚ β”œβ”€β”€ model-runtime/
-β”‚ β”‚ └── src/
-β”‚ β”‚ β”œβ”€β”€ core/
-β”‚ β”‚ └── providers/
-β”‚ β”œβ”€β”€ observability-otel/
-β”‚ β”œβ”€β”€ prompts/
-β”‚ β”œβ”€β”€ python-interpreter/
-β”‚ β”œβ”€β”€ ssrf-safe-fetch/
-β”‚ β”œβ”€β”€ types/
-β”‚ β”œβ”€β”€ utils/
-β”‚ └── web-crawler/
-β”œβ”€β”€ src/
-β”‚ β”œβ”€β”€ app/
-β”‚ β”‚ β”œβ”€β”€ (backend)/
-β”‚ β”‚ β”‚ β”œβ”€β”€ api/
-β”‚ β”‚ β”‚ β”œβ”€β”€ f/
-β”‚ β”‚ β”‚ β”œβ”€β”€ market/
-β”‚ β”‚ β”‚ β”œβ”€β”€ middleware/
-β”‚ β”‚ β”‚ β”œβ”€β”€ oidc/
-β”‚ β”‚ β”‚ β”œβ”€β”€ trpc/
-β”‚ β”‚ β”‚ └── webapi/
-β”‚ β”‚ β”œβ”€β”€ spa/ # SPA HTML template service
-β”‚ β”‚ └── [variants]/
-β”‚ β”‚ └── (auth)/ # Auth pages (SSR required)
-β”‚ β”œβ”€β”€ routes/ # SPA page components (Vite)
-β”‚ β”‚ β”œβ”€β”€ (main)/
-β”‚ β”‚ β”œβ”€β”€ (mobile)/
-β”‚ β”‚ β”œβ”€β”€ (desktop)/
-β”‚ β”‚ β”œβ”€β”€ onboarding/
-β”‚ β”‚ └── share/
-β”‚ β”œβ”€β”€ spa/ # SPA entry points and router config
-β”‚ β”‚ β”œβ”€β”€ entry.web.tsx
-β”‚ β”‚ β”œβ”€β”€ entry.mobile.tsx
-β”‚ β”‚ β”œβ”€β”€ entry.desktop.tsx
-β”‚ β”‚ └── router/
-β”‚ β”œβ”€β”€ business/ # Cloud-only (client/server)
-β”‚ β”‚ β”œβ”€β”€ client/
-β”‚ β”‚ β”œβ”€β”€ locales/
-β”‚ β”‚ └── server/
-β”‚ β”œβ”€β”€ components/
-β”‚ β”œβ”€β”€ config/
-β”‚ β”œβ”€β”€ const/
-β”‚ β”œβ”€β”€ envs/
-β”‚ β”œβ”€β”€ features/
-β”‚ β”œβ”€β”€ helpers/
-β”‚ β”œβ”€β”€ hooks/
-β”‚ β”œβ”€β”€ layout/
-β”‚ β”‚ β”œβ”€β”€ AuthProvider/
-β”‚ β”‚ └── GlobalProvider/
-β”‚ β”œβ”€β”€ libs/
-β”‚ β”‚ β”œβ”€β”€ better-auth/
-β”‚ β”‚ β”œβ”€β”€ oidc-provider/
-β”‚ β”‚ └── trpc/
-β”‚ β”œβ”€β”€ locales/
-β”‚ β”‚ └── default/
-β”‚ β”œβ”€β”€ server/
-β”‚ β”‚ β”œβ”€β”€ featureFlags/
-β”‚ β”‚ β”œβ”€β”€ globalConfig/
-β”‚ β”‚ β”œβ”€β”€ modules/
-β”‚ β”‚ β”œβ”€β”€ routers/
-β”‚ β”‚ β”‚ β”œβ”€β”€ async/
-β”‚ β”‚ β”‚ β”œβ”€β”€ lambda/
-β”‚ β”‚ β”‚ β”œβ”€β”€ mobile/
-β”‚ β”‚ β”‚ └── tools/
-β”‚ β”‚ └── services/
-β”‚ β”œβ”€β”€ services/
-β”‚ β”œβ”€β”€ store/
-β”‚ β”‚ β”œβ”€β”€ agent/
-β”‚ β”‚ β”œβ”€β”€ chat/
-β”‚ β”‚ └── user/
-β”‚ β”œβ”€β”€ styles/
-β”‚ β”œβ”€β”€ tools/
+β”‚ β”œβ”€β”€ database/ # src/{models,schemas,repositories}
+β”‚ β”œβ”€β”€ model-bank/ # Model definitions & provider cards
+β”‚ β”œβ”€β”€ model-runtime/ # src/{core,providers}
β”‚ β”œβ”€β”€ types/
β”‚ └── utils/
-└── e2e/ # E2E tests (Cucumber + Playwright)
+└── src/
+ β”œβ”€β”€ app/
+ β”‚ β”œβ”€β”€ (backend)/ # api, f, market, middleware, oidc, trpc, webapi
+ β”‚ β”œβ”€β”€ spa/ # SPA HTML template service
+ β”‚ └── [variants]/(auth)/ # Auth pages (SSR required)
+ β”œβ”€β”€ routes/ # SPA page segments (thin β€” delegate to features/)
+ β”‚ └── (main)/ (mobile)/ (desktop)/ (popup)/ onboarding/ share/
+ β”œβ”€β”€ spa/ # SPA entries + router config
+ β”‚ β”œβ”€β”€ entry.{web,mobile,desktop,popup}.tsx
+ β”‚ └── router/
+ β”œβ”€β”€ business/ # Open-source stubs (~50) overridden by cloud src/business/
+ β”œβ”€β”€ features/ # Domain business components
+ β”œβ”€β”€ store/ # ~28 zustand stores β€” `ls` for the full set
+ β”œβ”€β”€ server/ # featureFlags, globalConfig, modules, routers, services
+ └── ... # components, hooks, layout, libs, locales, services, types, utils
```
+### cloud repo β€” key directories
+
+```
+(cloud root)
+β”œβ”€β”€ packages/business/ # Cloud overrides: config, const, model-runtime
+β”œβ”€β”€ src/
+β”‚ β”œβ”€β”€ business/ # Cloud impls of submodule stubs (client/server/locales)
+β”‚ β”œβ”€β”€ routes/ # Cloud-only route groups: (cloud)/, embed/
+β”‚ β”œβ”€β”€ store/ # Cloud-only stores (e.g. subscription/)
+β”‚ β”œβ”€β”€ server/ # Cloud routers & services (billing, budget, risk control...)
+β”‚ └── app/(backend)/cron/ # Vercel cron routes (schedules declared in root vercel.ts)
+└── vercel.ts # Cron schedule declarations
+```
+
+> File search rule: a path like `@/store/x` resolves cloud `src/store/x` first, then
+> `lobehub/packages/store/src/x`, then `lobehub/src/store/x`. Cloud override wins.
+
## Architecture Map
-| Layer | Location |
-| ---------------- | --------------------------------------------------- |
-| UI Components | `src/components`, `src/features` |
-| SPA Pages | `src/routes/` |
-| React Router | `src/spa/router/` |
-| Global Providers | `src/layout` |
-| Zustand Stores | `src/store` |
-| Client Services | `src/services/` |
-| REST API | `src/app/(backend)/webapi` |
-| tRPC Routers | `src/server/routers/{async\|lambda\|mobile\|tools}` |
-| Server Services | `src/server/services` (can access DB) |
-| Server Modules | `src/server/modules` (no DB access) |
-| Feature Flags | `src/server/featureFlags` |
-| Global Config | `src/server/globalConfig` |
-| DB Schema | `packages/database/src/schemas` |
-| DB Model | `packages/database/src/models` |
-| DB Repository | `packages/database/src/repositories` |
-| Third-party | `src/libs` (analytics, oidc, etc.) |
-| Builtin Tools | `src/tools`, `packages/builtin-tool-*` |
-| Cloud-only | `src/business/*`, `packages/business/*` |
+| Layer | Location |
+| ---------------- | ---------------------------------------------------- |
+| UI Components | `src/components`, `src/features` |
+| SPA Pages | `src/routes/` |
+| React Router | `src/spa/router/` |
+| Global Providers | `src/layout` |
+| Zustand Stores | `src/store` |
+| Client Services | `src/services/` |
+| REST API | `src/app/(backend)/webapi` |
+| tRPC Routers | `src/server/routers/{async\|lambda\|mobile\|tools}` |
+| Server Services | `src/server/services` (can access DB) |
+| Server Modules | `src/server/modules` (no DB access) |
+| Feature Flags | `src/server/featureFlags` |
+| Global Config | `src/server/globalConfig` |
+| DB Schema | `packages/database/src/schemas` |
+| DB Model | `packages/database/src/models` |
+| DB Repository | `packages/database/src/repositories` |
+| Third-party | `src/libs` (analytics, oidc, etc.) |
+| Builtin Tools | `src/tools`, `packages/builtin-tool-*` |
+| Cloud-only | `src/business/*`, `packages/business/*` (cloud repo) |
## Data Flow
diff --git a/.agents/skills/version-release/SKILL.md b/.agents/skills/version-release/SKILL.md
index 328fc85be68..b6f23f88b4d 100644
--- a/.agents/skills/version-release/SKILL.md
+++ b/.agents/skills/version-release/SKILL.md
@@ -1,6 +1,6 @@
---
name: version-release
-description: "Version release workflow. Use when the user mentions 'release', 'hotfix', 'version upgrade', 'weekly release', or 'ε‘η‰ˆ'/'发布'/'小班车'. This skill is for release process and GitHub Release notes (not docs/changelog page writing)."
+description: 'Version release workflow β€” release process and GitHub Release notes (not docs/changelog pages).'
disable-model-invocation: true
argument-hint: '[minor|patch] [version?]'
---