Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
kubernetes-pr-preview-deployer【部署与运维】Deploys a specific Git branch to Kubernetes for preview/testing. Handles cloning repositories, creating namespaces, applying Kubernetes manifests (like preview.yaml), creating ConfigMaps from application files, and exposing the application via NodePort for local access. After deployment, it can run tests and generate a test report.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
This skill deploys a Git branch to a Kubernetes preview environment. It follows a sequence of operations observed in the trajectory: clone repository, inspect structure, create Kubernetes resources from manifests and application files, expose the service, run tests, and generate a report.
preview.yaml (Kubernetes manifest), src/index.html (application file for ConfigMap), and test files.preview.yaml (e.g., pr-preview-123). If it already exists, proceed.preview.yaml) to create the Deployment and ClusterIP Service. Use the --namespace flag to target the correct namespace.src/index.html). The ConfigMap name must match the configMap.name referenced in the Deployment's volumes section (e.g., frontend-app-pr123-html).30123). This service should select the same Pod labels as the Deployment. Use type NodePort and specify the nodePort field.http://localhost:<nodePort>.tests/checkout.spec.js) that expects the APP_URL environment variable or defaults to http://localhost:30123.test-results-report.md). Update the result cells (✅/❌) and the summary statistics (Total, Passed, Failed). Save the completed report to the workspace root.kubectl create configmap <name> --from-file=<key>=<path>.NodePort in addition to any ClusterIP service in the manifest. This ensures long-term host access.npx or Playwright, you may need to run tests manually via browser automation (as shown in the trajectory) and record results.terminal-run_command for shell operations (git, curl, file inspection).filesystem-* tools for reading/writing files and directory trees.k8s-kubectl_* tools for all Kubernetes operations.playwright_with_chunk-browser_* tools for browser-based testing if automated test runners are unavailable.http://localhost:<specified_port>.filled-test-results-report.md).