本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)25k · #10109

nocobase-create-app

できること

公式の作成ツールを使い、NocoBase 3の新しいプロジェクトをローカルに作成し、設定して起動します。NocoBaseアプリの開発を始めたい人向けです。

使う場面

  • ✓開発するための新しいNocoBase 3プロジェクトを作りたいとき。
  • ✓まだアプリがないマシンに、NocoBaseをインストールまたは設定したいとき。
  • ✓ローカルでの開発のために、新しいプロジェクトを設定して起動する必要があるとき。

スキルのリンク

https://github.com/nocobase/nocobase/blob/v3-develop/skills/nocobase-create-app/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/nocobase/nocobase/blob/v3-develop/skills/nocobase-create-app/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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.json with a nocobase field, next to an AGENTS.md — do not use this Skill. Read that AGENTS.md and continue from it.

  • NocoBase 3 is created with pnpm create @nocobase/app@beta. Never fall back to NocoBase 2 instructions or the nb CLI, 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, --archive

    Hand 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) and pnpm --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 24 or fnm install 24, and for pnpm corepack enable && corepack prepare pnpm@11 --activate or npm 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-app included, are published to the public npm registry. The command sets that registry only for this process while allowing NOCOBASE_REGISTRY to select a private registry or an unreleased local snapshot; create-app uses 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 beta channel 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 to latest if beta cannot be resolved. An explicit version or local snapshot requested by the user takes precedence.
  • NOCOBASE_REGISTRY is set only when the shell is pointed at another registry, such as an unreleased snapshot; create-app reads it too.
  • PNPM_CONFIG_MINIMUM_RELEASE_AGE=0 lets pnpm install versions published minutes ago.
  • --json never prompts. It prints one JSON document on stdout and progress on stderr, so parse stdout only. It is the envelope every pnpm nocobase … --json command prints: ok says 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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル