Token导航 LogoToken导航

Agent Skill · 研究检索

nocobase-plugin-development(nocobase 插件开发)

nocobase-plugin-development 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

nocobase-plugin-development 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 30,558。

总安装 2,863周安装 123GitHub Stars 24下载 1,004核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nocobase-plugin-development(nocobase 插件开发)
来源仓库:https://github.com/nocobase/skills
仓库路径:skills/nocobase-plugin-development
安装命令:
npx skills add https://github.com/nocobase/skills --skill nocobase-plugin-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nocobase/skills --skill nocobase-plugin-development

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

nocobase-plugin-development 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于需要根据关键词或任务场景从来源线索中筛选信息的场景。通过 npx skills add 命令从指定 GitHub 仓库安装并使用。

安装前需确认权限范围和维护状态,注意可能触发联网或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/nocobase-plugin-development

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/nocobase/skills --skill nocobase-plugin-develo…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

nocobase-plugin-development 怎么安装?

在终端执行 npx skills add https://github.com/nocobase/skills --skill nocobase-plugin-development。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

nocobase-plugin-development 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

nocobase-plugin-development 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

nocobase-plugin-development 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

nocobase-plugin-development 用的人多吗?

公开数据是累计安装 2,863 次,近一周安装 123 次,下载 1,004 次,GitHub 24 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

nocobase-plugin-development 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
nocobase-plugin-development

nocobase 插件开发 · 本页

2,86324接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Goal

Guide an AI agent through the complete process of developing a NocoBase plugin — from requirement analysis to working code — producing a plugin that follows NocoBase conventions and can be enabled immediately.

Scope

  • Analyze user requirements and map them to NocoBase extension points.
  • Scaffold a new plugin with yarn pm create.
  • Generate server-side code: collections, ACL, custom APIs, migrations, install hooks.
  • Generate client-side code: blocks, fields, actions, settings pages, routes.
  • Generate i18n locale files.
  • Enable and verify the plugin.
  • Troubleshoot common issues using FAQ checklist and source code (when available).

