Claude-skill-registry deploy-work
Deployment workflow for company repos (pre/pro) using CI, ECR, and Helm.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/deploy-work" ~/.claude/skills/majiayu000-claude-skill-registry-deploy-work && rm -rf "$T"
manifest:
skills/data/deploy-work/SKILL.mdsource content
Deploy Work Skill
Standard deployment workflow for company repositories with CI/CD -> ECR -> Helm.
When to Use
- Deploying to pre or pro for company repos.
- Ensuring CI has produced an image tag before helm upgrade.
- Running a controlled deploy with explicit confirmation.
Core Rules
- Always use
for helm upgrades.--set image.tag=<SHA> - Do NOT edit or commit
orvalues-pre.yaml
.values-pro.yaml - Verify CI completion and ECR push before helm upgrade.
- Ask for confirmation before
.helm upgrade
Repo Detection
Use any of:
git remote get-url origin- repo folder name
- presence of
ci/helm-package-new
Naturgy Special Case
andvalues-pre.yaml
undervalues-pro.yaml
only apply to theci/helm-package-new
repo.naturgy-web- If release is
(ornaturgy-web-new
) use:naturgy-web-pre-naturgy-web-new
or./ci/helm-package-new/values-pre.yaml
../ci/helm-package-new/values-pro.yaml
- Otherwise use:
or./ci/helm-package/values-pre.yaml
../ci/helm-package/values-pro.yaml
Pre Deployment Workflow
-
Ensure branch/PR has CI green.
gh pr checks <id> --watch- or
gh run list --branch <branch> --workflow ci.yml -L 1
-
Get the SHA with CI green.
gh run list --branch <branch> --workflow ci.yml -L 1 --json headSha,conclusion,status
-
Verify ECR image push in logs.
gh run view <run_id> --log- Look for tags containing
.<SHA>
-
Confirm cluster context and detect release/namespace.
kubectl config current-contextkubectl get ns | rg <ns>kubectl get deployments -A | rg <app>helm list -A | rg <app>
-
Confirm chart path and helm upgrade (confirm first).
- Common chart path:
or./ci/helm-package./ci/helm-package-new helm upgrade <release> -f <values-pre.yaml> <chart-path> --namespace <ns> --set image.tag=<SHA>
- Common chart path:
Pro Deployment Workflow
-
Merge PR to
.mastergh pr merge <id> --merge
-
Wait for CI on
.mastergh run list --branch master --workflow ci.yml -L 1
-
Get SHA and verify ECR push.
- Same as pre.
-
Confirm cluster context and detect release/namespace.
kubectl config current-contextkubectl get ns | rg <ns>- Same as pre.
-
Confirm chart path and helm upgrade (confirm first).
- Common chart path:
or./ci/helm-package./ci/helm-package-new helm upgrade <release> -f <values-pro.yaml> <chart-path> --namespace <ns> --set image.tag=<SHA>
- Common chart path:
Safety
- No destructive cluster commands.
- Read-only until user confirms helm upgrade.
- Record release, namespace, and revision after deploy.