sealos-database
Installation
SKILL.md
Sealos Database
Use this skill to give a project a real Sealos Cloud database during development. The default outcome is: identify the app's database need, create or reuse a Sealos database with sealos-cli, fetch connection details, wire only the needed local env vars, and verify the app can connect.
Safety Rules
- Never print database passwords or full connection strings in the final answer.
- Do not overwrite an existing env value without confirming or preserving the old value.
- Do not commit
.env,.env.local, connection strings, passwords, kubeconfig, or Sealos auth files. - Ask before enabling public database access. Prefer private connections when the app runs inside Sealos/Devbox.
- Ask before destructive operations:
database delete,backup-delete, restoring over a name that may collide, or disabling access that an active app depends on. - Use JSON output from
sealos-cliby default and parse it instead of scraping table output.
Workflow
1. Resolve the target project
Confirm the working directory with pwd or git rev-parse --show-toplevel.