본문으로 건너뛰기
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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-demo-mode/skills/nocobase-app-plugin-demo-mode/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“매일 밤 초기화되는 가상 고객 데이터가 있는 NocoBase 공개 데모 사이트를 설정해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 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
자주 묻는 질문

실제 고객 사이트에 써야 하나요?

아니요. 모든 업무 데이터를 지우고 초기화하므로, 데모 사이트에만 사용해야 합니다.

방문자가 자기 데이터를 저장할 수 있나요?

아니요. 데모 사이트에서는 일반 쓰기가 거부됩니다.

AI 모델이 필요한가요?

아니요. 시뮬레이션은 선택 사항이며, 어떤 흐름을 연결할지는 애플리케이션이 정합니다.

상세 정보

작성자의 원본 설명

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
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