Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

nocobase-env-managenocobase 环境管理

Agent Skill

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

总安装

1,560

周安装

67

GitHub Stars

24

下载量

547
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/nocobase/skills --skill nocobase-env-manage

简介

nocobase-env-manage 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中筛选信息的场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Goal

Use nb CLI only to complete NocoBase bootstrap, lifecycle, and maintenance actions.

Scope

  • Bootstrap or connect NocoBase environments through nb init.
  • Manage saved CLI environments through nb env.
  • Manage app runtime lifecycle through nb app.
  • Check and update the nb CLI through nb self.
  • Check and update installed NocoBase skills through nb skills.
  • Inspect built-in database runtime only when it helps verify or diagnose the selected environment.

Non-Goals

  • Do not implement NocoBase business models, UI pages, workflows, or plugins.
  • Do not run repository-local helper scripts for install or lifecycle work.
  • Do not bypass the official install guide when the user provides an official install URL.

Hard Rules

  • Only run direct nb commands.
  • Never run local scripts (*.mjs, *.ps1, *.sh).
  • Never use template-driven install flows.
  • For task=install, if the user provides an official NocoBase install or quick-start URL, read that URL first and follow the official guide flow. Ignore local install command tables when they conflict with the official guide.
  • For task=install, use nb init --ui as the guided install entrypoint unless the current official guide says otherwise.
  • nb init --ui is not a completion condition. Keep following CLI output until setup reaches a finished state or the CLI exits with an actionable failure.
  • When executing nb init --ui, use a CLI timeout of 30 minutes and do not interrupt the command before it exits.
  • If install flow exposes a URL that cannot be opened because the agent is running in a sandboxed environment, explicitly ask to elevate/open outside the sandbox; if the user refuses, provide the URL directly to the user.
  • Never proactively fill install/setup forms on the user's behalf; only surface the URL, explain the next step, and let the user complete the form.
  • If the CLI prints a continuation or recovery command, especially nb init... --resume..., execute that exact direct nb command unless it is destructive or conflicts with the user's latest instruction.
  • Use nb app <command> for runtime lifecycle operations.
  • Use nb self <command> only for CLI self-check/update.
  • Use nb skills <command> only for installed skills check/update.
  • Do not execute ambiguous status/check/update/upgrade intents until the target is clear: app/runtime/env, CLI, or skills.
  • Do not add extra precheck gates before executing user-requested nb commands.
  • Prefer executing user-requested runtime commands first; use nb --help when user asks for diagnostics/help output or command discovery is needed.
  • Surface CLI outputs and hints directly to users.

Supported Tasks

  • install
  • app-manage
  • upgrade
  • stop
  • start
  • restart
  • logs
  • down
  • self-check
  • self-update
  • skills-check
  • skills-update

Input Contract

InputRequiredDefaultNotes
taskyesinferredone of install/app-manage/upgrade/start/stop/restart/logs/down/self-check/self-update/skills-check/skills-update
app_env_actionfor task=app-managelistone of add/use/current/list/remove; current is derived from list output
app_env_nameconditionalnonerequired for add/use/remove
app_base_urlconditionalnonerequired for add; accepts URL with or without /api (auto-normalized)
cli_auth_modefor env addoauthone of oauth/token
app_tokenconditionalnonerequired when cli_auth_mode=token
runtime_env_nameoptional for upgrade/start/stop/restart/logs/downcurrent envexplicit runtime env name

Execution Policy

  • Execute the target nb command directly.
  • Intent clarification is not a precheck gate. If the user's wording is ambiguous, ask one concise clarification question before running any command.
  • Install routing:

- when the user provides an official NocoBase install or quick-start URL, read it first and follow that official flow, ignoring local install command tables on conflict - otherwise use nb init --ui as the guided install entrypoint

  • For task=install, treat nb init --ui as a long-running interactive command:

- set command timeout to 30 minutes - do not interrupt/wait-short/poll in a way that aborts the CLI before completion - do not stop just because a local setup URL was printed - continue until the CLI reports readiness, workspace completion, or an explicit failure

  • If nb init --ui prints a local URL and browser open fails in sandbox, first ask to elevate/open outside sandbox; if that is declined, surface the URL so the user can open it manually.
  • During install/setup flows, never submit or fill web forms for the user; provide instructions only.
  • If install fails and CLI prints a resume command, run the printed nb init... --resume... command next. Do not rerun a fresh setup unless the CLI asks for it or the user explicitly requests it.
  • Do not run separate preflight checks unless the user explicitly asks for diagnostics.
  • If command fails, return key CLI output lines and suggested next commands from CLI output.
  • For environment query intents (list/current), use fast path:

- first command: nb env list - current env is the row marked with leading *

  • For environment query intents, keep command set minimal:

- nb env --help / nb env list --help are available when command discovery is needed.

  • For environment details and post-install verification, prefer nb env info [name] and inspect app/database/API status.
  • For env add, normalize API base URL before execution:

- if URL already ends with /api, keep as-is - otherwise append /api

  • For CLI maintenance, execute the exact command requested by task:

- self-check -> nb self check --json - self-update -> nb self update --yes

  • For skills maintenance, execute the exact command requested by task:

- skills-check -> nb skills check --json - skills-update -> nb skills update --yes

  • Preserve JSON check output from nb self check --json and nb skills check --json when reporting results.
  • After self-update or skills-update, run the matching check command as readback unless the CLI says the shell/session must be restarted first.

Intent Disambiguation

When the user says generic status/check/update/upgrade wording without an explicit target, do not infer a command.

Ambiguous examples include:

  • 检查状态
  • 检查一下
  • 健康检查
  • 诊断一下
  • 检查更新
  • 升级
  • 更新
  • 修复

Ask which target they mean before executing:

  • app/runtime/env: nb env list, nb env info, or nb app...
  • CLI: nb self check --json or nb self update --yes
  • skills: nb skills check --json or nb skills update --yes

Clarification template:

  • 你想检查/更新哪一类:NocoBase app/runtime/env、nb CLI,还是已安装 skills?

Treat these as clear targets:

  • explicit command text, such as nb self check --json
  • exact task names, such as self-check or skills-update
  • wording that names the target, such as 检查 nb CLI, 更新已安装 skills, 升级 NocoBase app, 检查当前环境

Env Resolution Rule

For upgrade/start/stop/restart/logs/down:

  1. If runtime_env_name is provided, pass --env <env>.
  2. If no env is provided, run command without --env and follow CLI response.
  3. If CLI reports no env configured, surface that message and ask user whether to create a new app or add an env.

Workflow

  1. Infer the requested task and any explicit env name, API base URL, auth mode, or official install URL.
  2. If status/check/update/upgrade intent could target app/runtime/env, CLI, or skills, ask for clarification before executing.
  3. For install requests with an official URL, read the URL first and follow the official guide flow.
  4. Execute only direct nb commands from the current command map or from CLI-provided continuation hints.
  5. Keep interactive install commands alive until completion, actionable failure, or user interruption.
  6. Verify with nb env list, nb env info, and app/database status when relevant.
  7. For CLI/skills maintenance, use the nb self / nb skills commands exactly as mapped.
  8. Report executed commands, important CLI output, and the next concrete action.

Command Map

install

nb init --ui
nb env list
nb env info

Install is done only when the CLI reports readiness/completion, such as NocoBase is ready... and Workspace init finished, or equivalent success output from the current official guide.

app-manage

list/current

nb env list
nb env info [name]

For current, derive from the row marked with leading * in nb env list output. Do not call nb env current.

When CLI returns:

  • No envs configured.
  • Run 'nb env add <name> --api-base-url <url>' to add one.

surface this message directly and ask whether to create a new app (nb init --ui) or add env.

add (oauth)

nb env add <name> --api-base-url <url> --auth-type oauth

<url> uses normalized value (auto-append /api when missing).

add (token)

nb env add <name> --api-base-url <url> --auth-type token --access-token <token>

<url> uses normalized value (auto-append /api when missing).

use

nb env use <name>

remove

nb env remove <name>

Write actions (add/use/remove) must always be followed by:

nb env list

Use nb env remove <name> -f only after explicit user confirmation.

auth

nb env auth [name]

upgrade

nb app upgrade [--env <env>]

Optional:

nb app upgrade [--env <env>] --skip-code-update

stop

nb app stop [--env <env>]

start

nb app start [--env <env>]

Optional:

nb app start --env <env> --quickstart
nb app start --env <env> --port <port>
nb app start --env <env> --daemon
nb app start --env <env> --no-daemon

restart

nb app restart [--env <env>]

logs

nb app logs [--env <env>] [--tail <lines>] [--no-follow]

down

nb app down [--env <env>]

self-check

nb self check --json

Use this for nb CLI health/version/update checks. No env is required.

self-update

nb self update --yes
nb self check --json

Run the update command first. Run the check command afterward as readback unless the CLI says a new shell/session is required.

skills-check

nb skills check --json

Use this for installed NocoBase skills health/version/update checks. No env is required.

skills-update

nb skills update --yes
nb skills check --json

Run the update command first. Run the check command afterward as readback unless the CLI says a new shell/session is required.

Safety

  • Never run upgrade on ambiguous env.
  • Ask explicit confirmation before upgrade when user intent is not explicit.
  • Treat nb app down as destructive because it removes runtime containers and saved local app files. Always ask explicit confirmation before running it.
  • Never pass --all or --yes to nb app down unless the user explicitly requests those flags.
  • Treat nb self update --yes and nb skills update --yes as allowed update shortcuts only when the user clearly requests CLI or skills update.
  • Do not substitute package-manager update commands (npm, pnpm, yarn) for nb self update --yes or nb skills update --yes.

Confirmation template:

  • Confirm execution: nb app upgrade --env <env>. Reply confirm to continue.

Safety Gate

Require explicit user confirmation before:

  • ambiguous status/check/update/upgrade intents where the target could be app/runtime/env, CLI, or skills.
  • nb app upgrade when the target env is ambiguous or the user did not clearly request an upgrade.
  • nb app down in all cases.
  • nb env remove <name> -f.
  • Any command that includes --all, --yes, or force-style deletion flags, except exact nb self update --yes / nb skills update --yes commands when the user clearly requested that update.

Output Contract

Final response must include:

  • selected task
  • executed commands
  • relevant CLI outputs, including JSON check output and error/hint lines when failed
  • normalized API base URL (for env add)
  • next action

Reference Loading Map

ReferenceUse When
Usage GuideMapping user intent to current nb commands.
Install RunbookExecuting install/bootstrap flows, especially official URL and resume handling.
Upgrade RunbookUpgrading app runtimes with nb app upgrade.
Preflight ChecklistOptional diagnostics when explicitly requested.
TroubleshootingRecovering from CLI errors and version mismatch symptoms.

Verification Checklist

  • Install requests with an official URL read and followed that URL first.
  • nb init --ui was not treated as complete when only a setup URL appeared.
  • Any CLI-provided nb init... --resume... continuation was followed or surfaced with a blocker.
  • Runtime lifecycle commands used nb app....
  • Env operations used the final nb env syntax.
  • Ambiguous status/check/update/upgrade wording was clarified before command execution.
  • CLI maintenance used nb self check --json or nb self update --yes.
  • Skills maintenance used nb skills check --json or nb skills update --yes.
  • Maintenance update commands were followed by matching check commands when the CLI allowed it.
  • Final readback used nb env list and, when relevant, nb env info.

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.25%
按下载量换算204

Claude

29.19%
按下载量换算160

Cursor

17.14%
按下载量换算94

Gemini CLI

8.46%
按下载量换算46

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills