본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)48k · #5489

pre-ship-gate

하는 일

배포 도구의 성공 메시지를 그대로 믿지 않고, 소프트웨어 업데이트가 운영 환경에 실제로 적용되었는지 확인합니다. 사용자가 올바른 버전을 쓰고 있는지 보장합니다.

사용하는 경우

  • ✓새 버전을 운영 환경에 배포하려고 할 때.
  • ✓업데이트가 끝났는데도 사용자가 계속 문제를 겪을 때.
  • ✓배포 전에 설정과 의존성이 올바른지 확인해야 할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pre-ship-gate/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pre-ship-gate/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“운영 환경에서 실행 중인 버전이 제가 배포하려던 버전과 같은지 확인해 주세요. 제가 배포하려던 버전은 커밋 abc123입니다.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

먼저 안전한 배포를 위한 모든 필수 조건(데이터베이스 마이그레이션 준비, 기능 플래그 활성화 등)이 있는지 확인합니다. 배포가 끝나면 실제 시스템에 직접 확인해 어떤 버전이 실제로 활성화되어 있는지 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Pre-Ship Gate

Overview

Most bad deploys do not fail loudly. The pipeline goes green, the CLI prints "deployed", and the old or broken version is still what users hit. This skill is the gate you run right before a production deploy and right after, so an agent stops trusting deploy output and starts confirming what is actually live. It exists because "the deploy command exited 0" and "the new version is serving traffic" are two different facts, and agents routinely confuse them.

When to Use This Skill

  • Use before running any command that pushes to a production or staging environment.
  • Use when an agent is about to report "shipped", "deployed", or "live".
  • Use when a deploy reported success but users still see the old behavior.
  • Use when a release involves database migrations, feature flags, or a staged rollout.

How It Works

The gate has three phases. Do not skip to phase 3.

Phase 1: Pre-flight (before the deploy runs)

Walk the silent failure catalog. These are the modes that let a deploy "succeed" while production stays broken. For each one, confirm it or flag it. Do not assume.

  • Migrations: Are schema migrations part of this release, and will they run against the target before the new code serves traffic? A deploy that ships code expecting a column that does not exist yet fails silently for users, not for the pipeline.
  • Feature flags: Is the flag that gates this change actually enabled in the target environment, not just in dev? Shipped code behind an off flag looks like a no-op deploy.
  • Build cache / stale assets: Could a cached build or CDN layer serve the previous bundle after deploy? Confirm the artifact hash or asset fingerprint changed.
  • Release pointer: Does the deploy update the symlink, active revision, or traffic pointer, or does it only upload the new build? Uploading is not releasing.
  • Staged rollout / canary: If traffic is staged, is it stuck at 0 percent or waiting on a manual promote? A canary that never promotes is not a deploy.
  • Env and secrets: Are the env vars and secrets the new code needs present in the target, not just locally? Missing config surfaces as runtime errors, not deploy errors.

Phase 2: Run the deploy

The human or the deploy tooling runs the actual command. This skill does not execute the production deploy itself. It gates it.

Phase 3: Verify live (before saying "shipped")

Confirm the running system, not the deploy log.

  • Fetch the live version or revision identifier from the running service and compare it to the one you intended to ship.
  • Hit a health or status endpoint and confirm it returns the expected version, not just HTTP 200.
  • Tail production logs for the first errors after cutover.
  • Only after the live revision matches the intended revision may you report "shipped". If it does not match, report the mismatch, not success.

Examples

Example 1: Verifying the live revision instead of trusting the deploy log

# You intended to ship this commit
INTENDED="$(git rev-parse --short HEAD)"

# Ask the running service what it is actually serving
LIVE="$(curl -fsS https://your-service.example.com/health | jq -r '.revision')"

if [ "$INTENDED" = "$LIVE" ]; then
  echo "Live revision $LIVE matches intended $INTENDED: verified shipped."
else
  echo "MISMATCH: intended $INTENDED but live is $LIVE. Do not report shipped."
fi

Example 2: Pre-flight verdict format an agent can emit

PRE-SHIP GATE, verdict: HOLD

- Migrations: 1 pending (add_users_status_col): NOT yet applied to prod. BLOCK.
- Feature flags: new_checkout flag is OFF in prod. Enabling required post-deploy.
- Build assets: new bundle hash confirmed (a1b2c3 != previous 9f8e7d). OK.
- Release pointer: deploy updates active symlink. OK.
- Rollout: canary at 10%, manual promote required. NOTE.
- Env/secrets: STRIPE_KEY present in prod. OK.

Reason for HOLD: run migration add_users_status_col before cutover, or the
new code will 500 on /orders.

Best Practices

  • ✅ Treat "the command exited 0" and "the new version is live" as separate facts, and verify the second one.
  • ✅ Emit an explicit verdict (SHIP / HOLD) with the failing item named, not a vague "looks good".
  • ✅ Compare a live revision identifier against the intended one after every deploy.
  • ✅ Name the specific silent failure mode you are worried about, so a human can override with context.
  • ❌ Do not report "shipped" from deploy output alone.

…

자주 묻는 질문

배포의 ‘성공’ 메시지를 왜 믿으면 안 되나요?

배포 도구가 성공적으로 끝났다고 말해도, 사용자에게는 이전의 또는 깨진 버전이 여전히 보일 수 있기 때문입니다. 이 시스템은 실제로 실행 중인 것을 확인합니다.

‘침묵 실패’란 무엇인가요?

배포가 성공처럼 보이지만 사용자에게는 여전히 소프트웨어가 깨져 있는 문제입니다. 예를 들어 새 코드가 플래그로 활성화되지 않았거나 데이터베이스 마이그레이션이 적용되지 않은 경우입니다.

이 시스템이 배포를 대신 해 주나요?

아니요, 배포를 실행하지 않습니다. 배포 전후에 모든 것을 점검해 배포가 순조롭게 되었는지 확인하는 관문 역할을 합니다.

상세 정보

작성자의 원본 설명

A ship gate that runs before any production deploy: checks the silent failure modes that make a deploy 'succeed' while prod stays broken, then verifies the live revision instead of trusting deploy output.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5489
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