Non-Goals

  • Do not build NocoBase applications through the UI (that's nocobase-ui-builder).
  • Do not handle plugin publishing to external registries.
  • Do not modify NocoBase core code.
  • Do not migrate existing plugins from client v1 to v2 (that's nocobase-client-v2-plugin-migration).

Hard Constraints

These rules apply to ALL generated plugin code. Violating them is always wrong.

NEVER use this.app.use() or React Providers

this.app.use() is an internal API. Plugins must NEVER use it to wrap the app with React providers. This is not a suggestion — it is a hard rule with no exceptions.

Providers add unnecessary React rendering layers, hurt performance, and make plugins harder to maintain. When implementing global effects (watermarks, overlays, theming, tracking, global listeners, etc.), use these approaches instead:

  1. FlowEngine mechanisms (preferred) — registerModelLoaders, registerFlow, registerModels for UI capabilities.
  2. FlowEngine context — this.context holds global data (e.g., this.context.api, this.context.dataSourceManager, this.context.logger). Read from it directly instead of creating Providers to pass data around. Note: some properties like user, viewer, message, themeToken are only available after React renders — use them in flow handlers or components, not in load().
  3. API requests — if the plugin needs data, use this.app.apiClient.request() to fetch it directly. Axios interceptors are allowed but should not be the first choice — prefer direct requests or reading from context when possible.
  4. Pure DOM manipulation — operate on the DOM directly in load() for visual effects. No React component needed.
  5. EventBus — this.app.eventBus for reacting to app lifecycle events.

If you find yourself thinking "I need a Provider for this", stop and reconsider. There is always a better alternative.

Client code goes in client-v2 ONLY

All client-side plugin code must be written in src/client-v2/. The src/client/ directory is for the legacy v1 client — do NOT write or modify any files there. Import Plugin from @nocobase/client-v2, never from @nocobase/client.

Input Contract

InputRequiredDefaultValidationClarification Question
requirementyesnonenon-empty natural language description"What should this plugin do?"
nocobase_rootyescurrent working directorymust contain package.json with @nocobase/server"Where is your NocoBase project root directory?"
plugin_namenoderived from requirement@<scope>/plugin-<name> format"What should the plugin package name be?"

Rules:

  • If nocobase_root is not provided, check if the current working directory is a NocoBase project.
  • If plugin_name is not provided, derive a reasonable name from the requirement and confirm with the user.
  • If user says "you decide", use documented defaults.

Mandatory Clarification Gate

  • Max clarification rounds: 2
  • Max questions per round: 3
  • Mutation preconditions:

- nocobase_root is a valid NocoBase project with yarn available. - requirement is clear enough to determine which extension points are needed. - Functional plan has been confirmed by the user in plain language.

  • If preconditions are not met after two rounds, stop and report what's missing.

CRITICAL: You MUST always confirm the plan with the user before writing any code or running any scaffold command — even if the requirement seems perfectly clear. Users often have unstated assumptions, edge cases they haven't considered, or preferences about scope. The plan confirmation step (Step 2) is a hard gate, not a suggestion. Never skip it.

Workflow

Step 0: Environment Check

  1. Verify nocobase_root contains a valid NocoBase project (package.json with @nocobase/server).
  2. Verify yarn is available.
  3. Detect environment type:

- Source install: packages/core/ exists → AI can read source code for troubleshooting. - create-nocobase-app: no packages/core/ → rely on documentation and online references only.

Step 1: Requirement Analysis

Analyze the user's requirement and determine which extension points are needed:

  • Server-side: collections, custom REST APIs, ACL, cron jobs, migrations, event listeners
  • Client-side: blocks (BlockModel/TableBlockModel), fields (FieldModel), actions (ActionModel), settings pages, routes
  • Both: full-stack plugins with server data + client UI

Do NOT ask the user about technical details (e.g., "Do you need a BlockModel or TableBlockModel?"). Map requirements to extension points internally.

Step 2: Plan Confirmation (HARD GATE)

This step is mandatory and must not be skipped, regardless of how clear the requirement appears. Even seemingly straightforward requirements can have unstated edge cases, scope preferences, or assumptions the user hasn't mentioned. Always present the plan and wait for explicit confirmation before proceeding to Step 3.

Present a functional plan in plain language the user can understand. Proactively highlight decisions the user may not have considered (e.g., "Should the data persist after plugin disable?", "Do you need a settings page for configuration?"). Example:

"Here's my plan: 1. Create a settings page where you can configure the API key 2. Add a scheduled task that syncs data every 5 minutes 3. Create a data table to store the synced records 4. The table will be available as a block in the UI A few things to confirm: - Should the synced data be cleared when the plugin is disabled? - Do you need permission control for who can access the settings? Does this look right?"

Do NOT run yarn pm create or write any code until the user explicitly confirms.

Step 3: Scaffold Plugin

The exact command is:

yarn pm create <plugin_name>
# Example: yarn pm create @nocobase-sample/plugin-hello
# Creates:  packages/plugins/@nocobase-sample/plugin-hello/

This is the only correct command. Do NOT use create-plugin, generate, or any other variant. Do NOT look up alternatives — just run it.

Read references/getting-started.md for the expected project structure.

Step 4: Generate Code (MUST Read References First)

You MUST read the relevant reference files BEFORE writing any code. Do NOT skip this by searching source code, reading examples, or relying on prior knowledge. The references contain project-specific conventions that override general knowledge.

Read references/index.md to locate the relevant reference files, then read the ones needed for this plugin.

Mandatory Reference Rules

These are hard gates, not suggestions. Read the file BEFORE editing the corresponding code:

When you edit...You MUST first read
src/client-v2/plugin.tsxreferences/client/plugin.md
src/server/plugin.tsreferences/server/plugin.md
Any file in src/client-v2/models/references/client/block.md, references/client/field.md, or references/client/action.md (whichever applies)
Any file in src/server/collections/references/server/collection.md

Keyword-Triggered References

If your implementation involves any of these concepts, you MUST also read the corresponding reference:

Keywords in your codeMUST read
route, router, navigate, location, pathnamereferences/client/router.md and references/client/ctx.md
ctx.api, ctx.viewer, ctx.message, ctx.modelreferences/client/ctx.md
registerFlow, uiSchema, on: event handlersreferences/client/flow.md
resource, MultiRecordResource, SingleRecordResourcereferences/client/resource.md
tExpr, useT, this.treferences/client/i18n.md
acl.allow, permissionsreferences/server/acl.md
defineCollection, fields, relationsreferences/server/collection.md

Generation Order

Flexible — adapt to the plugin's needs:

  • Server-first when the plugin has data tables and APIs.
  • Client-first when the plugin is purely frontend.
  • Interleaved when both sides are tightly coupled.

Checkpoint before writing client code: Review the "Hard Constraints" section. Never use this.app.use() or Providers. Use FlowEngine, context, pure DOM, or EventBus instead.

Step 5: Internationalization

Default behavior (do NOT ask):

  • Always generate src/locale/zh-CN.json and src/locale/en-US.json.
  • Use the plugin's auto-generated locale.ts for tExpr and useT imports.

Only ask about additional languages if:

  • The user explicitly mentions other languages, OR
  • The user is communicating in a language other than Chinese or English.

Step 6: Enable and Verify

yarn pm enable <plugin_name>

After enabling, describe what the user should see in the UI and how to test the plugin.

Default Behaviors

These defaults apply unless the user explicitly requests otherwise. Do NOT ask about them.

DecisionDefaultWhen to ask
Client versionclient-v2 ONLY. All client code in src/client-v2/. Never use src/client/ or import from @nocobase/clientNever
Model registrationregisterModelLoaders (lazy loading)Never
Route registrationcomponentLoader (lazy loading)Never
Settings page registrationpluginSettingsManager.addMenuItem() + addPageTabItem() with componentLoaderNever
ACLacl.allow('*', '*', 'loggedIn')User mentions fine-grained permissions
Locale fileszh-CN.json + en-US.jsonUser mentions other languages
addCollection (client-side)Do NOT add — recommend UI "Data Source Management" insteadOnly as a demo; if needed, use eventBus pattern (NOT direct call in load())
install() seed dataDo NOT addUser mentions preset/demo data
tExpr importFrom plugin's locale.ts, NOT from @nocobase/flow-engine directlyNever
this.app.use() (Provider)Do NOT use — use FlowEngine mechanisms or pure DOM instead. See client/plugin.mdNever

Troubleshooting

When the plugin doesn't work as expected:

FAQ Checklist

  1. Plugin not appearing in plugin manager → Check package.json has correct NocoBase metadata. Run yarn pm enable <name>.
  2. Collection not showing in block picker → Recommend user to add the table via NocoBase UI "Data Source Management". If code-level registration is needed (demo only), use addCollection with filterTargetKey: 'id' and eventBus pattern. See client/plugin.md.
  3. Settings page shows blank → Verify using componentLoader (not Component) for client-v2.
  4. Model not appearing in menus → Check define({label: tExpr('...')}) and registerModelLoaders in plugin load().
  5. load() database query fails → load() runs before DB sync. Move DB operations to install() or request handlers.
  6. i18n not working → First-time locale files require app restart. Check tExpr is imported from locale.ts not @nocobase/flow-engine.
  7. registerFlow handler not firing → Check on event name. Use 'click' for buttons, 'beforeRender' for initialization.

Source Code Debugging (Source Install Only)

If the environment is a source install, the AI agent may read NocoBase core source code to debug issues:

packages/core/server/src/          — Server core
packages/core/client/src/          — Client core (v1, reference only)
packages/core/client-v2/src/       — Client core (v2, recommended)
packages/core/database/src/        — Database layer
packages/core/flow-engine/src/     — FlowEngine

Complete Example Plugins

When a full working example is needed:

Reference Loading Map

ReferenceUse WhenNotes
references/index.mdAlways, after Step 1Global index — read this to find relevant module references
references/getting-started.mdStep 3 (scaffolding)Plugin scaffold + project structure
references/server/*.mdPlugin needs server-side codeOne file per server module
references/client/*.mdPlugin needs client-side codeOne file per client module
references/build.mdUser asks about building/packagingBuild and distribution

Safety Gate

High-impact actions:

  • Running yarn pm create (creates files in user's project)
  • Running yarn pm enable (modifies database state)
  • Modifying existing plugin files (if plugin already exists)

Secondary confirmation template:

  • "I'm about to run {{command}} in {{directory}}. This will {{impact}}. Should I proceed?"

Rollback guidance:

  • If yarn pm create produced wrong scaffold → delete the generated directory and re-run.
  • If plugin code has bugs after enable → fix the code, the plugin can be disabled with yarn pm disable <name>.
  • Never run yarn nocobase install -f without explicit user confirmation — it resets the database.

Verification Checklist

  • NocoBase project root is valid and yarn is available.
  • Environment type (source vs create-nocobase-app) is detected.
  • User requirement is analyzed and extension points are identified.
  • Functional plan is confirmed by user before code generation.
  • Plugin scaffold is created successfully.
  • All generated files follow NocoBase conventions (client-v2, lazy loading, locale.ts).
  • No this.app.use() or React Provider patterns in generated code (Hard Constraint).
  • zh-CN.json and en-US.json are generated with all translatable strings.
  • Plugin can be enabled with yarn pm enable without errors.
  • Generated code matches the patterns in reference templates.
  • FAQ checklist is consulted when issues arise.

Minimal Test Scenarios

  1. User requests a simple settings page plugin → scaffold + server API + client settings page.
  2. User requests a custom block plugin → scaffold + BlockModel + registerFlow + i18n.
  3. User requests a full-stack CRUD plugin → scaffold + defineCollection + ACL + TableBlockModel + custom field + custom action.
  4. User provides vague requirement → clarification gate triggers, plan is confirmed before coding.
  5. Plugin enable fails → FAQ checklist is consulted, source code is read if available.

Output Contract

Final response must include:

  • What was requested (user's original requirement).
  • What was created (list of generated files).
  • How to enable and test (commands + expected UI behavior).
  • What assumptions/defaults were applied.
  • Known limitations or next steps (if any).

References

平台分布

Codex

35.28%
按下载量换算354

Claude

28.18%
按下载量换算283

Cursor

20.95%
按下载量换算210

Gemini CLI

8.59%
按下载量换算86

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills