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

deploy-agent

하는 일

이 스킬은 Bindu 에이전트를 로컬, 스테이징 또는 운영 환경에 배포하는 과정을 안내하며, 중간에 안전 점검을 수행합니다. Bindu로 에이전트를 만들고 배포해야 하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Bindu 에이전트를 로컬, 스테이징 또는 운영 환경에 배포할 준비가 되었을 때.
  • ✓배포 후 상태 점검을 실행하고 싶을 때.
  • ✓무엇을 배포했는지 기록을 남기고, 배포가 실패하면 되돌릴 방법이 필요한 경우.

스킬 링크

https://github.com/GetBindu/Bindu/blob/main/.agents/skills/deploy-agent/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“Bindu 에이전트를 스테이징에 배포하고 점검을 실행한 뒤, 정상인지 알려 주세요.”

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

작동 방식

이 스킬은 먼저 환경 설정을 확인하고 테스트와 배포 전 점검을 실행합니다. 그다음 에이전트를 배포하고, 상태 점검을 실행한 후 배포 기록을 작성합니다.

기술 내용 (원본 SKILL.md)

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

Deploy Agent Skill

Overview

Deploy a Bindu agent to a target environment (local, staging, production) with comprehensive safety checks.

Inputs

  • Environment name (local, staging, production)
  • Agent configuration file path
  • Optional: deployment strategy (rolling, blue-green, canary)

Safety

  • Never deploy without passing tests
  • Verify environment variables before deployment
  • Run health checks after deployment
  • Generate deployment artifacts
  • Support rollback if deployment fails

Execution Contract

  1. Validate environment configuration
  2. Run pre-deployment checks
  3. Apply database migrations
  4. Deploy agent
  5. Verify deployment health
  6. Generate deployment record

Steps

1. Pre-Deployment Validation

# Check environment
ENVIRONMENT=$1
if [ -z "$ENVIRONMENT" ]; then
    echo "Error: Environment required (local, staging, production)"
    exit 1
fi

# Validate tests pass
echo "==> Running tests..."
uv run pytest || { echo "❌ Tests failed"; exit 1; }

# Validate pre-commit hooks
echo "==> Running pre-commit hooks..."
uv run pre-commit run --all-files || { echo "❌ Pre-commit hooks failed"; exit 1; }

# Check for uncommitted changes
if [ -n "$(git status --porcelain)" ]; then
    echo "⚠️ Warning: Uncommitted changes detected"
    read -p "Continue anyway? (y/n) " -n 1 -r
    echo
    if [[ ! $REPLY =~ ^[Yy]$ ]]; then
        exit 1
    fi
fi

2. Environment Configuration

# Load environment-specific config
case $ENVIRONMENT in
    local)
        export STORAGE_BACKEND=memory
        export SCHEDULER_BACKEND=memory
        export PORT=3773
        ;;
    staging)
        export STORAGE_BACKEND=postgres
        export SCHEDULER_BACKEND=redis
        export DATABASE_URL=$STAGING_DATABASE_URL
        export REDIS_URL=$STAGING_REDIS_URL
        export PORT=3773
        ;;
    production)
        export STORAGE_BACKEND=postgres
        export SCHEDULER_BACKEND=redis
        export DATABASE_URL=$PROD_DATABASE_URL
        export REDIS_URL=$PROD_REDIS_URL
        export PORT=8080
        ;;
    *)
        echo "Error: Unknown environment $ENVIRONMENT"
        exit 1
        ;;
esac

# Verify required variables
required_vars=("STORAGE_BACKEND" "SCHEDULER_BACKEND")
for var in "${required_vars[@]}"; do
    if [ -z "${!var}" ]; then
        echo "Error: $var not set"
        exit 1
    fi
done

3. Database Migrations

# Run migrations for postgres backend
if [ "$STORAGE_BACKEND" = "postgres" ]; then
    echo "==> Running database migrations..."

    # Check current migration
    CURRENT=$(uv run alembic current 2>&1)
    echo "Current migration: $CURRENT"

    # Upgrade to head
    uv run alembic upgrade head || { echo "❌ Migration failed"; exit 1; }

    # Verify migration
    NEW_CURRENT=$(uv run alembic current 2>&1)
    echo "New migration: $NEW_CURRENT"
fi

4. Deploy Agent

# Local deployment
if [ "$ENVIRONMENT" = "local" ]; then
    echo "==> Starting local agent with tunnel..."
    uv run bindu serve --launch &
    AGENT_PID=$!
    echo "Agent PID: $AGENT_PID"
    sleep 5
fi

# Staging/Production deployment
if [ "$ENVIRONMENT" != "local" ]; then
    echo "==> Deploying to $ENVIRONMENT..."

    # Docker deployment
    if command -v docker &> /dev/null; then
        # Build image
        docker build -t bindu-agent:$ENVIRONMENT .

        # Stop old container
        docker stop bindu-agent-$ENVIRONMENT 2>/dev/null || true
        docker rm bindu-agent-$ENVIRONMENT 2>/dev/null || true

        # Start new container
        docker run -d \
            --name bindu-agent-$ENVIRONMENT \
            -p $PORT:8080 \
            -e DATABASE_URL="$DATABASE_URL" \
            -e REDIS_URL="$REDIS_URL" \
            -e STORAGE_BACKEND="$STORAGE_BACKEND" \
            -e SCHEDULER_BACKEND="$SCHEDULER_BACKEND" \
            bindu-agent:$ENVIRONMENT

        CONTAINER_ID=$(docker ps -qf "name=bindu-agent-$ENVIRONMENT")
        echo "Container ID: $CONTAINER_ID"
    else
        # Direct deployment
        uv run bindu serve &
        AGENT_PID=$!
        echo "Agent PID: $AGENT_PID"
    fi

    sleep 10
fi

5. Health Verification

# Determine health URL
if [ "$ENVIRONMENT" = "local" ]; then
    HEALTH_URL="http://localhost:3773/health"
else
    HEALTH_URL="http://localhost:$PORT/health"
fi

# Wait for agent to be ready
echo "==> Waiting for agent to be ready..."
MAX_RETRIES=30
RETRY_COUNT=0

while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
    
자주 묻는 질문

테스트가 실패하면 배포하나요?

아니요. 이 스킬은 테스트를 통과하지 않으면 배포를 진행하지 않아야 한다고 설명합니다.

어떤 배포 전략을 언급하나요?

롤링, 블루-그린, 카나리 방식을 선택할 수 있는 옵션으로 언급합니다.

배포가 실패하면 어떻게 되나요?

배포가 성공하지 못하면 롤백을 지원한다고 이 스킬은 설명합니다.

상세 정보

작성자의 원본 설명

Deploy Bindu agents to various environments with safety checks and verification

repo: GetBindu/Bindu

인기도

GitHub 스타
10k
순위
#12033
라이선스
—
업데이트
2026. 9. 6.

이 스킬이 유용한가요?

0

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

댓글

  • …

비슷한 스킬