nocobase-create-app
它能做什么
这项技能使用官方创建工具在本地创建新的 NocoBase 3 项目,进行配置并启动。适合想开始开发 NocoBase 应用的人。
适用场景
- ✓当你想创建一个新的 NocoBase 3 项目进行开发时。
- ✓当你要求在尚无应用的机器上安装或设置 NocoBase 时。
- ✓当你需要为本地开发配置并启动新的 NocoBase 项目时。
技能链接
https://github.com/nocobase/nocobase/blob/v3-develop/skills/nocobase-create-app/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我在电脑上创建一个新的 NocoBase 3 项目并启动,让我可以试用。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会运行创建工具,用配置命令设置参数,检查后启动项目。然后它会转交给应用自带的指导文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
常见问题
这是用于部署到服务器的吗?
不是。部署由安装程序技能负责。
它使用 NocoBase 2 吗?
不使用。它只创建 NocoBase 3 项目。
如果文件夹里已经有应用怎么办?
技能说明应从该应用自己的指导文件继续,而不是创建新应用。
详情
作者的原始描述
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
热度
- GitHub 星标
- 25k
- 排名
- #10109
- 许可证
- —
- 更新时间
- 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 应用升级到较新的模板版本,引入模板的更改,同时保留你自己的工作。