/devops:release-validatefrom devops
Validates package release readiness across version consistency, link integrity, npm content, setup scripts, skill fixture suites, shell portability, cross-repo fixture coverage, cross-AI-tool registration parity, and release artifacts. Run before `pnpm release` as a pre-publish gate.
Ships in devops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Pre-release quality gate that validates the devops-ai-skill pack is ready to publish. Covers four areas that existing structure tests (test-structure.sh) do not fully address:
This skill is the only one that validates the skill pack itself (meta-validation). It bridges the gap between test-structure.sh (static file checks) and release.sh (publish). Think of it as a pre-flight checklist that catches semantic issues — dead cross-references, missing registrations, npm packaging gaps, or setup script regressions — that static checks cannot detect.
This skill activates when the user:
pnpm releaseDo NOT assume hardcoded counts or file lists. Discover the pack structure at runtime.
Build the canonical skill list dynamically:
find skills/ -mindepth 1 -maxdepth 1 -type d | sort
Store the count as <skill-count> and the list as <skill-names> for all subsequent steps.
Build the canonical pipeline list:
# Horus pipelines
ls prompts/horus/*.md 2>/dev/null
# Zeus pipelines
ls prompts/zeus/*.md 2>/dev/null
# Shared prompts
ls prompts/shared/*.md 2>/dev/null
Store counts and lists for parity checks.
Verify each platform's entry point exists:
| Platform | Entry File | Config Files |
|---|---|---|
| Claude Code | CLAUDE.md | .claude/agents/*.md, .claude-plugin/*.json |
| Codex | AGENTS.md | .codex/config.toml |
| Gemini | GEMINI.md | .gemini/agents/*.md, .gemini/extensions/devops/gemini-extension.json, .gemini/commands/devops/**/*.toml |
| Antigravity | .agents/rules/devops.md | .agents/skills/*/SKILL.md |
Locate all files that must contain the version string:
VERSION (source of truth)package.json → .version.claude-plugin/plugin.json → .version.claude-plugin/marketplace.json → .metadata.version AND .plugins[0].version.gemini/extensions/devops/gemini-extension.json → .versionVERSION=$(cat VERSION | tr -d '[:space:]')
Run the existing version consistency check and interpret results:
bash scripts/version-consistency.sh
Verify all 5 files from Step 0d contain the same version. If version-consistency.sh is missing, perform the checks inline by reading each file.
Marketplace.json has TWO version fields — both metadata.version and plugins[0].version must match. This is easy to miss because version-consistency.sh only checks metadata.version.
Check that CHANGELOG.md contains:
## [$VERSION] (required by release.sh)YYYY-MM-DD)### Added, ### Changed, ### Fixed, or similar(describe changes here) left by version-bump.shSimulate what npm publish would include:
pnpm pack --dry-run 2>&1
If pnpm is unavailable, fall back:
npm pack --dry-run 2>&1
Validate the tarball contents against the canonical lists from Step 0:
Required file categories (validate each dynamically, not by hardcoded count):
skills/<name>/SKILL.md from Step 0a is presentprompts/horus/*.md, prompts/zeus/*.md, prompts/shared/*.md from Step 0b is present.claude/agents/horus.md, .claude/agents/zeus.md.claude-plugin/plugin.json, .claude-plugin/marketplace.jsonscripts/setup.sh, scripts/setup/*.shdocs/PROJECT.md, VERSIONExclusion check — the tarball must NOT contain:
.env, .env.* filesnode_modules/.DS_Storetests/ directory (test files should not ship to users).git/ directoryCross-reference with package.json files field — if a required category is missing from the files array, report it as a packaging gap.
Verify the repository is in a clean state for release:
git status --porcelain should be emptymainv$VERSION does not already existmain is up-to-date with origin/main:
git fetch origin main --dry-run 2>&1
git rev-list HEAD..origin/main --count
If unpushed or unpulled commits exist, report the count and direction.README badges display counts (skills, pipelines, agents) as shield.io URLs. These must match reality.
# Extract badge counts from README.md
grep -oP 'SKILLS-\K[0-9]+' README.md
grep -oP 'PIPELINES-\K[0-9]+' README.md
grep -oP 'AGENTS-\K[0-9]+' README.md
Compare against canonical counts from Step 0:
SKILLS badge must equal <skill-count> from Step 0aPIPELINES badge must equal total horus + zeus pipeline count from Step 0bAGENTS badge must equal 2Check all 3 README files: README.md, docs/README.zh-TW.md, docs/README.zh-CN.md.
Also scan for hardcoded skill counts in prose text:
grep -n '[0-9] skills\|[0-9] 個 Skills\|[0-9] 个 Skills\|[0-9] skill symlinks' README.md docs/README.zh-TW.md docs/README.zh-CN.md docs/setup.md scripts/setup.sh
Every count found must match <skill-count>.
For informational purposes, verify that previous versions in CHANGELOG.md have corresponding git tags:
grep -oP '## \[\K[0-9]+\.[0-9]+\.[0-9]+' CHANGELOG.md | while read v; do
if git rev-parse "v$v" &>/dev/null; then
echo " ✓ v$v tag exists"
else
echo " ⚠ v$v tag missing (changelog entry exists but no git tag)"
fi
done
Report missing tags as WARN (not FAIL) — the user may have only recently adopted tagging.
Build a reference graph by scanning these entry-point files:
| Platform | Entry File | References To |
|---|---|---|
| Claude Code | CLAUDE.md | docs/PROJECT.md, prompts/, .claude/agents/ |
| Claude Plugin | .claude-plugin/plugin.json | skills, agents, commands |
| Codex | AGENTS.md | docs/PROJECT.md, prompts/, skills/ |
| Gemini | GEMINI.md | docs/PROJECT.md, .gemini/commands/, .gemini/agents/ |
| Antigravity | .agents/rules/devops.md | docs/PROJECT.md, prompts/, .agents/skills/ |
For each cross-reference found in Step 2a:
[text](path) and backtick-quoted inline pathspath fields, TOML prompt fields)Path extraction patterns:
[text](relative/path.md) or [text](relative/path)`prompts/horus/full-pipeline.md`"path": "../../../skills/repo-detect/SKILL.md"prompts/ paths inside prompt = """..."""Report:
Cross-Platform Link Validation
===============================
Scanning: CLAUDE.md
✓ docs/PROJECT.md
✓ prompts/horus/full-pipeline.md
✗ prompts/horus/migrate.md (NOT FOUND)
Scanning: .claude-plugin/plugin.json
✓ skills/terraform-validate/SKILL.md
...
Ensure every skill from Step 0a is registered on every platform:
<skill-names> from Step 0a.gemini/extensions/devops/gemini-extension.json → skills[] array. Each entry should have a name matching a skill directory and a path that resolves to an existing SKILL.mdAGENTS.md for $<skill-name> references.agents/skills/ — note that Antigravity registers agents-as-skills (horus/zeus) separately from shared skills (symlinked by setup). Only validate that the setup script would create symlinks for all skills.skills/ at runtime — verify the skills/ directory is in package.json files arrayReport per-platform registration matrix:
Skill Registration Parity
===========================
Claude Codex Gemini Antigravity PROJECT.md
terraform-validate ✓ ✓ ✓ ✓ ✓
terraform-security ✓ ✓ ✓ ✓ ✓
release-validate ✓ ✓ ✗ ✓ ✓
↑ missing from gemini-extension.json
Ensure all pipelines are documented consistently across platforms:
prompts/horus/*.md and Zeus pipelines from prompts/zeus/*.md (from Step 0b)*command names.gemini/commands/devops/pipelines/ has a TOML file for each pipeline. Naming convention: horus-<name>.toml, zeus-<name>.toml (with full-pipeline.md → horus-full.toml as a special case)scripts/setup/setup-antigravity.sh references all expected workflow names*command entries*command entriesTOML count validation:
toml_count=$(find .gemini/commands/devops -name "*.toml" | wc -l)
expected_count=$((2 + horus_pipeline_count + zeus_pipeline_count + shared_prompt_count_that_have_tomls))
The 2 accounts for agents/horus.toml and agents/zeus.toml.
Parse .gemini/extensions/devops/gemini-extension.json and verify:
agents[].definition paths resolve to existing filesskills[].path values resolve to existing SKILL.md filesskills[] count matches <skill-count> from Step 0aVERSION file (already checked in Phase 1a, but verify here too)TEST_DIR=$(mktemp -d)
trap 'rm -rf "$TEST_DIR"' EXIT # Always clean up, even on failure
# Simulate a target repository with the skill pack installed
mkdir -p "$TEST_DIR/target-repo"
cp -r . "$TEST_DIR/target-repo/devops-ai-skill"
cd "$TEST_DIR/target-repo"
The trap ensures cleanup happens even if a step fails partway through.
Run each platform setup script in the sandboxed directory. Use name-based assertions — verify each specific expected symlink exists, not just a count.
Claude Code (--claude):
bash devops-ai-skill/scripts/setup.sh --claude
Verify:
.claude/agents/horus.md and .claude/agents/zeus.md are symlinks pointing to valid targets<skill-names> has a symlink at .claude/skills/<skill-name>/ that resolves to a directory containing SKILL.md[fail] in outputCodex (--codex):
bash devops-ai-skill/scripts/setup.sh --codex
Verify:
<skill-names> has a symlink at .codex/skills/<skill-name>/AGENTS.md exists (or is symlinked)[fail] in outputGemini (--gemini):
bash devops-ai-skill/scripts/setup.sh --gemini
Verify:
.gemini/commands/devops/ directory has TOML command files.gemini/agents/ has agent definition files[fail] in outputAntigravity (--antigravity):
bash devops-ai-skill/scripts/setup.sh --antigravity
Verify:
<skill-names> has a symlink at .agents/skills/<skill-name>/.agents/workflows/ for all expected pipeline names.agents/rules/devops.md exists[fail] in outputRun each setup command a second time and verify:
[skip] (not [link] or [fail])[skip] messages matches the expected total (skills + workflows where applicable)bash devops-ai-skill/scripts/setup.sh --uninstall
Verify:
[fail] in output.claude/skills/, .codex/skills/, etc.) may remain empty — this is expectedHandled automatically by the trap in Step 3a. If running manually, ensure:
rm -rf "$TEST_DIR"
Iterate every tests/*/run-fixtures.sh and aggregate PASS/FAIL counts per
suite. Delegates to scripts/run_all_fixtures.sh:
bash skills/release-validate/scripts/run_all_fixtures.sh > /tmp/fixtures.json
Output JSON shape: {suites: [...], totalPass, totalFail, totalSuites, verdict}.
Gate: any suite with verdict: FAIL → overall verdict FAIL → release
blocked. Empty list (no fixture runners present) → verdict: NONE (not a
failure, but flagged in the report).
Static lint of every .sh file under skills/ and scripts/ for cross-OS
compatibility issues. Delegates to scripts/check_shell_portability.sh:
bash skills/release-validate/scripts/check_shell_portability.sh . > /tmp/portability.json
Rules:
| # | Rule | Severity | Why |
|---|---|---|---|
| 1 | #!/usr/bin/env bash shebang | WARN | /bin/bash and /bin/sh paths vary across distros |
| 2 | No declare -A | ERROR | macOS bash 3.2 lacks associative arrays — caught by us in v1.13.1 |
| 3 | No mapfile / readarray | ERROR | Bash 4+ only |
| 4 | No sed -i without backup suffix | WARN | BSD vs GNU divergence; portable form is sed -i.bak ... |
| 5 | No readlink with -f | WARN | BSD lacks -f; use cd && pwd pattern |
Gate: any ERROR → release blocked. WARN-only → release allowed but flagged.
For each "Kustomize-touching skill" listed in
references/repo-style-matrix.md, verify fixtures exist for each declared
repo style (kustomize-argocd, helm-only, mixed). Delegates to
scripts/check_repo_style_coverage.sh:
bash skills/release-validate/scripts/check_repo_style_coverage.sh --repo-root .
Output JSON: {scanned, matrix: [...], missing: ["skill:style"], coveragePct, verdict}.
Convention: any pre-v1.15.0 fixture under tests/<skill>/fixtures/
counts as kustomize-argocd-style (matches the current reality). Other
styles must have a directory whose name contains the style keyword
(e.g. tests/<skill>/fixtures/helm-only-basic/).
Gate: WARN-only. Coverage gaps are surfaced but do not block release —
they're follow-up work, not regressions. To upgrade a row to FAIL, edit
the matrix and add a new column with required (no code change needed).
For every Zeus command (file under prompts/zeus/), verify it is
registered across all 4 AI-tool surfaces. Delegates to
scripts/check_ai_tool_parity.sh:
bash skills/release-validate/scripts/check_ai_tool_parity.sh --repo-root . --all
Checks per command:
| # | Where | Required |
|---|---|---|
| 1 | prompts/zeus/<cmd>.md exists | yes |
| 2 | .gemini/commands/devops/pipelines/zeus-<cmd>.toml exists | yes |
| 3 | CLAUDE.md mentions *<cmd> | yes |
| 4 | AGENTS.md mentions *<cmd> | yes |
| 5 | GEMINI.md mentions *<cmd> | yes |
| 6 | docs/PROJECT.md mentions *<cmd> | yes |
Gate: FAIL on any gap. Every Zeus command must surface identically across Claude Code, OpenAI Codex CLI, Google Gemini CLI, and Google Antigravity. Strengthens Phase 2 (cross-platform link validation), which only checks file references, not command registration.
Combine Phases 4 + 5 + 6 + 7 outputs into a single Markdown artifact at
docs/reports/release-validate/<version>/RELEASE-CHECK.md. Suitable
verbatim as the body of gh release create --notes-file ... or as the
npm publish README excerpt.
VERSION=$(cat VERSION) \
FIXTURES_JSON=/tmp/fixtures.json \
PORTABILITY_JSON=/tmp/portability.json \
REPO_STYLE_JSON=/tmp/repo-style.json \
AI_TOOL_PARITY_JSON=/tmp/ai-parity.json \
OUTPUT="docs/reports/release-validate/${VERSION}/RELEASE-CHECK.md" \
bash skills/release-validate/scripts/render_release_artifact.sh
(REPO_STYLE_JSON and AI_TOOL_PARITY_JSON are optional — when absent,
the artifact renders Phase 6 + 7 verdicts as SKIPPED, matching the
v1.14.0 caller contract for backwards compatibility.)
The artifact contains:
The renderer also prints a one-line summary to stdout for CI logs:
release-validate v1.15.0: PASS (fixtures=OK, portability=OK, repoStyle=OK, parity=OK)
Gate: if overall verdict is FAIL, the renderer exits 1 — pnpm release
should refuse to proceed.
scripts/release_check.sh at the repo root runs every phase in sequence
and renders the artifact. Used by both operators (manual pre-release
sanity check) and CI (.github/workflows/release.yml).
pnpm release:check # or: bash scripts/release_check.sh
The orchestrator:
docs/reports/release-validate/<version>/fixtures.jsonportability.jsonrepo-style.jsonai-parity.jsonRELEASE-CHECK.mdCI uploads docs/reports/release-validate/ as a workflow artifact named
release-check-<tag> so the rendered Markdown is downloadable from the
Actions run page.
Present results as a release readiness report following the standard format from prompts/shared/report-format.md:
Release Validation Report — v1.6.0
====================================
Phase 1: Package Release Checks
✓ Version consistency (5/5 files match: 1.6.0)
✓ CHANGELOG.md has entry for 1.6.0 (dated 2026-04-07)
✓ npm pack includes all 9 skills, 18 prompts, 2 agents
✓ Git: clean tree, on main, tag v1.6.0 available
✓ Badge accuracy: SKILLS-9, PIPELINES-14, AGENTS-2 (all correct)
⚠ Version-tag history: v1.3.0 has no git tag (WARN)
Phase 2: Cross-Platform Links
✓ CLAUDE.md: 12/12 links valid
✓ AGENTS.md: 8/8 links valid
✓ GEMINI.md: 10/10 links valid
✓ Antigravity: 27/27 links valid
✓ Skill parity: 9/9 skills registered on all platforms
✓ Pipeline parity: 14/14 pipelines registered on all platforms
✓ Gemini extension: 9 skills, 2 agents, all paths valid
Phase 3: Setup Script Smoke Tests
✓ --claude: 11 items linked (2 agents + 9 skills), idempotent, uninstall clean
✓ --codex: 9 items linked (9 skills), idempotent, uninstall clean
✓ --gemini: agents + commands linked, idempotent, uninstall clean
✓ --antigravity: 27 items linked (9 skills + 18 workflows), idempotent, uninstall clean
====================================
Result: PASS — 0 errors, 1 warning
Ready for: pnpm release
When issues are found, append an actionable fix list:
====================================
Result: 3 issues found — fix before release
1. [Phase 1a] marketplace.json plugins[0].version is 1.5.0 (expected 1.6.0)
Fix: pnpm version:bump 1.6.0
2. [Phase 2c] release-validate missing from gemini-extension.json
Fix: Add skill entry to .gemini/extensions/devops/gemini-extension.json
3. [Phase 3b] --gemini setup exit code 1
Fix: Check .gemini/agents/ source directory exists
The user can run specific phases:
--all (default): Run all 3 phases--package: Phase 1 only (version, changelog, npm, git, badges)--links: Phase 2 only (cross-platform reference and parity validation)--smoke: Phase 3 only (setup script smoke tests)--quick: Phase 1 + 2 only (skip slow smoke tests — recommended for iteration)This skill can auto-fix:
version-bump.sh needs replacingThis skill CANNOT auto-fix (requires user judgment):
version-consistency.sh or setup.sh is missing, report the missing script and skip that check. Continue with remaining checks.npm pack --dry-run for package content check. If neither is available, skip Phase 1c and report as WARN.version-consistency.sh uses python3 for JSON parsing. If unavailable, parse JSON manually using grep and jq (if available) or skip with WARN.GEMINI.md deleted), report as FAIL for that platform and continue with others.gemini-extension.json or plugin.json is malformed JSON, report the parse error and skip that file's checks.skills/ or prompts/ but the setup script still tries to link it.metadata.version and plugins[0].version — they can diverge if only one is updated manually.(describe changes here) left by version-bump.sh scaffolding.This skill is read-only for Phases 1 and 2 — no files are modified.
Phase 3 creates a temporary directory via mktemp but does not modify the source repository. All symlinks and files are created inside the isolated sandbox. The trap EXIT ensures cleanup even on failure.
/tmp eventually. No source files are touched.git checkout -- <file> to revert if the fix is wrong.scripts/version-consistency.sh — Reused for version checks (Phase 1a)scripts/setup.sh — Tested in Phase 3prompts/shared/report-format.md — Output format referencepnpm or npm — For pack dry-run (Phase 1c)git — For state checks (Phase 1d, 1f)python3 — Used by version-consistency.sh for JSON parsingmktemp — For sandboxed smoke tests (Phase 3)references/repo-style-matrix.md (opens in a new tab)scripts/check_ai_tool_parity.sh (opens in a new tab)scripts/check_repo_style_coverage.sh (opens in a new tab)scripts/check_shell_portability.sh (opens in a new tab)scripts/render_release_artifact.sh (opens in a new tab)scripts/run_all_fixtures.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub qwedsazxc78/devops-ai-skill --plugin devops12 skills in this plugin
/gateway-api-migrationMigrates Kustomize modules using NGINX Ingress to Gateway API resources. Dual-target: default Traefik (GatewayClass=traefik), opt-in GKE Gateway (--gateway-class gke-l7-global-external-managed). Handles master/minion topology (common.ingress/ + common.service/) as the primary case, with standalone Ingress as a fallback. Performs cluster-side preflight (CRDs, GatewayClass, policy CRDs, Traefik version probe on Traefik targets), deterministic discovery/analysis via bundled scripts, two-phase conversion with atomic rollback from full file backups, semantic diff of path and listener coverage, plus an ingress2gateway second-opinion cross-check. Renders a comprehensive report covering per-hostname mapping, TLS map, annotation inventory (translated/stubbed/unknown), risk register, cutover checklist, verification commands, and rollback procedures. Never modifies the master source; performs idempotent in-place edits only to common.service/overlays/<env>/kustomization.yaml.
/helm-version-upgradeManages Helm chart version upgrades across Terraform+Helm platforms. Handles atomic 3-file updates with version discovery from ArtifactHub. Use when upgrading Helm charts, checking for outdated versions, or performing version consistency checks.
/ingress-controller-installGitOps-flavored Traefik Ingress Controller bootstrap, env addition, or chart upgrade in a Kustomize + ArgoCD repo. Operates exclusively on files under `common.traefik/` (base, overlays, argocd manifests). Never runs `helm install` or `helm upgrade` — those are ArgoCD's job. Plan-only: edits Kustomize files, emits the `git add` / commit / push commands, and the operator drives git. Validates coexistence with `ingress-nginx` via Kustomize-build inspection (no live cluster required). Use for new-cluster bootstrap, adding a new env overlay, or bumping the Traefik chart version.
/ingress-migration-advisorRead-only planner that inventories every Ingress in a Kustomize repo, scores each service on five migration-readiness dimensions, and recommends one of four paths per service (direct-gateway, two-step, swap-only, defer). Output is a Mermaid Gantt plan plus ready-to-paste Zeus commands. Critical traffic-tier services are vetoed to defer. Services already on Traefik Ingress (sourceClass=traefik) auto-route to direct-gateway. Never mutates the repo; produces docs/reports/ ingress-migration-advisor/<slug>/plan.md and state.yaml. Use for end-of-life planning (ingress-nginx EOL 2025), migration sequencing, or per-service path advisory. Requires docs/ingress-tier-map.yaml in the consumer repo.
/kustomize-resource-validationAuto-trigger skill that activates when any kustomization.yaml file is edited. Validates resource references, patch references, orphaned files, cross-environment consistency, build success, and generator configurations.
/retire-nginxRetire the nginx ingress controller and all nginx Ingress resources from a Kustomize + ArgoCD repo after Gateway API / Traefik migration is complete. Supports single-env (dev/stg/prd) or all-envs retirement in one command. Use this skill whenever: removing nginx after migration, cleaning up dead nginx Ingress resources from a kustomize base, decommissioning the ingress-nginx controller ArgoCD Application for an env, or retiring nginx from one environment without touching others. Safety-gated: aborts if no HTTPRoutes/Traefik Ingresses found (migration not done). Uses $patch: delete in the service overlay kustomization to exclude base nginx Ingress resources per-env — base files stay intact for other envs still using them.
Other plugins' skills for the same job