nocobase-create-app
Skill này làm gì
Skill này tạo một dự án NocoBase 3 mới ở máy cục bộ bằng công cụ tạo chính thức, cấu hình và khởi chạy nó. Skill dành cho người muốn bắt đầu phát triển một ứng dụng NocoBase.
Khi nào nên dùng
- ✓Khi bạn muốn tạo một dự án NocoBase 3 mới để phát triển.
- ✓Khi bạn yêu cầu cài đặt hoặc thiết lập NocoBase trên một máy chưa có ứng dụng.
- ✓Khi bạn cần cấu hình và khởi chạy một dự án NocoBase mới để phát triển cục bộ.
Liên kết skill
https://github.com/nocobase/nocobase/blob/v3-develop/skills/nocobase-create-app/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 dự án NocoBase 3 mới trên máy tính của tôi và khởi chạy để tôi thử không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI chạy công cụ tạo, đặt cấu hình bằng các lệnh config, kiểm tra và khởi chạy dự án. Sau đó nó chuyển giao cho các tệp hướng dẫn riêng của ứng dụng.
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.
Create a NocoBase 3 application
This Skill gets a new project created, configured and running locally: source code to develop, not a built application to deploy. It does not describe how to develop one: the moment the application exists, its own AGENTS.md and .agents/skills/ take over. Those match the version that was installed and this Skill does not, so prefer them wherever the two differ.
Before you start
If the working directory already holds a NocoBase application — a
package.jsonwith anocobasefield, next to anAGENTS.md— do not use this Skill. Read thatAGENTS.mdand continue from it.NocoBase 3 is created with
pnpm create @nocobase/app@beta. Never fall back to NocoBase 2 instructions or thenbCLI, including when a package cannot be found; see Troubleshooting instead.Check the request is this Skill's. A project is source code someone changes, developed locally; an installation is a built NocoBase that only runs, usually in production, and belongs to
nocobase-app-installer:The user asks to Skill Install, create, set up or try NocoBase, to develop with This one Deploy an application to production or a server nocobase-app-installer,--archiveHand a request to deploy over to
nocobase-app-installer, and stop here.On Windows, work in WSL. The commands below assume a POSIX shell such as Bash; the subshell and the inline environment variable do not work in PowerShell or cmd.
Check
node --version(24 or later) andpnpm --version(11). If either is missing or does not match, stop before creating anything and tell the user:- which tool is missing or which version was found, and which version is required;
- the command to install it on their operating system, preferring a version manager they already use, such as
nvm install 24orfnm install 24, and for pnpmcorepack enable && corepack prepare pnpm@11 --activateornpm install -g pnpm@11; - to open a new shell afterwards, so the new version is on
PATH.
Do not install either yourself unless the user asks. Check both versions again before continuing.
Create the application in the directory the user names, or in the current directory when it is empty. The directory must be new or empty, and its name becomes the application name: it starts with a lowercase letter or digit and contains only lowercase letters, digits, dots, dashes and underscores. If the directory is not empty or its name is invalid, ask the user for another one. Never overwrite files, and never create a nested project and move its files afterwards.
Create
pnpm create @nocobase/app@beta does not accept . as the name. Run it from the parent directory with the target directory's name, which generates the files directly into it:
(cd <parent-directory> && PNPM_CONFIG_MINIMUM_RELEASE_AGE=0 npm_config_registry="${NOCOBASE_REGISTRY:-https://registry.npmjs.org}" pnpm create @nocobase/app@beta <name> --template-tag=beta --json)
- NocoBase 3 packages,
@nocobase/create-appincluded, are published to the public npm registry. The command sets that registry only for this process while allowingNOCOBASE_REGISTRYto select a private registry or an unreleased local snapshot;create-appuses the same registry for the template and dependency installation, and records only a non-public override in the project's.npmrc. Leave the user's pnpm configuration unchanged. - Use the
betachannel for both the creation tool (@nocobase/app@beta) and the template (--template-tag=beta); selecting only the tool does not select the template channel. Do not fall back tolatestifbetacannot be resolved. An explicit version or local snapshot requested by the user takes precedence. NOCOBASE_REGISTRYis set only when the shell is pointed at another registry, such as an unreleased snapshot;create-appreads it too.PNPM_CONFIG_MINIMUM_RELEASE_AGE=0lets pnpm install versions published minutes ago.--jsonnever prompts. It prints one JSON document on stdout and progress on stderr, so parse stdout only. It is the envelope everypnpm nocobase … --jsoncommand prints:oksays w
Câu hỏi thường gặp
Đây có dành cho việc triển khai lên máy chủ không?
Không. Việc triển khai thuộc về skill installer.
Nó có dùng NocoBase 2 không?
Không. Nó chỉ tạo dự án NocoBase 3.
Nếu thư mục đã có ứng dụng thì sao?
Skill nói rằng cần tiếp tục từ hướng dẫn của chính ứng dụng đó thay vì tạo ứng dụng mới.
Chi tiết
Mô tả gốc của tác giả
Create a NocoBase 3 project to develop, locally, with `pnpm create @nocobase/app@beta`, configure it with `pnpm nocobase config init`, `config set` and `config check`, start it, and hand over to the application's own guidance. Use when the user asks to install, create, set up or try NocoBase to develop with, and the working directory holds no NocoBase application yet. Not for deploying to production, which belongs to the `nocobase-app-installer` Skill. Not for NocoBase 2 or the `nb` CLI, and not for work inside an existing application, which carries its own AGENTS.md and Skills.
repo: nocobase/nocobase
Độ phổ biến
- Sao GitHub
- 25k
- Vị trí xếp hạng
- #10109
- 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-plugin-development
25kGiúp agent của bạn tạo và duy trì plugin NocoBase 3 trong một ứng dụng có sẵn, gồm phần server, client, cơ sở dữ liệu và đăng ký.
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.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.