nocobase-app-plugin-notification-in-app
하는 일
이 스킬은 NocoBase 3 앱의 인앱 알림 받은편지함을 설정합니다. 각 사용자는 자신의 알림만 보며, 받은편지함은 실시간으로 새로 고쳐집니다. 앱 안에 받은편지함을 만들고 싶은 개발자를 위한 스킬입니다.
사용하는 경우
- ✓사용자가 앱 안의 받은편지함에서 알림을 보기를 원할 때.
- ✓알림이 저장된 뒤 받은편지함이 실시간으로 새로 고쳐져야 할 때.
- ✓받은편지함 항목이 없거나 잘못된 사용자에게 보일 때 진단이 필요할 때.
스킬 링크
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification-in-app/skills/nocobase-app-plugin-notification-in-app/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“작업이 사용자에게 배정되면 실시간으로 새로 고쳐지는 인앱 알림 받은편지함을 제 NocoBase 앱에 추가해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 클라이언트와 서버 플러그인 항목을 등록하고, 받은편지함 컴포넌트를 앱이 소유한 페이지에 배치하며, 실시간 업데이트 토픽을 연결합니다. 저장된 알림이 여전히 원본 자료입니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Goal
Integrate and maintain the authenticated, user-isolated in-app inbox while keeping durable HTTP state authoritative and realtime events limited to invalidation.
Ownership and Placement
This Skill is published with @nocobase/app-plugin-notification-in-app. The plugin owns its Server runtime, persistence, APIs, realtime contract, and Client inbox components. The target application owns whether both Client and Server entries are registered.
Scope
- Register the Client and Server plugin entries and the core notification dependency.
- Render the exported inbox components in an application-owned page.
- Consume the public realtime topic and event types from the
/realtimepackage entry. - Verify or diagnose inbox HTTP access, mutations, user isolation, and reconnect refresh.
Non-Goals
- Do not replace durable notifications with transient browser toasts.
- Do not edit inbox tables directly or publish forged realtime events as notification state.
- Do not expect the plugin to contribute an inbox page; the application owns the route.
Input Contract
| Input | Required | Default | Validation | Clarification Question |
|---|---|---|---|---|
action |
yes | verify for existing code; register for a new target |
register/verify/diagnose |
"Should I register, verify, or diagnose the inbox?" |
application |
yes | infer from one unambiguous workspace application | application root with Server and Client configuration | "Which application should register the inbox plugin?" |
apiConfig |
no | the target application's injected ApiClient and RealtimeClient |
authenticated client with the intended baseURL/realtimeURL |
"Should this application use its default or a custom API host?" |
Rules:
- Resolve package versions and enabled plugins from the target application before changing source.
- Register the package's public
/clientand/serverentries; do not import implementation files. - If the target application is ambiguous, stop mutation and ask.
Mandatory Clarification Gate
- Max clarification rounds:
2. - Max questions per round:
3. - Read-only inspection and diagnosis may proceed when the application is unambiguous.
- Missing required input blocks mutation; report the missing contract instead of guessing.
Workflow
- Read Inbox Integration Contract for package requirements, public surfaces, and runtime semantics.
- Inspect the target application's Server plugin list, Client composition, authentication setup,
api.baseURL,api.realtimeURL, and installed package versions. - Register
@nocobase/app-plugin-notificationbefore@nocobase/app-plugin-notification-in-app/serverwhen the application needs thein-appChannel contribution. - Register
@nocobase/app-plugin-notification-in-app/clientin the Client composition root. The plugin contributes no pages: renderNotificationInAppInboxinsideNotificationInAppProviderin a page the application declares among its own routes. - In React components and custom Hooks, use
useApiClient()from@nocobase/app-clientfor inbox reads and mutations, anduseService(realtimeClientToken)for subscriptions. Outside React, resolve the corresponding tokens from the application's services or receive the clients explicitly. Do not reconstruct/apifrom the browser location or Portal base. - Keep HTTP state authoritative. On a validated
inbox.changedevent, realtime connection open, or window focus, trigger a bounded HTTP refetch. - Use the public
@nocobase/app-plugin-notification-in-app/realtimeentry for shared topic or event types; do not import Server internals. - Test allowed and denied users, mutations without a CSRF token, cross-site cookie writes rejected with
INVALID_CSRF_ORIGIN, pagination, custom API hosts, realtime invalidation, and reconnect recovery. - Run lint, typecheck, tests, and build for the plugin and affected application.
Reference Loading Map
| Reference
자주 묻는 질문
실시간 업데이트가 실제 알림인가요?
아니요. 실시간 이벤트는 힌트일 뿐이며, 저장된 받은편지함이 권위 있는 기록입니다.
플러그인이 받은편지함 페이지를 추가하나요?
아니요. 경로는 애플리케이션이 소유하며, 페이지를 배치하는 것도 애플리케이션입니다.
임시 토스트 팝업으로 받은편지함을 대체할 수 있나요?
아니요. 스킬은 지속되는 알림을 임시 브라우저 토스트로 대체하면 안 된다고 밝힙니다.
상세 정보
작성자의 원본 설명
Use when agents need to register, verify, or diagnose the NocoBase durable in-app inbox, its development-only Client page, or realtime refresh behavior.
repo: nocobase/nocobase
인기도
- GitHub 스타
- 25k
- 순위
- #10101
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
nocobase-app-development
25k에이전트가 완전한 NocoBase 3 업무 애플리케이션을 위해 페이지, 라우트, 데이터, 권한, 테스트를 만들도록 돕습니다.
shadcn
25k에이전트가 웹 프로젝트에서 공식 문서와 레지스트리를 사용해 shadcn/ui 컴포넌트를 찾고, 추가하고, 고치고, 스타일을 입히도록 돕습니다.
nocobase-app-plugin-development
25k에이전트가 기존 NocoBase 3 앱 안에서 서버, 클라이언트, 데이터베이스, 등록 부분을 포함한 플러그인을 만들고 관리하도록 돕습니다.
nocobase-app-upgrade
25k에이전트가 NocoBase 앱을 더 새로운 템플릿 릴리스로 업그레이드하고, 사용자의 작업을 지키면서 템플릿 변경을 가져오도록 돕습니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.