Skip to main content

deploy

Deploys with pre-flight checks and health verification. Triggers: deploy, deployment, ship, release, push to prod.

소스 정보

저장소
softspark/ai-toolkit
최근 소스 활동
2026년 9월 4일 09:52
감지된 SKILL.md 언어
영어
스타
179
포크
21

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
deploy
description
Deploys with pre-flight checks and health verification. Triggers: deploy, deployment, ship, release, push to prod.
effort
medium
disable-model-invocation
true
argument-hint
[environment]
allowed-tools
Bash, Read
hooks
{"PostToolUse":[{"matcher":"Bash","hooks":"[Truncated]"}]}
scripts
["scripts/pre_deploy_check.py"]
# Deploy Application $ARGUMENTS Deploy application to target environment. ## Project context - Docker config: !`cat docker-compose.yml 2>/dev/null || cat Dockerfile 2>/dev/null || echo "no-docker"` ## Usage ``` /deploy [environment] ``` ## What This Command Does 1. **Validates** deployment prerequisites 2. **Runs** pre-deployment checks 3. **Executes** deployment 4. **Verifies** deployment success ## Environments | Environment | Description | |-------------|-------------| | `dev` | Development environment | | `staging` | Staging/QA environment | | `prod` | Production environment | ## Pre-Deployment Checklist Run automated pre-deployment checks: ```bash python3 ${CLAUDE_SKILL_DIR}/scripts/pre_deploy_check.py [environment] ``` Returns JSON with pass/fail for each check: - `git_clean` - no uncommitted changes - `branch` - on main/master for production - `docker` - services running (if applicable) - `env_file` - .env or .env.$ENV exists - `build_artifacts` - dist/build present - `tests_ran` - test result artifacts found Manual verification: - [ ] Tests passing - [ ] Build successful - [ ] Environment variables set - [ ] Secrets configured - [ ] Database migrations ready - [ ] Rollback plan documented ## Deployment Strategies | Strategy | Use Case | |----------|----------| | Rolling | Zero-downtime, gradual | | Blue-Green | Instant switch, easy rollback | | Canary | Risk mitigation, gradual traffic | | Recreate | Simple, allows downtime | ## Output Format ```markdown ## Deployment Report ### Status: Success / Failed ### Details - **Environment**: [env] - **Version**: [version] - **Started**: [timestamp] - **Completed**: [timestamp] ### Steps 1. [Step 1] - Done 2. [Step 2] - Done 3. [Step 3] - Failed (if failed) ### Health Check - [endpoint]: [status] ### Rollback If needed: `[rollback command]` ``` ## PRODUCTION SAFETY - Always deploy to staging first - Verify health checks pass - Have rollback plan ready - Monitor after deployment ## MANDATORY: Documentation Update After deployment, update documentation: ### Required Updates | Change Type | Update | |-------------|--------| | New release | CHANGELOG, release notes | | Config changes | Deployment docs, procedures | | New features | User documentation | | Infrastructure | `kb/procedures/deployment-*.md` | ### Post-Deployment Checklist - [ ] Deployment successful - [ ] Health checks passing - [ ] **CHANGELOG updated** - [ ] **Deployment docs updated** - [ ] Release notes created (if applicable)
GitHub에서 보기