feat(plugins): add Sealos#148
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces the 'Sealos Skills' plugin, a comprehensive suite of tools for AI agents to deploy applications to Sealos Cloud. It includes skills for cloud-native readiness assessment, deterministic Docker Compose to Sealos template conversion, and iterative Dockerfile generation, supported by extensive knowledge bases and validation scripts. Feedback was provided on the template converter's fallback logic, which may generate redundant deployment resources when processing Compose files that only contain database services.
| if not app_services: | ||
| if gateway_services: | ||
| app_services = gateway_services[:1] | ||
| else: |
There was a problem hiding this comment.
If the Docker Compose file contains only database services (e.g., just a postgres service), app_services will be empty. The current logic then picks the first service from service_items as the primary app service. This results in generating both a Kubeblocks Cluster and a standard Deployment for the same database image, which is redundant and likely incorrect for Sealos templates. Consider filtering out services already identified as database services when falling back.
Summary
Validation
Refs labring/sealos-skills#22