project-overview_skill

This skill helps you explore a TypeScript monorepo by summarizing project structure, architecture, and key components for quick onboarding.
  • TypeScript

70.5k

GitHub Stars

1

Bundled Files

3 weeks ago

Catalog Refreshed

2 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstart where the catalogue uses aiagentskills.

npx veilstart add skill lobehub/lobe-chat --skill project-overview

  • SKILL.md5.4 KB

Overview

This skill provides a complete project architecture and structure guide for the LobeHub codebase. It helps you quickly understand repo layout, key packages, and where to find UI, server, and database code. Use it to orient new contributors, plan changes, or trace feature implementations across layers.

How this skill works

The skill inspects the monorepo layout and maps responsibilities to folders and packages. It highlights core technologies (Next.js, TypeScript, TRPC, Neon/Postgres, Drizzle) and shows data flow from React UI through zustand stores to TRPC lambdas and the database. It also points to location-specific artifacts like DB schemas, server routers, builtin tools, and cloud-only logic.

When to use it

  • Exploring the codebase for the first time or onboarding a new teammate
  • Locating where UI components, stores, or services live
  • Tracing a request from browser to database (data flow)
  • Planning architecture changes or adding a new feature
  • Determining which packages are cloud-only versus client-capable

Best practices

  • Follow the layer map: UI → store → client service → trpc → server services → DB
  • Keep client-only logic in src/app and packages that are not cloud-only
  • Place database schemas, models, and repositories in packages/database for shared access
  • Use packages/builtin-tool-* for tool implementations and src/tools for app-level wiring
  • Respect the monorepo namespace (@lobechat/) and reuse shared utils in packages/utils

Example use cases

  • Find where to add a new UI widget: check src/components, src/features, and src/layout providers
  • Add a new API endpoint: implement a TRPC router under src/server/routers and a server service in src/server/services
  • Inspect database models: open packages/database/src/models and schemas for table definitions
  • Build an agent runtime feature: modify packages/agent-runtime or packages/model-runtime providers
  • Enable analytics or auth integrations: extend src/libs (analytics, oidc) or better-auth in libs

FAQ

Frontend variants and routing live in src/app/[variants] for auth, main, mobile and src/app/(backend)/webapi for backend endpoints.

Which packages are cloud-only?

Cloud-only logic is grouped under src/business and packages/business; avoid importing these into pure client builds.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational