Chuyển đến nội dung
Skillpedia
Lập trình chung25k · #10098

nocobase-app-plugin-foundation

Skill này làm gì

Skill này thêm trang quản trị App Foundation vào ứng dụng NocoBase 3. Trang hiển thị các năng lực lõi đang được dùng, cần thiết lập hoặc chưa được dùng. Skill dành cho quản trị viên muốn kiểm tra cấu hình của ứng dụng.

Khi nào nên dùng

  • ✓Khi bạn muốn một trang quản trị cho biết ứng dụng đang dùng những năng lực NocoBase nào.
  • ✓Khi có người hỏi vì sao một năng lực hiển thị là cần thiết lập hoặc chưa được dùng.
  • ✓Khi bạn cần chuyển hoặc gỡ trang App Foundation khỏi menu.

Liên kết skill

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

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-foundation/skills/nocobase-app-plugin-foundation/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể thêm trang App Foundation để tôi thấy ứng dụng đang dùng những năng lực NocoBase nào không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI đăng ký plugin và trang của nó. Plugin đọc kết quả quét đã lưu và chạy quét nền khi được yêu cầu, nên trang tải nhanh.

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.

App Foundation

Use this Skill when

  • The application should get the App Foundation page, or it should move or leave the menu.
  • Someone asks why a capability on that page is in use, needs setup, is not used yet or is undetermined, or where a number comes from.

Do not use it to grant the page to a role: it admits only unrestricted access by design.

Public surfaces

  • Server plugin: @nocobase/app-plugin-foundation/server (default export). Exports foundationServiceToken, whose snapshot(), scanStatus() and ensureScan({ refresh?, countRecords? }) read saved data and submit background scans. Compatibility overview() reads a saved overview or reports FOUNDATION_PENDING.
  • Server route: GET /api/foundation/overview returns durable scan state and an optional overview. Use POST /api/foundation/ensureScan, /refresh or /countRecords to submit work; GET mutation flags are rejected. Ordinary loads and refreshes do not count every business table. Requires a session or API key of an identity with unrestricted access; anyone else gets 403 with reason FOUNDATION_FORBIDDEN.
  • Collection list: GET /api/foundation/collections?offset=0&search=orders, the same unrestricted access boundary, at most 50 entries in { data, meta: { total } }. Search covers the full owned catalog, not just the displayed page.
  • Client plugin: @nocobase/app-plugin-foundation/client (default export). foundation() adds the page at /foundation with a menu entry; options path, navigation: false, routes: false and settingsGroup: true. The default template uses settingsGroup: true so a bare application already has a localized settings group containing only the protected Foundation page.
  • Page component: FoundationPage from @nocobase/app-plugin-foundation/client/pages, for an application that routes it itself (foundation({ routes: false })). Declare such a route with authz: 'unrestricted'.

Prerequisites

The authentication and authorization plugins are registered, as in the default template. The page reads the query cache the application's routes provide.

App workflow

  1. Add the dependency and register the server plugin in server/plugins.ts and the client plugin in client/plugins.ts.
  2. Restart the application and open /foundation as an administrator holding the root Permission Set.
  3. Build the application as usual; refresh the page to see new capabilities light up.

Reading a status

  • Collected read-only by the plugin; nothing reports to it, so there is nothing to register per capability.
  • In use means wired in: a persisted lifecycle, an enabled schedule, a connected mailbox, a configured notification channel, an API key that has been used. Zero uses still count as in use.
  • Needs setup names what is missing in its reason, such as noChannel or noDrive.
  • Information pending update means the evidence could not be read this time, never that it is unused. Use the top Refresh button to collect again; capability details have no separate retry button. If the initial page request fails with no overview or top Refresh available, use the page's Try again button. Expand the read details for sanitized source notes. Permission denial still hides cached information and offers no retry.
  • AI and agents are in use with an enabled model service or a registered Runner. Native OnlineAgent and model gateway calls do not require an agAgents record. Stored Agent definitions and historical usage alone do not prove current configuration. Keep unreadable execution paths as pending subparts so reliable active evidence and metrics can retain their original dates. A successfully read zero invalidates that path's earlier active evidence through subsequent failures. If neither execution path has current or retained active evidence and a required read failed, leave the status undetermined. Preserve another confirmed active path when optional statistics fail; never turn a failed read into zero or a missing-configuration claim.
  • Observed table scope uses server/catalog.ts. Known system Collections are excluded. Remaining tables are observed data without proven business ownership; unknown extensions never suppress their statistics or generate a read failure. Show identified/counting results and keep the ownership boundary in expandable recognition notes.

Verification

The application service keeps reliable active statuses, subpart statuses and complete metrics in the saved checkpoint. Retained values

Câu hỏi thường gặp

Ai có thể xem trang này?

Chỉ những người dùng có quyền truy cập không giới hạn. Không nên cấp trang này cho các vai trò khác.

Nó có quản lý quyền nghiệp vụ không?

Không. Đây là trang xem trạng thái và không quản lý quyền nghiệp vụ.

Mỗi lần tải trang có đếm tất cả bảng nghiệp vụ không?

Không. Lần tải và làm mới thông thường không đếm mọi bảng nghiệp vụ.

Chi tiết

Mô tả gốc của tác giả

Use when an application should show its administrators which NocoBase Core capabilities it uses (the App Foundation page), when registering or moving that page, or when asked why a capability shows as in use, needing setup, not used or undetermined there. Not for business permissions or for building other admin pages.

repo: nocobase/nocobase

Độ phổ biến

Sao GitHub
25k
Vị trí xếp hạng
#10098
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự