nocobase-app-plugin-demo-mode
Skill này làm gì
Skill này thiết lập và chạy một trang demo NocoBase 3 riêng với cơ sở dữ liệu riêng. Skill dành cho các nhóm muốn có một bản demo công khai dùng chung với dữ liệu hư cấu được tạo tự động.
Khi nào nên dùng
- ✓Khi bạn muốn có một trang demo công khai của ứng dụng NocoBase với dữ liệu hư cấu.
- ✓Khi trang demo cần đặt lại dữ liệu theo lịch.
- ✓Khi bạn cần đăng nhập nhanh cho khách và chặn ghi dữ liệu trong bản demo.
Liên kết skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-demo-mode/skills/nocobase-app-plugin-demo-mode/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể thiết lập một trang demo NocoBase công khai với dữ liệu khách hàng giả, được đặt lại mỗi đêm không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI đăng ký plugin Demo Mode và kết nối nó với dữ liệu của ứng dụng. Sau đó plugin tạo dữ liệu hư cấu, bảo vệ các thao tác ghi và đặt lại trang theo lịch của nó.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Demo Mode
Use @nocobase/app-plugin-demo-mode for a dedicated demo with its own database and storage. The plugin supplies data lifecycle, visitor accounts, write protection, management components and optional simulation. The application supplies its business records, cleanup and external adapters. Simulation adapters and demo chat are enabled by default once integrated, without AI switches on the management page; the application chooses which flows to connect.
Check that this Skill applies
Demo Mode refuses ordinary writes, resets data daily and deletes all business data on clear/reset. Apply it only when the user asks for a demo deployment with those properties, names this plugin or Demo Mode, or the application already depends on it. Otherwise use the matching workflow:
| Request | Use instead |
|---|---|
| Example or sample records, such as “add some demo customers” | The application development Skill's sample-data workflow |
| A trial, staging, test or customer environment where users keep their own data | The nocobase-deployment Skill; an ordinary deployment without it |
| A payment, mail or other provider's sandbox account or test credentials | That integration's configuration |
| An in-app “demo/presentation mode” feature, such as hiding fields while screen-sharing | Ordinary feature development |
When the request could mean either a Demo Mode deployment or one of these, ask which one the user wants before registering the plugin, enabling it or adding full-business cleanup. For a confirmed dedicated demo, reuse the user's established deployment, language and role choices, and clarify any unresolved deployment or cleanup scope: clear/reset removes all business data in the demo instance, including visitor additions.
Keep protection proportionate
A demo is a public showcase: anyone may enter any listed account, administrators included, and the fictional data is reset daily. Protect only what lies outside the demo: a dedicated database and storage, no real credentials or customer data, and no real external effects such as mail, payments, publishing or real models. Inside the demo, use the application's existing permissions as they are and the plugin's defaults. Do not add hardening such as ownership rechecks, rate limits, confirmation steps, management restrictions for dataset accounts or security-focused tests unless the user asks; prefer the simplest integration that shows the requested journeys.
Integration workflow
- Confirm the target and enable. Check the dedicated deployment, then complete enable the deployment and its verification. Check the required host capabilities below.
- Provide the dataset. Adapt the application's business services using data adaptation. For a new application with no business domain, use the executable non-AI example. Register one dataset on the original
demoDataTokenin an application provider'sboot(); registration does not generate records. - Adapt interactions. Keep normal business authorization. Enable collection write exceptions for visitor mutations. The guard covers request-scoped database writes; adapt external calls and background work where the application has them. Read simulation only for AI or Runner flows the demo uses.
- Provide entry and management. Mount
DemoModeSettingsfrom@nocobase/app-plugin-demo-mode/client/settingson an application-owned page inside the application's existing System management (settings) navigation group, protected bysettings:demoMode.data/read. Wrap its route declarations withdemoModeRoutes([...])from@nocobase/app-plugin-demo-mode/clientso both the menu and route are absent outside Demo Mode, including for root.defineDemoModeConfig()publishes the enabled flag automatically; existing applications must adopt the helper. Grant
Câu hỏi thường gặp
Tôi có nên dùng cái này cho trang khách hàng thật không?
Không. Nó xóa và đặt lại toàn bộ dữ liệu nghiệp vụ, nên chỉ dành cho trang demo.
Khách có thể lưu dữ liệu riêng không?
Không. Các thao tác ghi thông thường bị từ chối trên trang demo.
Có cần mô hình AI không?
Không. Mô phỏng là tùy chọn, và ứng dụng quyết định luồng nào được kết nối.
Chi tiết
Mô tả gốc của tác giả
Build, enable or operate a dedicated NocoBase 3 demo deployment with @nocobase/app-plugin-demo-mode: a public, shared demo site whose fictional data is generated, cleared and reset, with quick visitor sign-in, write protection and optional model or Agent simulation (公开演示站、只读演示、定时重置的演示环境、 Demo Mode). Also use when changing business collections, external integrations or background jobs in an application that already depends on this plugin, so its demo dataset, cleanup and adapters stay complete. Not for example records (use the application development Skill's sample-data workflow), ordinary tria
repo: nocobase/nocobase
Độ phổ biến
- Sao GitHub
- 25k
- Vị trí xếp hạng
- #10096
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
nocobase-app-development
25kGiúp agent của bạn xây dựng trang, tuyến, dữ liệu, quyền và kiểm thử cho một ứng dụng kinh doanh NocoBase 3 hoàn chỉnh.
shadcn
25kGiúp agent của bạn tìm, thêm, sửa và tạo kiểu cho các thành phần shadcn/ui trong dự án web, dùng tài liệu chính thức và registry của chúng.
nocobase-app-plugin-development
25kGiúp agent của bạn tạo và duy trì plugin NocoBase 3 trong một ứng dụng có sẵn, gồm phần server, client, cơ sở dữ liệu và đăng ký.
nocobase-app-upgrade
25kGiúp agent của bạn nâng cấp ứng dụng NocoBase lên bản mẫu mới hơn, mang các thay đổi của mẫu vào mà vẫn giữ công việc riêng của bạn.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.