Перейти к содержанию
Skillpedia
Деплой и облако (DevOps)25k · #10096

nocobase-app-plugin-demo-mode

Что он делает

Этот скилл настраивает и запускает отдельный демо-сайт NocoBase 3 с собственной базой данных. Он нужен командам, которым нужна общая публичная демонстрация со сгенерированными вымышленными данными.

Когда использовать

  • ✓Когда вам нужен публичный демо-сайт приложения NocoBase с вымышленными данными.
  • ✓Когда демо-сайту нужно сбрасывать данные по расписанию.
  • ✓Когда нужен быстрый вход для посетителей и защита демо от записи.

Ссылка на скилл

https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-demo-mode/skills/nocobase-app-plugin-demo-mode/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-demo-mode/skills/nocobase-app-plugin-demo-mode/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Настройте публичный демо-сайт NocoBase с фиктивными данными клиентов, который сбрасывается каждую ночь.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

ИИ регистрирует плагин Demo Mode и подключает его к данным приложения. Затем плагин генерирует вымышленные данные, защищает записи и сбрасывает сайт по расписанию.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с GitHub.

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

  1. Confirm the target and enable. Check the dedicated deployment, then complete enable the deployment and its verification. Check the required host capabilities below.
  2. 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 demoDataToken in an application provider's boot(); registration does not generate records.
  3. 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.
  4. Provide entry and management. Mount DemoModeSettings from @nocobase/app-plugin-demo-mode/client/settings on an application-owned page inside the application's existing System management (settings) navigation group, protected by settings:demoMode.data/read. Wrap its route declarations with demoModeRoutes([...]) from @nocobase/app-plugin-demo-mode/client so 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
Частые вопросы

Стоит ли использовать это для реального сайта клиента?

Нет. Режим очищает и сбрасывает все бизнес-данные, поэтому он только для демо-сайтов.

Могут ли посетители сохранять свои данные?

Нет. На демо-сайте обычные записи отклоняются.

Нужна ли модель ИИ?

Нет. Симуляция необязательна, а приложение выбирает, какие процессы подключить.

Подробности

Оригинальное описание автора

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

Популярность

Звёзды на GitHub
25k
Место в рейтинге
#10096
Лицензия
—
Обновлён
02.11.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы