sealos-canvaslisted
Install: claude install-skill labring/sealos-skills
# Sealos Canvas
## Overview
Render the current repository's deployed Sealos resources as a locally hosted HTML canvas. This skill is view-only: it reads `.sealos/state.json` and Kubernetes resources, starts a temporary `127.0.0.1` UI server, and returns the local URL to the user.
## Hard Rules
1. Do not deploy, update, restart, patch, delete, or apply resources.
2. Only use read commands such as `kubectl get` and `kubectl config view`.
3. Use the Sealos kubeconfig at `~/.sealos/kubeconfig`.
4. Do not display Secret data or full ConfigMap contents.
5. If the project has no `.sealos/state.json` with `last_deploy`, stop and tell the user to deploy first with `/sealos-deploy`.
6. If kubeconfig or live resource access is unavailable, report the script message and stop.
## Workflow
### 1. Resolve the project
Use the current working directory unless the user provides a local path:
```bash
WORK_DIR="$(pwd)"
```
Confirm this is the intended repository before generating output.
### 2. Start the local canvas UI
Run:
```bash
node "<SKILL_DIR>/scripts/generate-canvas.mjs" --work-dir "$WORK_DIR"
```
Keep this process running while the user is viewing the canvas. The script writes JSON to stdout after the local server starts.
If `ok` is `false`, show the `message` to the user and end the flow. Do not run fallback discovery, do not deploy, and do not create any other artifact.
If `ok` is `true`, use `local_url` as the primary output.
### 3. Open the local URL
Open the return