devopsellence
Use this skill when the user wants to deploy an app with devopsellence, check deployment state, manage secrets, or bootstrap and assign their own nodes.
Default flow
- 1. Work in the app directory the user wants to deploy.
- Check whether the CLI is already installed:
CODEBLOCK0
If the command is missing, install the latest compatible CLI:
CODEBLOCK1
- 3. Validate local state before changing anything:
CODEBLOCK2
- 4. If the project is not initialized yet, run:
CODEBLOCK3
If the user already knows the target workspace values, prefer explicit flags:
CODEBLOCK4
- 5. Deploy the app:
CODEBLOCK5
If the user wants to deploy an existing image digest instead of building locally:
CODEBLOCK6
- 6. Verify the result:
CODEBLOCK7
Secrets
Prefer stdin over literal secret values in prompts or shell history:
CODEBLOCK8
Bring your own node
Use these when the user wants to run on their own machine or VM:
CODEBLOCK9
Heuristics
- - Prefer
devopsellence doctor before devopsellence deploy. - If Docker is missing or not running, surface the problem clearly, or switch to
devopsellence deploy --image ... when the user already has a pushed image digest. - If the workspace is not a git checkout and the CLI needs git metadata, stop and ask before creating a repo or commit.
- Keep secrets out of logs and chat output. Use environment variables plus
--stdin. - After installing this skill from ClawHub, start a new OpenClaw session if the current session does not pick it up.
devopsellence
当用户想要使用devopsellence部署应用、检查部署状态、管理密钥,或引导并分配自己的节点时,使用此技能。
默认流程
- 1. 在用户想要部署的应用目录中工作。
- 检查CLI是否已安装:
bash
command -v devopsellence
如果命令缺失,安装最新的兼容CLI:
bash
curl -fsSL https://www.devopsellence.com/lfg.sh | bash
- 3. 在更改任何内容之前验证本地状态:
bash
devopsellence doctor
- 4. 如果项目尚未初始化,运行:
bash
devopsellence init
如果用户已知目标工作空间的值,优先使用显式标志:
bash
devopsellence init --org acme --project shop --env staging
- 5. 部署应用:
bash
devopsellence deploy
如果用户想要部署现有的镜像摘要而不是本地构建:
bash
devopsellence deploy --image docker.io/example/app@sha256:...
- 6. 验证结果:
bash
devopsellence status --json
密钥
优先使用标准输入,而非在提示或shell历史中直接输入密钥值:
bash
printf %s $VALUE | devopsellence secret set --service web --name NAME --stdin
devopsellence secret list
devopsellence secret delete --service web --name NAME
自带节点
当用户想要在自己的机器或虚拟机上运行时使用:
bash
devopsellence node bootstrap
devopsellence node list --json
devopsellence node assign
devopsellence node unassign
启发式规则
- - 在devopsellence deploy之前优先执行devopsellence doctor。
- 如果Docker缺失或未运行,清晰指出问题,或者在用户已有推送的镜像摘要时切换到devopsellence deploy --image ...。
- 如果工作空间不是git检出目录且CLI需要git元数据,在创建仓库或提交前停止并询问。
- 将密钥排除在日志和聊天输出之外。使用环境变量加--stdin。
- 从ClawHub安装此技能后,如果当前会话未加载,启动一个新的OpenClaw会话。