nocobase-app-plugin-development
Skill này làm gì
Skill này hướng dẫn AI của bạn xây dựng plugin NocoBase 3 để thêm tính năng vào ứng dụng. Skill dành cho lập trình viên mở rộng ứng dụng NocoBase bằng mã có thể tái sử dụng.
Khi nào nên dùng
- ✓Khi bạn muốn thêm một plugin mới vào thư mục packages của ứng dụng NocoBase 3.
- ✓Khi bạn cần một plugin có cả trang client và mã server.
- ✓Khi bạn cần đăng ký plugin để ứng dụng nạp nó.
Liên kết skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/app/app-skills/skills/nocobase-app-plugin-development/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể tạo một plugin NocoBase thêm nút xuất tùy chỉnh và endpoint server của nó không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI đọc hướng dẫn của ứng dụng và mã plugin có sẵn, rồi tạo hoặc cập nhật phần client, server và cơ sở dữ liệu. Nó đăng ký plugin để ứng dụng nhận ra nó.
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.
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 |
Câu hỏi thường gặp
Tôi có cần mã nguồn NocoBase không?
Không. Skill làm việc bên trong một ứng dụng đã cài.
Đây có phải cho plugin NocoBase 2 không?
Không. Nó dành cho plugin NocoBase 3.
Đây có dành cho các tính năng thuộc về chính ứng dụng không?
Không. Hãy dùng skill phát triển ứng dụng cho các tính năng là một phần của ứng dụng.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 25k
- Vị trí xếp hạng
- #10080
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
nocobase-app-development
25kGiúp agent của bạn xây dựng trang, tuyến, dữ liệu, quyền và kiểm thử cho một ứng dụng kinh doanh NocoBase 3 hoàn chỉnh.
shadcn
25kGiúp agent của bạn tìm, thêm, sửa và tạo kiểu cho các thành phần shadcn/ui trong dự án web, dùng tài liệu chính thức và registry của chúng.
nocobase-app-upgrade
25kGiúp agent của bạn nâng cấp ứng dụng NocoBase lên bản mẫu mới hơn, mang các thay đổi của mẫu vào mà vẫn giữ công việc riêng của bạn.
nocobase-deployment
25kGiúp agent của bạn lên kế hoạch, build, triển khai và kiểm tra một ứng dụng NocoBase 3 trên máy chủ Studio, Node.js hoặc Docker.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.