Community코딩 & 개발github.com

alfathafp/portofolio-web-design

프로덕션 배포를 준비합니다. 프로덕션에 배포할 때나 배포 전에 필요한 사항을 물을 때 사용하세요. 출시 전 체크리스트, 모니터링 설정, 단계적 롤아웃 계획, 롤백 전략이 필요할 때 사용하세요.

portofolio-web-design란 무엇인가요?

이 스킬은 개발자가 프로덕션 환경에 안전하게 배포할 수 있도록 지원하는 포괄적인 가이드입니다. 배포 전 코드 품질, 보안, 성능, 접근성, 인프라, 문서화 등 모든 측면을 점검하는 체크리스트를 제공합니다. 또한 피처 플래그 전략, 단계적 롤아웃 절차, 롤백 계획, 모니터링 및 관찰 가능성 설정 방법을 상세히 설명합니다. Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있으며, 특히 오류 예산 게이트와 롤백 결정 임계값 표를 통해 데이터 기반의 출시 결정을 내릴 수 있도록 돕습니다. 이 스킬은 배포를 되돌릴 수 있고(가역적), 관찰 가능하며, 점진적으로 진행되어야 한다는 원칙에 기반합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alfathafp/portofolio-web-design/tree/HEAD/.agents/skills/shipping-and-launch

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

출시 및 배포

개요

자신 있게 배포하세요. 목표는 단순히 배포하는 것이 아니라 모니터링을 갖추고, 롤백 계획을 준비하며, 성공의 기준을 명확히 이해한 상태에서 안전하게 배포하는 것입니다. 모든 출시는 되돌릴 수 있고, 관찰 가능하며, 점진적이어야 합니다.

사용 시기

  • 처음으로 프로덕션에 기능을 배포할 때
  • 사용자에게 중요한 변경 사항을 출시할 때
  • 데이터 또는 인프라를 마이그레이션할 때
  • 베타 또는 얼리 액세스 프로그램을 시작할 때
  • 위험을 수반하는 모든 배포 (모든 배포)

출시 전 체크리스트

코드 품질

  • 모든 테스트 통과 (단위, 통합, e2e)
  • 경고 없이 빌드 성공
  • 린트와 타입 체크 통과
  • 코드 리뷰 완료 및 승인
  • 출시 전에 해결해야 할 TODO 주석 없음
  • 프로덕션 코드에 console.log 디버깅문 없음
  • 예상되는 실패 모드를 처리하는 오류 핸들링

보안

  • 코드나 버전 관리에 비밀 정보 없음
  • 생태계의 의존성 감사(npm audit, pip-audit, cargo audit, ...)에서 중요 또는 심각한 취약점 없음
  • 모든 사용자 대상 엔드포인트에 입력 검증
  • 인증 및 권한 부여 확인 구현
  • 보안 헤더 구성 (CSP, HSTS 등)
  • 인증 엔드포인트에 속도 제한 적용
  • CORS가 특정 오리진(와일드카드 아님)으로 구성됨

성능

  • 핵심 웹 바이탈이 "양호" 임계값 이내
  • 중요한 경로에 N+1 쿼리 없음
  • 이미지 최적화 (압축, 반응형 크기, 지연 로딩)
  • 번들 크기가 예산 이내
  • 데이터베이스 쿼리에 적절한 인덱스 있음
  • 정적 자산 및 반복 쿼리에 캐싱 구성

접근성

  • 모든 대화형 요소에서 키보드 탐색 작동
  • 스크린 리더가 페이지 콘텐츠와 구조를 전달할 수 있음
  • 색상 대비가 WCAG 2.1 AA (텍스트 4.5:1) 충족
  • 모달 및 동적 콘텐츠에 대한 포커스 관리가 올바름
  • 오류 메시지가 설명적이며 양식 필드와 연결됨
  • axe-core 또는 Lighthouse에서 접근성 경고 없음

인프라

  • 프로덕션 환경 변수 설정
  • 데이터베이스 마이그레이션 적용됨 (또는 적용 준비 완료)
  • DNS 및 SSL 구성됨
  • 정적 자산을 위한 CDN 구성됨
  • 로깅 및 오류 보고 구성됨
  • 헬스 체크 엔드포인트 존재 및 응답

문서

  • 새로운 설정 요구 사항으로 README 업데이트
  • API 문서 최신 상태
  • 아키텍처 결정 사항에 대한 ADR 작성
  • 변경 로그 업데이트
  • 사용자 대상 문서 업데이트 (해당하는 경우)

피처 플래그 전략

배포와 출시를 분리하기 위해 피처 플래그 뒤에 배포하세요:

// 피처 플래그 확인
const flags = await getFeatureFlags(userId);

if (flags.taskSharing) {
  // 새 기능: 작업 공유
  return <TaskSharingPanel task={task} />;
}

// 기본값: 기존 동작
return null;

피처 플래그 수명 주기:

  1. 플래그 OFF로 배포 → 코드는 프로덕션에 있지만 비활성화
  2. 팀/베타에 대해 활성화 → 프로덕션 환경에서 내부 테스트
  3. 점진적 롤아웃 → 사용자의 5% → 25% → 50% → 100%
  4. 각 단계에서 모니터링 → 오류율, 성능, 사용자 피드백 확인
  5. 정리 → 전체 출시 후 플래그 및 죽은 코드 경로 제거

규칙:

  • 모든 피처 플래그에는 소유자와 만료 날짜가 있습니다.
  • 전체 출시 후 2주 이내에 플래그를 정리하세요.
  • 피처 플래그를 중첩하지 마세요. (지수적으로 조합이 증가)
  • CI에서 두 플래그 상태(켜짐 및 꺼짐)를 모두 테스트하세요.

단계적 롤아웃

롤아웃 순서

  1. 스테이징에 배포 └── 스테이징 환경에서 전체 테스트 스위트 실행 └── 중요 흐름 수동 스모크 테스트

  2. 프로덕션에 배포 (피처 플래그 OFF) └── 배포 성공 확인 (헬스 체크) └── 오류 모니터링 확인 (새로운 오류 없음)

  3. 팀에 대해 활성화 (내부 사용자에게 플래그 ON) └── 팀이 프로덕션에서 기능 사용 └── 24시간 모니터링 기간

  4. 카나리 롤아웃 (사용자 5%에게 플래그 ON) └── 오류율, 지연 시간, 사용자 행동 모니터링 └── 메트릭 비교: 카나리 vs. 기준 └── 24-48시간 모니터링 기간 └── 모든 임계값 통과 시에만 진행 (아래 표 참조)

  5. 점진적 증가 (25% -> 50% -> 100%) └── 각 단계에서 동일한 모니터링 └── 언제든지 이전 비율로 롤백 가능

  6. 전체 출시 (모든 사용자에게 플래그 ON) └── 1주일 동안 모니터링 └── 피처 플래그 정리

롤아웃 결정 임계값

각 단계에서 진행, 보류 또는 롤백을 결정하려면 다음 임계값을 사용하세요:

메트릭진행 (초록)보류 및 조사 (노란색)롤백 (빨간색)
오류율기준치의 10% 이내기준치보다 10-100% 높음기준치의 2배 초과
P95 지연 시간기준치의 20% 이내기준치보다 20-50% 높음기준치보다 50% 초과
클라이언트 JS 오류새로운 오류 유형 없음세션의 <0.1%에서 새 오류세션의 >0.1%에서 새 오류
비즈니스 메트릭중립 또는 긍정적5% 미만 감소 (노이즈일 수 있음)5% 초과 감소

롤백 시기

다음과 같은 경우 즉시 롤백하세요:

  • 오류율이 기준치의 2배 이상 증가
  • P95 지연 시간이 50% 이상 증가
  • 사용자 보고 문제 급증
  • 데이터 무결성 문제 감지
  • 보안 취약점 발견

모니터링 및 관찰 가능성

모니터링 항목

