跳到正文
Skillpedia
API 与服务器(后端)25k · #10080

nocobase-app-plugin-development

它能做什么

这个技能指导你的 AI 构建为 NocoBase 3 应用添加功能的插件。适合用可复用代码扩展 NocoBase 应用的开发者。

适用场景

  • ✓当你想在 NocoBase 3 应用的 packages 文件夹下添加一个新插件时。
  • ✓当你需要一个同时包含客户端页面和服务端代码的插件时。
  • ✓当你需要注册插件,以便应用加载它时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/nocobase/nocobase/blob/v3-develop/packages/app/app-skills/skills/nocobase-app-plugin-development/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“能创建一个 NocoBase 插件,添加一个自定义导出按钮及其服务端接口吗?”

每周 5 个新技能,1 分钟读完。

工作原理

AI 读取应用的指南和插件的现有代码,然后创建或更新客户端、服务端和数据库部分。它会注册插件,使应用能够识别它。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

NocoBase Plugin Development

Use this Skill to develop a plugin in the user’s existing NocoBase 3 App. Read that App’s AGENTS.md, relevant installed Skills, and the plugin before editing. An App created by create-app identifies itself with nocobase.templateKind: "app" in package.json; its local plugins belong in packages/. Start from an installed App with working dependencies. If no App exists, use the available nocobase-create-app Skill first, then return here. Do not download the NocoBase source repository as a prerequisite.

This Skill ships with the App's installed @nocobase/app-skills; update it through a compatible App upgrade and pnpm nocobase skills sync, not by editing the generated copy or installing a global copy. Read it by its project path when an older global entry has the same name. The upgrade Skill describes retiring that global installation after a project replacement is verified.

For work explicitly in the NocoBase source repository, the repository links this same maintained Skill locally. Read .agents/rules/plugin-development.md from that repository root for source-only creation, registration and validation commands. An App does not need those repository files. Source paths in references are optional lookup locations; use installed exports, declarations and synchronized Skills to verify APIs for the App's version. Do not apply the legacy Plugin class, src/client-v2/ or nb scaffold plugin protocol. If the creation tool or App CLI lacks App-workspace support, report the incompatible packages instead of hand-building a scaffold or downloading the source repository.

Choose the relevant references

These English references adapt the plugin development guide into task-specific instructions. Read the rows relevant to the task; do not load the entire reference set by default.

Task Read
Create a plugin, choose capabilities, change declarations, exports, dependencies, or public contracts Scaffolding and package contracts
Register, configure, upgrade, disable, unregister, or diagnose plugin integration Registration and lifecycle
Choose Client components, ServiceProviders, React Providers, configuration, or API access Client architecture
Define Server configuration defaults, environment mappings, validation, or browser-visible fields Plugin configuration
Build or change any plugin UI Shared UI design and host acceptance, then shadcn components and styling
Add business pages, menus, Tabs, route dialogs/drawers, child routes, or page overrides Client routing
Design configuration entities, settings permissions, routed editors and safe saves System settings
Define service contracts, Tokens, dependency injection, or lifecycle Services and Providers
Add HTTP endpoints, authorization, Repository operations, background jobs, or queues Server development
Name an /api path, choose its method, shape its response or error, or validate its input HTTP API rules
Add migrations, seeds, or package resource/checksum handling Database resources
Add or change text, locale resources, translated errors, or recipient-language messages Internationalization
Author, publish, install, upgrade, or remove App-owned editable Client source
常见问题

我需要 NocoBase 的源代码吗?

不需要。该技能在已安装的应用中工作。

它适用于 NocoBase 2 插件吗?

不适用。它是为 NocoBase 3 插件设计的。

它适用于属于应用本身的功能吗?

不适用。应用本身的功能请使用应用开发技能。

详情

作者的原始描述

Create and maintain NocoBase 3 plugins inside an existing App or a NocoBase 3 source workspace, including Client, Server, CLI, database resources, UI Library integration, Plugin Skills, and registration. Use for App-local plugins under packages/ and source-workspace plugins or examples. Not for creating an App, application-only feature work, or legacy NocoBase 2 plugins.

repo: nocobase/nocobase

热度

GitHub 星标
25k
排名
#10080
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能