Community코딩 & 개발github.com

Deploy to Vercel

애플리케이션과 웹사이트를 Vercel에 배포합니다. 사용자가 '내 앱 배포', '배포하고 링크 줘', '라이브로 푸시', '미리보기 배포 생성'과 같은 배포 작업을 요청할 때 사용하세요.

Deploy to Vercel란 무엇인가요?

이 스킬은 사용자가 Vercel에 프로젝트를 배포할 수 있도록 지원하는 AI 에이전트 스킬입니다. 사용자가 '내 앱 배포', '배포 링크 줘' 등의 요청을 할 때 활성화됩니다. 이 스킬은 프로젝트가 이미 Vercel에 연결되어 있는지, Git 원격 저장소가 있는지, Vercel CLI가 설치 및 인증되었는지 등 네 가지 상태를 확인한 후 최적의 배포 방법을 선택합니다. 연결되고 Git 원격이 있는 경우 Git 푸시를 통해 배포하고, 연결만 되어 있는 경우 CLI로 직접 배포하며, 연결되지 않은 경우 먼저 연결한 후 배포합니다. CLI 인증이 불가능한 샌드박스 환경(claude.ai, Codex)에서는 인증 없는 대체 스크립트를 사용하여 프리뷰 URL과 클레임 URL을 제공합니다. 이 스킬은 Claude Code, Cursor, Codex 등 다양한 AI 에이전트 환경에서 작동하며, 사용자에게 항상 최종 배포 URL을 표시하고 프리뷰 배포를 기본으로 합니다.

지원 대상✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/alfathafp/portofolio-web-design/tree/HEAD/.agents/skills/deploy-to-vercel

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

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

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

문서

Vercel에 배포

모든 프로젝트를 Vercel에 배포합니다. 사용자가 명시적으로 프로덕션을 요청하지 않는 한 항상 프리뷰로 배포하세요.

목표는 사용자의 프로젝트를 Git 푸시 배포와 함께 Vercel에 연결하는 최상의 장기 설정으로 이끄는 것입니다. 아래의 모든 방법은 사용자를 이 상태에 더 가깝게 이동시키려고 합니다.

1단계: 프로젝트 상태 수집

사용할 방법을 결정하기 전에 네 가지 검사를 모두 실행하세요.

# 1. Git 원격 저장소 확인
git remote get-url origin 2>/dev/null

# 2. Vercel 프로젝트에 로컬로 연결되어 있는지 확인 (두 파일 중 하나라도 있으면 연결됨)
cat .vercel/project.json 2>/dev/null || cat .vercel/repo.json 2>/dev/null

# 3. Vercel CLI가 설치 및 인증되었는지 확인
vercel whoami 2>/dev/null

# 4. 사용 가능한 팀 목록 확인 (인증된 경우)
vercel teams list --format json 2>/dev/null

팀 선택

사용자가 여러 팀에 속해 있는 경우, 사용 가능한 모든 팀 슬러그를 글머리 기호 목록으로 표시하고 어느 팀에 배포할지 물어보세요. 사용자가 팀을 선택하면 추가 확인 없이 즉시 다음 단계로 진행하세요.

이후 모든 CLI 명령(vercel deploy, vercel link, vercel inspect 등)에 --scope를 통해 팀 슬러그를 전달하세요.

vercel deploy [path] -y --no-wait --scope <team-slug>

프로젝트가 이미 연결된 경우 (.vercel/project.json 또는 .vercel/repo.json이 존재하는 경우), 해당 파일의 orgId가 팀을 결정하므로 다시 물을 필요가 없습니다. 팀이 하나뿐이거나 개인 계정만 있는 경우 프롬프트를 건너뛰고 직접 사용하세요.

.vercel/ 디렉토리에 관하여: 연결된 프로젝트는 다음 중 하나를 가집니다.

  • .vercel/project.json — vercel link에 의해 생성됨 (단일 프로젝트 연결). projectId와 orgId를 포함합니다.
  • .vercel/repo.json — vercel link --repo에 의해 생성됨 (저장소 기반 연결). orgId, remoteName, 그리고 디렉토리를 Vercel 프로젝트 ID에 매핑하는 projects 배열을 포함합니다.

두 파일 중 하나라도 있으면 프로젝트가 연결된 것입니다. 둘 다 확인하세요.

연결되지 않은 디렉토리에서 상태를 감지하기 위해 vercel project inspect, vercel ls 또는 vercel link를 사용하지 마세요. .vercel/ 설정이 없으면 대화형 프롬프트가 표시되거나 (--yes 사용 시 자동으로 연결되어 부작용 발생) vercel whoami만 어디서든 안전하게 실행할 수 있습니다.

2단계: 배포 방법 선택

연결됨 (.vercel/ 존재) + Git 원격 있음 → Git 푸시

이상적인 상태입니다. 프로젝트가 연결되어 있고 Git 통합이 활성화되어 있습니다.

  1. 푸시 전에 사용자에게 물어보세요. 명시적 승인 없이 푸시하지 마세요.

    이 프로젝트는 Git을 통해 Vercel에 연결되어 있습니다. 변경 사항을 커밋하고 푸시하여
    배포를 트리거할 수 있습니다. 진행할까요?
    
  2. 커밋 및 푸시:

    git add .
    git commit -m "deploy: <변경 사항 설명>"
    git push
    

    Vercel이 푸시에서 자동으로 빌드합니다. 프로덕션 브랜치(보통 main)가 아닌 브랜치는 프리뷰 배포를, 프로덕션 브랜치는 프로덕션 배포를 얻습니다.

  3. 프리뷰 URL 검색. CLI가 인증된 경우:

    sleep 5
    vercel ls --format json
    

    JSON 출력에는 deployments 배열이 있습니다. 최신 항목의 url 필드가 프리뷰 URL입니다.

    CLI가 인증되지 않은 경우, 사용자에게 Vercel 대시보드 또는 Git 제공업체의 커밋 상태 확인에서 프리뷰 URL을 확인하라고 알리세요.


연결됨 (.vercel/ 존재) + Git 원격 없음 → vercel deploy

프로젝트는 연결되어 있지만 Git 저장소가 없습니다. CLI로 직접 배포하세요.

vercel deploy [path] -y --no-wait

--no-wait를 사용하면 빌드가 완료될 때까지 기다리지 않고 CLI가 즉시 배포 URL을 반환합니다 (빌드는 시간이 걸릴 수 있음). 그런 다음 다음 명령으로 배포 상태를 확인하세요.

vercel inspect <deployment-url>

프로덕션 배포의 경우 (사용자가 명시적으로 요청한 경우에만):

vercel deploy [path] --prod -y --no-wait

연결되지 않음 + CLI 인증됨 → 먼저 연결, 그 다음 배포

CLI는 작동하지만 프로젝트가 아직 연결되지 않았습니다. 사용자를 최상의 상태로 만들 기회입니다.

  1. 사용자에게 어느 팀에 배포할지 물어보세요. 1단계의 팀 슬러그를 글머리 기호 목록으로 표시하세요. 팀이 하나뿐이거나 개인 계정만 있는 경우 이 단계를 건너뛰세요.

  2. 팀이 선택되면 바로 연결로 진행하세요. 무슨 일이 일어날지 사용자에게 알리되 별도의 확인을 요청하지 마세요.

    이 프로젝트를 Vercel의 <team name>에 연결합니다. 이렇게 하면 Vercel 프로젝트가 생성되어
    배포할 수 있고 향후 Git 푸시 시 자동 배포가 활성화됩니다.
    
  3. Git 원격이 있는 경우, 선택한 팀 범위로 저장소 기반 연결을 사용하세요.

    vercel link --repo --scope <team-slug>
    

    이 명령은 Git 원격 URL을 읽고 해당 저장소에서 배포하는 기존 Vercel 프로젝트와 일치시킵니다. .vercel/repo.json을 생성합니다. 이 방법은 vercel link (--repo 없음)보다 훨씬 안정적입니다. 후자는 디렉토리 이름으로 일치시키려고 하며 로컬 폴더와 Vercel 프로젝트 이름이 다를 때 종종 실패합니다.

    Git 원격이 없는 경우, 표준 연결로 대체하세요.

    vercel link --scope <team-slug>
    

    그러면 사용자에게 프로젝트를 선택하거나 생성하라는 메시지가 표시됩니다. .vercel/project.json을 생성합니다.

  4. 그런 다음 사용 가능한 최상의 방법으로 배포하세요.

    • Git 원격이 있는 경우 → 커밋 및 푸시 (위의 Git 푸시 방법 참조)
    • Git 원격이 없는 경우 → vercel deploy [path] -y --no-wait --scope <team-slug>, 그런 다음 vercel inspect <url>로 상태 확인

