frontend-apps
Operate on BiSheng's two React frontends: Platform Vite/Zustand/react-query v3/bs-ui and Client Vite/Recoil/TanStack Query v4/shadcn.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- frontend-apps
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate on BiSheng's two React frontends: Platform Vite/Zustand/react-query v3/bs-ui and Client Vite/Recoil/TanStack Query v4/shadcn.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档references/troubleshooting.md8.5 KB
- 参考文档references/workflows.md10.1 KB
03 SKILL.md 正文
frontend-apps
Use this sub-skill when a task touches either BiSheng React frontend: the Platform admin/builder app under src/frontend/platform/ or the Client workspace/chat app under src/frontend/client/.
Start Here
Run bundled helper commands from this sub-skill directory, or adjust the script path to this directory after import.
- Decide which app owns the requested change. The two frontends are separate SPAs and must not be mixed.
- Inspect the installed stack and available package scripts:
python scripts/check_frontend_packages.py --repo-root <bisheng-checkout> - Read references/workflows.md for app-specific routes, request wrappers, stores, i18n, theme, test commands, and review checklists.
- If setup, proxying, i18n, routing, API, or state behavior is failing, read references/troubleshooting.md.
Owned Responsibilities
- Platform app:
src/frontend/platform/, Vite 5, React 18, TypeScript, Zustand + React Context,react-queryv3, Radix-basedbs-ui,@/alias. - Client app:
src/frontend/client/, Vite 6, React 18, TypeScript, Recoil,@tanstack/react-queryv4, shadcn/Radix UI,/workspacebase path,~/or@/alias. - Routes and route guards in each app's
src/routes/index.tsx. - Wrapped HTTP layers: Platform
src/controllers/request.tsplussrc/controllers/API/; Clientsrc/api/request.tsplussrc/api/and query hooks. - Frontend state boundaries: Platform stores/contexts; Client Recoil atoms/selectors.
- Frontend i18n files, brand runtime/theme tokens, UI components, icons, unit tests, and Vite dev/build behavior.
Route Sibling Areas Instead of Duplicating Them
- Use
backend-corefor FastAPI routers, response envelopes, error-code definitions, backend schemas, and backend tests. - Use
identity-permissions-tenancyfor OpenFGA/ReBAC semantics, tenant hierarchy, menu permission source data, SSO/org sync, and quota rules. - Use
workflow-enginefor backend workflow execution, node semantics, LangGraph/Celery behavior, and workflow persistence. - Use
knowledge-ragfor knowledge ingestion, file parsing, Milvus/Elasticsearch recall, and knowledge worker behavior. - Use
linsight-mcpfor Linsight worker/runtime, MCP integrations, task-mode backend events, and deepagents concerns. - Use
deployment-maintenancefor Docker Compose, Nginx, production rollout, middleware, and environment operations.
Non-Negotiables
- Never mix Platform and Client stacks, aliases, state libraries, query libraries, or UI component systems.
- TypeScript only for edited frontend files (
.ts/.tsx); functional components only; named component exports. - Never import
axiosdirectly from business code. Use the app's wrapped request module; stores must not call HTTP directly. - Do not introduce new UI, routing, query, or state-management libraries.
- Let response interceptors handle 403/401 flows. Do not add local 403 branches in business components.
- Keep comments in English and split any file that grows beyond 600 lines.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.