用于管理 Uncloud 集群,完成部署、入口配置、扩缩容与运维排障。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "uncloud" 技能: 1. 下载 https://raw.githubusercontent.com/affaan-m/ECC/main/skills/uncloud/SKILL.md 2. 保存为 ~/.claude/skills/uncloud/SKILL.md 3. 装好后重载技能,告诉我可以用了
请用 uc CLI 帮我把 myapp 部署到 Uncloud 集群,发布 8080 端口到公网,并给出完整命令与说明。
返回部署与端口发布命令,并说明执行顺序与验证方法。
我想为集群中的 api 服务配置 Caddy 域名入口,并为一台非集群内设备添加静态代理路由,请生成 uc CLI 操作步骤。
给出入口与代理路由配置命令,并附带示例域名和检查方式。
请帮我把 worker 服务扩容到 5 个副本,查看最近 200 行日志,并说明如何判断是否扩容成功。
输出扩容与日志查看命令,并说明成功判定指标与排障建议。
Reference for the uc CLI — a decentralised self-hosting platform using Docker containers, WireGuard mesh networking, and Caddy reverse proxy.
Use this skill when working with Uncloud clusters, especially when:
uc machineuc deployx-caddy, x-ports, or --caddyfileUncloud runs Docker services across peer machines connected by a WireGuard mesh. Each machine is an equal cluster member; services communicate on the overlay network and Caddy runs globally to terminate public HTTP/HTTPS traffic. Compose files can use Uncloud extensions for ingress, placement, and generated Caddy configuration, while the uc CLI handles image distribution, scheduling, scaling, logs, and cluster state.
uc machine init user@host --name machine-1
uc service run --name web -p app.example.com:8080/https nginx:latest
uc deploy
10.210.0.0/16 by default; DNS provided inside the meshx-caddy / --caddyfile instead| Command | Purpose |
|---|---|
uc machine init user@host | Bootstrap first machine / new cluster |
uc machine add user@host | Join machine to existing cluster |
uc machine ls | List machines |
uc machine update NAME --public-ip IP | Update public IP for ingress |
uc machine rm NAME | Remove machine |
Key init flags: --name, --network 10.210.0.0/16, --no-caddy, --no-dns, --public-ip auto\|IP\|none
| Command | Purpose |
|---|---|
uc service ls / uc ls | List services |
uc service run IMAGE | Run a single container service |
uc deploy | Deploy from compose.yaml |
uc deploy --no-build | Deploy already-pushed images without rebuilding |
uc deploy --recreate | Force service recreation |
uc scale SERVICE N | Set replica count |
uc service logs SERVICE | View logs |
uc service exec SERVICE | Shell into container |
uc service inspect SERVICE | Detailed info |
uc service rm SERVICE | Remove service (keeps named volumes) |
uc ps | All containers across cluster |
uc image push myapp:latest # Push local image to all machines
uc image push myapp:latest -m machine1,machine2 # Push to specific machines
uc images # List images in cluster
uc volume ls # All volumes
uc volume ls -m machine1 # On specific machine
uc volume create NAME -m MACHINE
uc volume rm NAME
uc caddy config # Show current generated Caddyfile (read-only)
uc caddy deploy # Deploy/upgrade Caddy across cluster
uc dns show # Show reserved *.uncld.dev domain
uc dns reserve # Reserve a new domain
uc ctx ls # List cluster contexts
uc ctx use prod # Switch context
-p [hostname:]container_port[/protocol]
| Example | Meaning |
|---|---|
-p 8080/https | HTTPS with auto service-name.cluster-domain hostname |
-p app.example.com:8080/https | HTTPS with custom hostname |
-p 8080/http | HTTP only, no TLS |
-p [host_ip:]host_port:container_port[/protocol]@host
…
帮助开发者落实 Django 安全最佳实践,构建更安全的认证、授权与部署方案。
扫描多项技能并提炼通用规则,自动追加、修订或新建规则文件。
提供面向生产后端的 MySQL 与 MariaDB 设计、查询与运维模式建议。
帮助你判断解析结构化文本时何时用正则、何时引入大模型兜底。
用于 Laravel 项目的环境检查、测试、安全扫描与发布验收
提供地道 Kotlin 模式与最佳实践,帮助构建健壮高效且易维护的应用。
用命令行与终端界面高效管理 UniFi 网络设备、状态与配置。
用自然语言管理 UniFi 设备、优化 WiFi、审计安全并排查网络问题。
用自然语言连接 Uyuni 基础设施,执行系统巡检、更新管理与任务调度。
用自然语言管理 UniFi 网络、设备与监控摄像头运维任务
让 AI 连接 UniFi 控制器,执行网络监控、查询与基础控制操作。
通过 MCP 统一管理 UniFi 站点、设备、网络与安全配置。