Command Palette

Search for a command to run...

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

regression-cicd-hooks

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

Integrate regression testing into CI/CD pipelines with baseline comparison and merge blocking on failure

jmaglyот jmagly★ 233 звезды на GitHub

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

regression-cicd-hooks

Integrate regression testing into CI/CD pipelines with automated baseline comparison, merge blocking, and multi-platform support.

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

  • "CI hooks" / "pipeline gates" → regression check in CI/CD
  • "fail fast on regression" → CI regression gate

Purpose

This skill automates regression detection in CI/CD workflows by:

  • Integrating baseline comparisons into PR/MR pipelines
  • Blocking merges when regressions detected
  • Running regression checks on pre-commit hooks
  • Supporting GitHub Actions, GitLab CI, and Gitea Actions
  • Notifying teams of regression failures
  • Storing baseline comparisons as pipeline artifacts

Behavior

When triggered, this skill:

  1. Identifies CI/CD platform:

    • Detect existing CI configuration (.github, .gitlab-ci.yml)
    • Determine platform (GitHub Actions, GitLab CI, Gitea Actions)
    • Check for existing regression checks
    • Identify project type and test framework
  2. Configures regression pipeline:

    • Add regression stage to workflow
    • Configure baseline comparison step
    • Set up artifact storage for results
    • Configure merge blocking rules
    • Add notification channels
  3. Implements local pre-commit hook:

    • Create .git/hooks/pre-commit script
    • Add fast regression pattern checks
    • Configure skip patterns for WIP commits
    • Link to full CI regression checks
  4. Sets up multi-environment baselines:

    • Configure environment-specific baselines (dev, staging, prod)
    • Set regression thresholds per environment
    • Link baselines to git branches/releases
    • Configure baseline update workflow
  5. Adds notifications:

    • Configure Slack/Discord/email alerts
    • Add regression report to PR/MR comments
    • Link to detailed comparison reports
    • Tag relevant stakeholders
  6. Documents workflow:

    • Create regression CI documentation
    • Add troubleshooting guide
    • Document baseline update process
    • Include developer quick-start

Platform Integrations

GitHub Actions

# .github/workflows/regression-check.yml

name: Regression Tests

on:
  pull_request:
    branches: [main, develop]
  push:
    branches: [main]

jobs:
  regression-baseline-check:
    runs-on: ubuntu-latest
    timeout-minutes: 15

    steps:
      - name: Checkout code
        uses: actions/checkout@v4
        with:
          fetch-depth: 0  # Full history for baseline comparison

      - name: Setup environment
        uses: actions/setup-node@v4
        with:
          node-version: '20'

      - name: Install dependencies
        run: npm ci

      - name: Download baseline
        uses: actions/download-artifact@v4
        with:
          name: regression-baseline
          path: .aiwg/testing/baselines/
        continue-on-error: true  # First run may not have baseline

      - name: Run tests and capture output
        run: |
          npm test -- --json --outputFile=test-results.json
          npm run benchmark -- --json > performance-results.json

      - name: Compare to baseline
        id: regression-check
        run: |
          aiwg baseline compare functional-baseline \
            --current test-results.json \
            --output regression-report.md \
            --fail-on-regression

      - name: Upload regression report
        uses: actions/upload-artifact@v4
        with:
          name: regression-report
          path: regression-report.md
          retention-days: 30

      - name: Comment on PR
        if: github.event_name == 'pull_request'
        uses: actions/github-script@v7
        with:
          script: |
            const fs = require('fs');
            const report = fs.readFileSync('regression-report.md', 'utf8');
            github.rest.issues.createComment({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              body: `## Regression Check Results\n\n${report}`
            });

      - name: Block merge on regression
        if: steps.regression-check.outcome == 'failure'
        run: |
          echo "::error::Regression detected. See report for details."
          exit 1

  update-baseline:
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/main' && github.event_name == 'push'

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Setup environment
        uses: actions/setup-node@v4
        with:
          node-version: '20'

      - name: Install dependencies
        run: npm ci

      - name: Run tests and capture baseline
        run: |
          npm test -- --json --outputFile=baseline.json
          npm run benchmark -- --json > performance-baseline.json

      - name: Create baseline
        run: |
          aiwg baseline create functional-baseline \
            --from baseline.json \
            --gi
Полный SKILL.md на GitHub

Установить regression-cicd-hooks в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл regression-cicd-hooks?

Integrate regression testing into CI/CD pipelines with baseline comparison and merge blocking on failure

Как установить скилл regression-cicd-hooks?

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

Скилл regression-cicd-hooks запускает скрипты?

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

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

Сравнить regression-cicd-hooks с