π€― 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
π 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.mdindex 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: trueargument-hint: '[provider-name]'---diff --git a/.agents/skills/add-setting-env/SKILL.md b/.agents/skills/add-setting-env/SKILL.mdindex 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: trueargument-hint: '[setting-name]'---diff --git a/.agents/skills/cli/SKILL.md b/.agents/skills/cli/SKILL.mdindex 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.mdindex 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.mdindex 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 DescriptionOpen-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 Flowdiff --git a/.agents/skills/version-release/SKILL.md b/.agents/skills/version-release/SKILL.mdindex 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: trueargument-hint: '[minor|patch] [version?]'---