nocobase-app-plugin-foundation
它能做什么
这项技能为 NocoBase 3 应用添加 App Foundation 管理页面。该页面显示哪些核心功能正在使用、需要设置,或未被使用。适合想检查应用设置的管理员。
适用场景
- ✓当你想要一个管理页面,显示应用正在使用哪些 NocoBase 功能时。
- ✓当有人询问为什么某项功能显示为需要设置或未使用时。
- ✓当你需要将 App Foundation 页面移动或从菜单中移除时。
技能链接
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-foundation/skills/nocobase-app-plugin-foundation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我添加 App Foundation 页面,让我能看到应用正在使用哪些 NocoBase 功能。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会注册该插件及其页面。插件会读取已保存的扫描结果,并在需要时运行后台扫描,因此页面加载很快。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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). ExportsfoundationServiceToken, whosesnapshot(),scanStatus()andensureScan({ refresh?, countRecords? })read saved data and submit background scans. Compatibilityoverview()reads a saved overview or reportsFOUNDATION_PENDING. - Server route:
GET /api/foundation/overviewreturns durable scan state and an optionaloverview. UsePOST /api/foundation/ensureScan,/refreshor/countRecordsto 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 gets403with reasonFOUNDATION_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/foundationwith a menu entry; optionspath,navigation: false,routes: falseandsettingsGroup: true. The default template usessettingsGroup: trueso a bare application already has a localized settings group containing only the protected Foundation page. - Page component:
FoundationPagefrom@nocobase/app-plugin-foundation/client/pages, for an application that routes it itself (foundation({ routes: false })). Declare such a route withauthz: '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
- Add the dependency and register the server plugin in
server/plugins.tsand the client plugin inclient/plugins.ts. - Restart the application and open
/foundationas an administrator holding the root Permission Set. - 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
noChannelornoDrive. - 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
agAgentsrecord. 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
常见问题
谁可以看到这个页面?
只有拥有无限制访问权限的用户可以看到。它不应授予其他角色。
它会管理业务权限吗?
不会。它只是状态视图,不管理业务权限。
每次加载页面都会统计全部业务数据表吗?
不会。普通加载和刷新不会统计每一张业务表。
详情
作者的原始描述
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
热度
- GitHub 星标
- 25k
- 排名
- #10098
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
nocobase-app-development
25k帮你的智能体为完整的 NocoBase 3 业务应用构建页面、路由、数据、权限和测试。
shadcn
25k帮你的智能体在 Web 项目中查找、添加、修复和美化 shadcn/ui 组件,并使用其官方文档和注册表。
nocobase-app-plugin-development
25k帮你的智能体在现有应用中创建和维护 NocoBase 3 插件,包括服务端、客户端、数据库和注册部分。
nocobase-app-upgrade
25k帮你的智能体把 NocoBase 应用升级到较新的模板版本,引入模板的更改,同时保留你自己的工作。