연결되지 않음 + CLI 인증되지 않음 → 설치, 인증, 연결, 배포

Vercel CLI가 전혀 설정되지 않았습니다.

  1. CLI 설치 (아직 설치되지 않은 경우):

    npm install -g vercel
    
  2. 인증:

    vercel login
    

    사용자가 브라우저에서 인증을 완료합니다. 로그인이 불가능한 비대화형 환경에서 실행 중인 경우 인증 없는 대체 단계로 건너뛰세요.

  3. 어느 팀에 배포할지 물어보세요 — vercel teams list --format json의 팀 슬러그를 글머리 기호 목록으로 표시하세요. 팀이 하나뿐이거나 개인 계정만 있는 경우 건너뛰세요. 선택되면 즉시 진행하세요.

  4. 선택한 팀 범위로 프로젝트 연결 (Git 원격이 있으면 --repo 사용, 아니면 일반 vercel link 사용):

    vercel link --repo --scope <team-slug>   # Git 원격이 있는 경우
    vercel link --scope <team-slug>          # Git 원격이 없는 경우
    
  5. 가능한 최상의 방법으로 배포 (원격이 있으면 Git 푸시, 아니면 vercel deploy -y --no-wait --scope <team-slug> 후 vercel inspect <url>로 상태 확인).


인증 없는 대체 — claude.ai 샌드박스

사용 시기: claude.ai 샌드박스에서 CLI를 설치하거나 인증할 수 없는 최후의 수단입니다. 인증이 필요하지 않으며 프리뷰 URL (라이브 사이트)과 클레임 URL (Vercel 계정으로 전송)을 반환합니다.

bash /mnt/skills/user/deploy-to-vercel/resources/deploy.sh [path]

인수:

  • path - 배포할 디렉토리 또는 .tgz 파일 (기본값: 현재 디렉토리)

예시:

# 현재 디렉토리 배포
bash /mnt/skills/user/deploy-to-vercel/resources/deploy.sh

# 특정 프로젝트 배포
bash /mnt/skills/user/deploy-to-vercel/resources/deploy.sh /path/to/project

# 기존 타볼 배포
bash /mnt/skills/user/deploy-to-vercel/resources/deploy.sh /path/to/project.tgz

스크립트는 package.json에서 프레임워크를 자동 감지하고, 프로젝트를 패키징하며 (node_modules, .git, .env 제외), 업로드하고 빌드가 완료될 때까지 기다립니다.

사용자에게 알리기: "배포가 준비되었습니다: [previewUrl]. 배포를 관리하려면 [claimUrl]에서 클레임하세요."


인증 없는 대체 — Codex 샌드박스

사용 시기: CLI가 인증되지 않을 수 있는 Codex 샌드박스에서 사용합니다. Codex는 기본적으로 샌드박스 환경에서 실행됩니다 — 먼저 CLI를 시도하고, 인증이 실패하면 배포 스크립트로 대체하세요.

  1. Vercel CLI가 설치되었는지 확인 (이 확인에는 에스컬레이션이 필요하지 않음):

    command -v vercel
    
  2. vercel이 설치된 경우, CLI로 배포 시도:

    vercel deploy [path] -y --no-wait
    
  3. vercel이 설치되지 않았거나 CLI가 "기존 자격 증명 없음" 오류로 실패한 경우, 대체 스크립트 사용:

    skill_dir="<path-to-skill>"
    
    # 현재 디렉토리 배포
    bash "$skill_dir/resources/deploy-codex.sh"
    
    # 특정 프로젝트 배포
    bash "$skill_dir/resources/deploy-codex.sh" /path/to/project
    
    # 기존 타볼 배포
    bash "$skill_dir/resources/deploy-codex.sh" /path/to/project.tgz
    

스크립트는 프레임워크 감지, 패키징 및 배포를 처리합니다. 빌드가 완료될 때까지 기다렸다가 previewUrl과 claimUrl이 포함된 JSON을 반환합니다.

사용자에게 알리기: "배포가 준비되었습니다: [previewUrl]. 배포를 관리하려면 [claimUrl]에서 클레임하세요."

에스컬레이션된 네트워크 액세스: 샌드박스가 네트워크 호출을 차단하는 경우에만 실제 배포 명령을 에스컬레이션하세요 (sandbox_permissions=require_escalated). command -v vercel 확인은 에스컬레이션하지 마세요.


에이전트별 참고 사항

Claude Code / 터미널 기반 에이전트

셸에 대한 전체 액세스 권한이 있습니다. /mnt/skills/ 경로를 사용하지 마세요. 위의 결정 흐름을 따라 CLI를 직접 사용하세요.

인증 없는 대체의 경우, 스킬이 설치된 위치에서 배포 스크립트를 실행하세요.

bash ~/.claude/skills/deploy-to-vercel/resources/deploy.sh [path]

경로는 사용자가 스킬을 설치한 위치에 따라 다를 수 있습니다.

샌드박스 환경 (claude.ai)

vercel login이나 git push를 실행할 수 없을 가능성이 높습니다. 인증 없는 대체 — claude.ai 샌드박스로 바로 이동하세요.

Codex

Codex는 샌드박스에서 실행됩니다. 먼저 CLI를 사용할 수 있는지 확인한 다음, 배포 스크립트로 대체하세요. 인증 없는 대체 — Codex 샌드박스로 이동하세요.


출력

항상 사용자에게 배포 URL을 표시하세요.

  • Git 푸시: vercel ls --format json을 사용하여 프리뷰 URL을 찾으세요. CLI가 인증되지 않은 경우 사용자에게 Vercel 대시보드 또는 커밋 상태 확인을 확인하라고 알리세요.
  • CLI 배포: vercel deploy --no-wait가 반환한 URL을 표시하세요. vercel inspect <url>을 사용하여 빌드 상태를 확인하고 사용자에게 보고하세요.
  • 인증 없는 대체: 프리뷰 URL과 클레임 URL을 모두 표시하세요.
    배포 성공!
    
    프리뷰 URL: https://my-app-abc123.vercel.app
    클레임 URL: https://vercel.com/claim-deployment?code=...
    
    프리뷰 URL에서 사이트를 확인하세요.
    이 배포를 Vercel 계정으로 전송하려면 클레임 URL을 방문하세요.
    

배포된 URL을 curl 또는 fetch하여 작동 여부를 확인하지 마세요. 링크만 반환하세요.


문제 해결

네트워크 이그레스 오류 (claude.ai)

claude.ai의 네트워크 제한으로 인해 배포가 실패하면 사용자에게 알리세요.

네트워크 제한으로 인해 배포에 실패했습니다. 해결 방법:

1. https://claude.ai/settings/capabilities로 이동
2. 허용된 도메인에 *.vercel.com 추가
3. 다시 배포 시도

에스컬레이션된 네트워크 액세스 (Codex / 샌드박스 환경)

샌드박스 환경에서 네트워크 문제 (시간 초과, DNS 오류, 연결 재설정)로 인해 배포가 실패하면 에스컬레이션된 권한으로 다시 실행하세요 (sandbox_permissions=require_escalated). 초기 CLI 가용성 확인은 에스컬레이션하지 말고 실제 배포 명령만 에스컬레이션하세요.

사용자에게 보내는 예시 안내:

배포를 위해 Vercel에 액세스하려면 에스컬레이션된 네트워크 권한이 필요합니다.
에스컬레이션된 권한으로 명령을 다시 실행할 수 있습니다. 진행할까요?

CLI 인증 실패

vercel login 또는 vercel deploy가 인증 오류로 실패하면 인증 없는 배포 스크립트로 대체하세요 (환경에 따라 claude.ai 또는 Codex 변형).

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

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

Delivers changes incrementally in thin, verifiable slices. Use when implementing any feature or change that touches more than one file, or when picking up the next task from a plan. Use when rolling a change out behind a feature flag, when you're about to write a large amount of code at once, or when a task feels too big to land in one step.

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.

관련 스킬