애플리케이션 메트릭: ├── 오류율 (전체 및 엔드포인트별) ├── 응답 시간 (p50, p95, p99) ├── 요청 볼륨 ├── 활성 사용자 └── 주요 비즈니스 메트릭 (전환율, 참여도)

인프라 메트릭: ├── CPU 및 메모리 사용률 ├── 데이터베이스 연결 풀 사용량 ├── 디스크 공간 ├── 네트워크 지연 시간 └── 대기열 깊이 (해당하는 경우)

클라이언트 메트릭: ├── 핵심 웹 바이탈 (LCP, INP, CLS) ├── JavaScript 오류 ├── 클라이언트 관점의 API 오류율 └── 페이지 로드 시간

오류 보고

// 오류 보고가 포함된 오류 경계 설정
class ErrorBoundary extends React.Component {
  state = { hasError: false };

  static getDerivedStateFromError() {
    return { hasError: true };
  }

  componentDidCatch(error: Error, info: React.ErrorInfo) {
    // 오류 추적 서비스에 보고
    reportError(error, {
      componentStack: info.componentStack,
      userId: getCurrentUser()?.id,
      page: window.location.pathname,
    });
  }

  render() {
    if (this.state.hasError) {
      return <ErrorFallback onRetry={() => this.setState({ hasError: false })} />;
    }
    return this.props.children;
  }
}

// 서버 측 오류 보고
app.use((err: Error, req: Request, res: Response, next: NextFunction) => {
  reportError(err, {
    method: req.method,
    url: req.url,
    userId: req.user?.id,
  });

  // 내부 정보를 사용자에게 노출하지 마세요
  res.status(500).json({
    error: { code: 'INTERNAL_ERROR', message: '문제가 발생했습니다' },
  });
});

출시 후 확인

출시 후 첫 1시간 동안:

  1. 헬스 엔드포인트가 200을 반환하는지 확인
  2. 오류 모니터링 대시보드 확인 (새로운 오류 유형 없음)
  3. 지연 시간 대시보드 확인 (회귀 없음)
  4. 중요한 사용자 흐름 수동 테스트
  5. 로그가 전송되고 읽을 수 있는지 확인
  6. 롤백 메커니즘 확인 (가능하면 드라이 런)

오류 예산 출시 게이트

서비스의 오류 예산(SLO가 실패를 허용하는 요청 또는 시간의 비율)은 배포가 안전한지 여부를 결정합니다. 객관적인 게이트로 사용하세요. 협상 대상이 아닙니다:

예산 잔여 > 20% → 정상적으로 배포, 면밀히 모니터링 예산 잔여 0–20% → 느린 롤아웃만 허용, 고위험 변경 없음 예산 소진 → 기능 작업 중단, 안정성에만 집중 예산 재설정 → 정상 속도 재개, 복구 수정 사항 통합

카나리 중 높은 소진율(기준치보다 빠르게 예산을 소비하는 경우)은 위의 롤아웃 임계값 표에서 보류 신호입니다. 오류율 상승과 동일하게 처리하세요.

롤백 전략

모든 배포는 실행 전에 롤백 계획이 필요합니다:

## [기능/릴리스]에 대한 롤백 계획

### 트리거 조건
- 오류율 > 기준치의 2배
- P95 지연 시간 > [X]ms
- [특정 문제]에 대한 사용자 보고

### 롤백 단계
1. 피처 플래그 비활성화 (해당하는 경우)
   또는
1. 이전 버전 배포: `git revert <커밋> && git push`
2. 롤백 확인: 헬스 체크, 오류 모니터링
3. 커뮤니케이션: 팀에 롤백 알림

### 데이터베이스 고려 사항
- 마이그레이션 [X]에는 롤백이 있습니다: <확인된 명령어 또는 런북 링크>
- 새 기능으로 삽입된 데이터: [보존 / 정리]

### 롤백 소요 시간
- 피처 플래그: < 1분
- 이전 버전 재배포: < 5분
- 데이터베이스 롤백: < 15분

참조

  • 이 체크리스트 전에 모든 변경 사항이 통과해야 하는 프로젝트 전체 완료 정의는 ../../references/definition-of-done.md를 참조하세요.
  • 보안 출시 전 점검은 ../../references/security-checklist.md를 참조하세요.
  • 성능 출시 전 체크리스트는 ../../references/performance-checklist.md를 참조하세요.
  • 출시 전 접근성 확인은 ../../references/accessibility-checklist.md를 참조하세요.
  • 알림 규칙 및 SLO 연동 임계값은 observability-and-instrumentation을 참조하세요.

일반적인 합리화

합리화현실
"스테이징에서는 잘 작동하니까 프로덕션에서도 잘 작동할 거야"프로덕션은 데이터, 트래픽 패턴, 엣지 케이스가 다릅니다. 배포 후 모니터링하세요.
"이 기능에는 피처 플래그가 필요 없어"모든 기능은 킬 스위치의 혜택을 받습니다. "간단한" 변경도 문제를 일으킬 수 있습니다.
"모니터링은 오버헤드야"모니터링이 없으면 대시보드 대신 사용자 불만으로 문제를 발견하게 됩니다.
"나중에 모니터링을 추가할게"출시 전에 추가하세요. 볼 수 없는 것은 디버깅할 수 없습니다.
"롤백은 실패를 인정하는 거야"롤백은 책임 있는 엔지니어링입니다. 망가진 기능을 출시하는 것이 실패입니다.
"오류율이 괜찮아 보이니까 계속 배포하자"현재 오류율뿐만 아니라 소진율도 확인하세요. 기준치보다 빠르게 예산을 소비하는 것은 개별 임계값이 초록색이어도 보류 신호입니다.

위험 신호

  • 롤백 계획 없이 배포
  • 프로덕션에 모니터링 또는 오류 보고 없음
  • 빅뱅 출시 (한 번에 모두, 스테이징 없음)
  • 만료일이나 소유자가 없는 피처 플래그
  • 첫 1시간 동안 배포를 모니터링하는 사람 없음
  • 코드가 아닌 기억에 의존하는 프로덕션 환경 구성
  • "금요일 오후니까 출시하자"
  • 오류 예산이 소진되었지만 기능 작업이 계속됨

확인

배포 전:

  • 출시 전 체크리스트 완료 (모든 섹션 초록색)
  • 피처 플래그 구성됨 (해당하는 경우)
  • 롤백 계획 문서화
  • 모니터링 대시보드 설정
  • 팀에 배포 알림

배포 후:

  • 헬스 체크가 200 반환
  • 오류율 정상
  • 지연 시간 정상
  • 중요한 사용자 흐름 작동
  • 로그가 전송 중
  • 롤백 테스트 완료 또는 준비 확인

배포된 모든 서비스:

  • 오류 예산 정책 수립: 예산이 20% 미만으로 떨어지고 소진되었을 때 취해야 할 조치를 알고 있음

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

alfathafp/portofolio-web-design

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

alfathafp/portofolio-web-design

Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.

alfathafp/portofolio-web-design

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

alfathafp/portofolio-web-design

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.

alfathafp/portofolio-web-design

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

alfathafp/portofolio-web-design

Establishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.

alfathafp/portofolio-web-design

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

alfathafp/portofolio-web-design

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.

alfathafp/portofolio-web-design

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

alfathafp/portofolio-web-design

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.

alfathafp/portofolio-web-design

Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

alfathafp/portofolio-web-design

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

alfathafp/portofolio-web-design

Records decisions and documentation. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

alfathafp/portofolio-web-design

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production auth, security-sensitive logic, a high-stakes migration, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.

alfathafp/portofolio-web-design

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

alfathafp/portofolio-web-design

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

alfathafp/portofolio-web-design

Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.

alfathafp/portofolio-web-design

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog.

alfathafp/portofolio-web-design

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or "stress-test my plan".

alfathafp/portofolio-web-design

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

관련 스킬