Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

staging-validation-phase

БесплатноБез исполняемых скриптовНе проверен

Guides manual staging validation before production deployment through smoke tests, critical user flow testing, data migration verification, and rollback…

marcusgollот marcusgoll★ 97 звёзд на GitHub

Об этом скилле

Validate staging deployment before promoting to production through systematic manual testing, automated smoke tests, data migration verification, and rollback capability testing. Ensures production deployments are safe, functional, and meet quality standards.

This skill orchestrates the staging validation phase, which occurs after /ship-staging and before /ship-prod in the staging-prod deployment workflow.

Core responsibilities:

  • Run automated smoke tests on staging environment
  • Test critical user flows manually (authentication, core features, payments)
  • Verify data migrations executed successfully
  • Test rollback capability (actual rollback + roll-forward)
  • Document sign-off decision (approve/reject with justification)
  • Update state.yaml with validation results

Inputs: Staging deployment (URL, deployment ID, migration results) Outputs: Validation report, sign-off decision, state.yaml update Expected duration: 30-60 minutes

Execute staging validation in 5 steps:
  1. Run smoke tests - Execute automated smoke test suite on staging URL

    npm run test:smoke -- --url=$STAGING_URL
    

    Verify: homepage loads (200), API health endpoint (200), database connection

  2. Test critical user flows - Manual testing of core functionality

    • Authentication (login, logout, password reset)
    • Primary user workflow (feature-specific)
    • Payment processing (if applicable)
    • Data CRUD operations
  3. Verify data migrations - Check staging database for migration results

    # Connect to staging database
    psql $STAGING_DATABASE_URL -c "SELECT version FROM alembic_version;"
    # Verify tables, columns, constraints match expectations
    
  4. Test rollback capability - Execute actual rollback test

    # Rollback to previous deployment
    vercel rollback $PREVIOUS_DEPLOYMENT_ID
    # Verify previous version is live
    # Roll forward to current deployment
    vercel promote $CURRENT_DEPLOYMENT_ID
    
  5. Document sign-off - Update state.yaml

    manual_gates:
      staging_validation:
        status: approved # or rejected
        approver: "Your Name"
        timestamp: "2025-11-19T10:30:00Z"
        blockers: [] # or list of issues if rejected
    

Key principle: Test as if this is production. All failures must be fixed before production deployment.

Before running staging validation:

  • Staging deployment completed successfully (from /ship-staging)
  • Staging URL is live and accessible
  • Deployment ID available (for rollback testing)
  • Previous deployment ID available (for rollback test)
  • Database migration logs available
  • Test credentials available (for authentication flows)
Required understanding before validation:
  • Smoke tests: What automated tests exist, how to run them, what they verify
  • Critical user flows: Which workflows are essential for production (auth, core feature, payments)
  • Data migrations: What schema changes were made, how to verify them
  • Rollback procedure: How to rollback deployment, how to verify previous version, how to roll forward
  • Sign-off criteria: What constitutes approval vs rejection (all tests pass, no blocking bugs)

See deployment-strategy.md in project docs for platform-specific rollback procedures.

- **Skip at your own risk**: Staging validation is the last quality gate before production. Skipping it risks deploying broken code to users. - **Insufficient smoke tests**: Testing only homepage is inadequate. Must verify API, database, authentication, core features. - **Assumed rollback works**: Must actually test rollback, not assume it works. Many rollback failures discovered during tests. - **Vague sign-off**: "Looks good" is not a documented sign-off. Must update state.yaml with name, timestamp, decision. **Run Automated Smoke Tests**

Execute smoke test suite on staging environment.

Smoke Test Suite:

# Run smoke tests against staging URL
npm run test:smoke -- --url=$STAGING_URL

# Typical smoke tests include:
# - Homepage loads (HTTP 200, no errors in console)
# - API health endpoint responds (GET /api/health → 200)
# - Database connection established (health check includes DB ping)
# - Static assets load (CSS, JS, images)
# - Authentication page accessible (GET /login → 200)

Success Criteria:

  • All smoke tests pass (0 failures)
  • No 500 errors in server logs
  • No console errors in browser DevTools
  • Response times <2s for all endpoints

If smoke tests fail:

  1. Document failures in validation report
  2. Mark sign-off as "rejected" with blocker list
  3. Return to /implement to fix issues
  4. Re-deploy to staging
  5. Re-run validation

Quality Check: Smoke tests provide quick confidence that depl

Полный SKILL.md на GitHub

Установить staging-validation-phase в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/reference.md

FAQ

Что делает скилл staging-validation-phase?

Guides manual staging validation before production deployment through smoke tests, critical user flow testing, data migration verification, and rollback capability checks. Use when validating staging deployments, running pre-production tests, or preparing for production promotion in staging-prod deployment model. (project)

Как установить скилл staging-validation-phase?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл staging-validation-phase запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить staging-validation-phase с