[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CAHM7A3KA7T3Z51DZQWJSH":3,"skill-same:01M6CAHM7A3KA7T3Z51DZQWJSH":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6CAHM7A3KA7T3Z51DZQWJSH","regression-cicd-hooks","CI\u002FCD 流水线回归测试集成","Integrate regression testing into CI\u002FCD pipelines with baseline comparison and merge blocking on failure","将回归测试集成到 CI\u002FCD 流水线中，支持基线比对，并在测试失败时阻止代码合并。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsdlc\u002Fskills\u002Fregression-cicd-hooks\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"cicd","regression","regression cicd hooks","hooks","testing","merge","ci","baseline","integrate","pipelines","cd","CI\u002FCD","comparison","with","regression testing","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: regression-cicd-hooks\nplatforms: [all]\ndescription: Integrate regression testing into CI\u002FCD pipelines with baseline comparison and merge blocking on failure\n\n---\n\n# regression-cicd-hooks\n\nIntegrate regression testing into CI\u002FCD pipelines with automated baseline comparison, merge blocking, and multi-platform support.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"CI hooks\" \u002F \"pipeline gates\" → regression check in CI\u002FCD\n- \"fail fast on regression\" → CI regression gate\n\n## Purpose\n\nThis skill automates regression detection in CI\u002FCD workflows by:\n- Integrating baseline comparisons into PR\u002FMR pipelines\n- Blocking merges when regressions detected\n- Running regression checks on pre-commit hooks\n- Supporting GitHub Actions, GitLab CI, and Gitea Actions\n- Notifying teams of regression failures\n- Storing baseline comparisons as pipeline artifacts\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Identifies CI\u002FCD platform**:\n   - Detect existing CI configuration (.github, .gitlab-ci.yml)\n   - Determine platform (GitHub Actions, GitLab CI, Gitea Actions)\n   - Check for existing regression checks\n   - Identify project type and test framework\n\n2. **Configures regression pipeline**:\n   - Add regression stage to workflow\n   - Configure baseline comparison step\n   - Set up artifact storage for results\n   - Configure merge blocking rules\n   - Add notification channels\n\n3. **Implements local pre-commit hook**:\n   - Create `.git\u002Fhooks\u002Fpre-commit` script\n   - Add fast regression pattern checks\n   - Configure skip patterns for WIP commits\n   - Link to full CI regression checks\n\n4. **Sets up multi-environment baselines**:\n   - Configure environment-specific baselines (dev, staging, prod)\n   - Set regression thresholds per environment\n   - Link baselines to git branches\u002Freleases\n   - Configure baseline update workflow\n\n5. **Adds notifications**:\n   - Configure Slack\u002FDiscord\u002Femail alerts\n   - Add regression report to PR\u002FMR comments\n   - Link to detailed comparison reports\n   - Tag relevant stakeholders\n\n6. **Documents workflow**:\n   - Create regression CI documentation\n   - Add troubleshooting guide\n   - Document baseline update process\n   - Include developer quick-start\n\n## Platform Integrations\n\n### GitHub Actions\n\n```yaml\n# .github\u002Fworkflows\u002Fregression-check.yml\n\nname: Regression Tests\n\non:\n  pull_request:\n    branches: [main, develop]\n  push:\n    branches: [main]\n\njobs:\n  regression-baseline-check:\n    runs-on: ubuntu-latest\n    timeout-minutes: 15\n\n    steps:\n      - name: Checkout code\n        uses: actions\u002Fcheckout@v4\n        with:\n          fetch-depth: 0  # Full history for baseline comparison\n\n      - name: Setup environment\n        uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Download baseline\n        uses: actions\u002Fdownload-artifact@v4\n        with:\n          name: regression-baseline\n          path: .aiwg\u002Ftesting\u002Fbaselines\u002F\n        continue-on-error: true  # First run may not have baseline\n\n      - name: Run tests and capture output\n        run: |\n          npm test -- --json --outputFile=test-results.json\n          npm run benchmark -- --json > performance-results.json\n\n      - name: Compare to baseline\n        id: regression-check\n        run: |\n          aiwg baseline compare functional-baseline \\\n            --current test-results.json \\\n            --output regression-report.md \\\n            --fail-on-regression\n\n      - name: Upload regression report\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: regression-report\n          path: regression-report.md\n          retention-days: 30\n\n      - name: Comment on PR\n        if: github.event_name == 'pull_request'\n        uses: actions\u002Fgithub-script@v7\n        with:\n          script: |\n            const fs = require('fs');\n            const report = fs.readFileSync('regression-report.md', 'utf8');\n            github.rest.issues.createComment({\n              issue_number: context.issue.number,\n              owner: context.repo.owner,\n              repo: context.repo.repo,\n              body: `## Regression Check Results\\n\\n${report}`\n            });\n\n      - name: Block merge on regression\n        if: steps.regression-check.outcome == 'failure'\n        run: |\n          echo \"::error::Regression detected. See report for details.\"\n          exit 1\n\n  update-baseline:\n    runs-on: ubuntu-latest\n    if: github.ref == 'refs\u002Fheads\u002Fmain' && github.event_name == 'push'\n\n    steps:\n      - name: Checkout code\n        uses: actions\u002Fcheckout@v4\n\n      - name: Setup environment\n        uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Run tests and capture baseline\n        run: |\n          npm test -- --json --outputFile=baseline.json\n          npm run benchmark -- --json > performance-baseline.json\n\n      - name: Create baseline\n        run: |\n          aiwg baseline create functional-baseline \\\n            --from baseline.json \\\n            --git-commit ${{ github.sha }} \\\n            --release ${{ github.ref_name }}\n\n      - name: Upload baseline\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: regression-baseline\n          path: .aiwg\u002Ftesting\u002Fbaselines\u002F\n          retention-days: 90\n```\n\n### GitLab CI\n\n```yaml\n# .gitlab-ci.yml\n\nstages:\n  - test\n  - regression\n  - deploy\n\nregression-check:\n  stage: regression\n  image: node:20\n  timeout: 15 minutes\n\n  script:\n    # Download baseline from artifacts\n    - apt-get update && apt-get install -y curl\n    - |\n      curl --location --output baseline.tar.gz \\\n        --header \"PRIVATE-TOKEN: $CI_JOB_TOKEN\" \\\n        \"${CI_API_V4_URL}\u002Fprojects\u002F${CI_PROJECT_ID}\u002Fjobs\u002Fartifacts\u002Fmain\u002Fdownload?job=baseline-update\"\n    - tar -xzf baseline.tar.gz || echo \"No baseline found, first run\"\n\n    # Run tests\n    - npm ci\n    - npm test -- --json --outputFile=test-results.json\n\n    # Compare to baseline\n    - |\n      aiwg baseline compare functional-baseline \\\n        --current test-results.json \\\n        --output regression-report.md \\\n        --fail-on-regression\n\n    # Post to MR\n    - |\n      if [ \"$CI_MERGE_REQUEST_IID\" ]; then\n        curl --request POST \\\n          --header \"PRIVATE-TOKEN: $CI_JOB_TOKEN\" \\\n          --data \"body=$(cat regression-report.md)\" \\\n          \"${CI_API_V4_URL}\u002Fprojects\u002F${CI_PROJECT_ID}\u002Fmerge_requests\u002F${CI_MERGE_REQUEST_IID}\u002Fnotes\"\n      fi\n\n  artifacts:\n    reports:\n      junit: test-results.json\n    paths:\n      - regression-report.md\n    expire_in: 30 days\n\n  rules:\n    - if: $CI_MERGE_REQUEST_ID\n    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH\n\nbaseline-update:\n  stage: deploy\n  image: node:20\n\n  script:\n    - npm ci\n    - npm test -- --json --outputFile=baseline.json\n    - |\n      aiwg baseline create functional-baseline \\\n        --from baseline.json \\\n        --git-commit $CI_COMMIT_SHA \\\n        --release $CI_COMMIT_TAG\n\n  artifacts:\n    paths:\n      - .aiwg\u002Ftesting\u002Fbaselines\u002F\n    expire_in: 90 days\n\n  only:\n    - main\n    - tags\n```\n\n### Gitea Actions\n\n```yaml\n# .gitea\u002Fworkflows\u002Fregression.yml\n\nname: Regression Tests\n\non:\n  pull_request:\n    branches: [main]\n  push:\n    branches: [main]\n\njobs:\n  regression-check:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout\n        uses: actions\u002Fcheckout@v3\n\n      - name: Setup Node\n        uses: actions\u002Fsetup-node@v3\n        with:\n          node-version: '20'\n\n      - name: Download baseline\n        run: |\n          curl -s -H \"Authorization: token $(cat ~\u002F.config\u002Fgitea\u002Ftoken)\" \\\n            \"https:\u002F\u002Fgit.integrolabs.net\u002Fapi\u002Fv1\u002Frepos\u002F${{ github.repository }}\u002Freleases\u002Flatest\u002Fassets\" \\\n            | jq -r '.[] | select(.name==\"baseline.tar.gz\") | .browser_download_url' \\\n            | xargs -I {} curl -L -o baseline.tar.gz {}\n          tar -xzf baseline.tar.gz || echo \"First run, no baseline\"\n\n      - name: Install and test\n        run: |\n          npm ci\n          npm test -- --json --outputFile=test-results.json\n\n      - name: Compare baseline\n        id: regression\n        run: |\n          aiwg baseline compare functional-baseline \\\n            --current test-results.json \\\n            --output regression-report.md \\\n            --fail-on-regression\n\n      - name: Comment on PR\n        if: github.event_name == 'pull_request'\n        run: |\n          bash \u003C\u003C'EOF'\n          TOKEN=$(cat ~\u002F.config\u002Fgitea\u002Ftoken)\n          REPORT=$(cat regression-report.md)\n          curl -s -X POST \\\n            -H \"Authorization: token ${TOKEN}\" \\\n            -H \"Content-Type: application\u002Fjson\" \\\n            \"https:\u002F\u002Fgit.integrolabs.net\u002Fapi\u002Fv1\u002Frepos\u002F${{ github.repository }}\u002Fissues\u002F${{ github.event.number }}\u002Fcomments\" \\\n            -d \"{\\\"body\\\": \\\"## Regression Check\\\\n\\\\n${REPORT}\\\"}\"\n          EOF\n\n      - name: Upload results\n        if: always()\n        uses: actions\u002Fupload-artifact@v3\n        with:\n          name: regression-report\n          path: regression-report.md\n```\n\n## Pre-Commit Hook\n\n```bash\n#!\u002Fbin\u002Fbash\n# .git\u002Fhooks\u002Fpre-commit - Local regression checks\n\n# Skip for WIP commits\nif git log -1 --pretty=%B | grep -qi \"wip\\|fixup\\|squash\"; then\n  echo \"WIP commit detected, skipping regression checks\"\n  exit 0\nfi\n\n# Fast pattern checks for known regression markers\necho \"Running fast regression checks...\"\n\n# Check for common regression patterns\nPATTERNS=(\n  \"TODO.*remove\"\n  \"FIXME.*regression\"\n  \"console\\.log\"  # Remove debug statements\n  \"debugger\"\n  \"\\.only\\(\"      # Focused tests\n  \"\\.skip\\(\"      # Skipped tests\n)\n\nFAILED=0\nfor pattern in \"${PATTERNS[@]}\"; do\n  if git diff --cached --diff-filter=ACM | grep -E \"$pattern\"; then\n    echo \"❌ Found regression pattern: $pattern\"\n    FAILED=1\n  fi\ndone\n\nif [ $FAILED -eq 1 ]; then\n  echo \"\"\n  echo \"Regression patterns detected in staged changes.\"\n  echo \"Fix issues or bypass with: git commit --no-verify\"\n  exit 1\nfi\n\n# Optional: Run quick smoke tests\nif [ -f \"package.json\" ] && command -v npm &> \u002Fdev\u002Fnull; then\n  echo \"Running quick smoke tests...\"\n  npm run test:quick 2>&1 | head -n 20\n\n  if [ ${PIPESTATUS[0]} -ne 0 ]; then\n    echo \"❌ Quick tests failed. Fix or bypass with --no-verify\"\n    exit 1\n  fi\nfi\n\necho \"✅ Pre-commit regression checks passed\"\nexit 0\n```\n\n## Configuration Schema\n\n```yaml\n# .aiwg\u002Fconfig\u002Fregression-cicd.yaml\n\nregression_ci:\n  platform: github-actions  # github-actions | gitlab-ci | gitea-actions\n\n  baselines:\n    storage:\n      type: artifacts  # artifacts | git-lfs | s3\n      retention_days: 90\n\n    environments:\n      - name: development\n        branch: develop\n        baseline: functional-baseline-dev\n        threshold:\n          functional: 100%  # Exact match required\n          performance: 110%  # 10% tolerance\n\n      - name: staging\n        branch: staging\n        baseline: functional-baseline-staging\n        threshold:\n          functional: 100%\n          performance: 105%\n\n      - name: production\n        branch: main\n        baseline: functional-baseline-prod\n        threshold:\n          functional: 100%\n          performance: 100%  # Strict\n\n  merge_blocking:\n    enabled: true\n    block_on:\n      - functional_regression\n      - performance_degradation\n      - api_contract_break\n    allow_override: false  # Require admin approval\n\n  notifications:\n    slack:\n      enabled: true\n      webhook_url: ${SLACK_WEBHOOK_URL}\n      channel: \"#engineering\"\n      mention_on_failure: \"@engineering-leads\"\n\n    email:\n      enabled: false\n      recipients:\n        - team-lead@example.com\n\n    pr_comment:\n      enabled: true\n      include_full_report: true\n      tag_reviewers: true\n\n  pre_commit:\n    enabled: true\n    checks:\n      - pattern_detection\n      - quick_tests\n    skip_on_wip: true\n    bypass_command: \"git commit --no-verify\"\n\n  thresholds:\n    functional:\n      exact_match: true\n      allow_new_fields: false\n\n    performance:\n      p50_tolerance: 10%\n      p95_tolerance: 15%\n      p99_tolerance: 20%\n      throughput_tolerance: -5%  # 5% reduction allowed\n\n    visual:\n      pixel_diff_threshold: 0.1%\n      ignore_regions: [timestamp, dynamic-ads]\n\n    api_contract:\n      breaking_changes: block\n      non_breaking_changes: warn\n```\n\n## Multi-Environment Strategy\n\n### Development Branch\n\n```yaml\ndevelopment:\n  frequency: every_commit\n  baseline_update: automatic\n  thresholds: relaxed\n  notifications: minimal\n  purpose: Catch obvious regressions early\n```\n\n### Staging Branch\n\n```yaml\nstaging:\n  frequency: every_merge\n  baseline_update: manual_approval\n  thresholds: moderate\n  notifications: team_channel\n  purpose: Validate release candidates\n```\n\n### Production Branch\n\n```yaml\nproduction:\n  frequency: every_release\n  baseline_update: requires_signoff\n  thresholds: strict\n  notifications: all_stakeholders\n  purpose: Protect production quality\n```\n\n## Branch Protection Integration\n\n### GitHub\n\n```yaml\n# .github\u002Fbranch-protection.json\n\n{\n  \"required_status_checks\": {\n    \"strict\": true,\n    \"contexts\": [\n      \"regression-baseline-check\",\n      \"performance-regression-check\"\n    ]\n  },\n  \"required_pull_request_reviews\": {\n    \"required_approving_review_count\": 1,\n    \"dismiss_stale_reviews\": true\n  },\n  \"enforce_admins\": false,\n  \"restrictions\": null\n}\n```\n\nApply via GitHub API:\n\n```bash\ncurl -X PUT \\\n  -H \"Authorization: token ${GITHUB_TOKEN}\" \\\n  -H \"Accept: application\u002Fvnd.github.v3+json\" \\\n  \"https:\u002F\u002Fapi.github.com\u002Frepos\u002F${OWNER}\u002F${REPO}\u002Fbranches\u002Fmain\u002Fprotection\" \\\n  -d @.github\u002Fbranch-protection.json\n```\n\n### GitLab\n\n```yaml\n# Set via GitLab UI or API\nprotected_branches:\n  - name: main\n    push_access_levels:\n      - access_level: 40  # Maintainer\n    merge_access_levels:\n      - access_level: 30  # Developer\n    required_approvals: 1\n    code_owner_approval_required: true\n    allow_force_push: false\n    allowed_to_merge:\n      - job: regression-check\n        status: success\n```\n\n## Notification Examples\n\n### Slack Message\n\n```markdown\n? **Regression Detected in PR #123**\n\n**PR**: feat: Add user profile endpoint\n**Author**: @developer\n**Branch**: `feature\u002Fuser-profile` → `main`\n\n**Regressions Found**: 3\n\n1. ❌ **Functional**: user-login test failed\n   - Expected: 200 OK\n   - Got: 500 Internal Server Error\n   - Severity: Critical\n\n2. ⚠️ **Performance**: API latency degraded\n   - p95: 150ms (baseline: 100ms)\n   - Increase: +50%\n   - Threshold: 15%\n\n3. ⚠️ **API Contract**: Response schema changed\n   - New field: `user.profile.avatar`\n   - Breaking: true\n\n**Action Required**: @engineering-leads\n\n[View Full Report](https:\u002F\u002Fgithub.com\u002Forg\u002Frepo\u002Factions\u002Fruns\u002F123)\n```\n\n### PR Comment\n\n```markdown\n## ? Regression Check Results\n\n**Status**: ❌ Regressions Detected\n\n| Check | Status | Details |\n|-------|--------|---------|\n| Functional | ❌ Failed | 1\u002F45 tests regressed |\n| Performance | ⚠️ Warning | p95 latency +50% |\n| API Contract | ⚠️ Warning | 1 breaking change |\n| Visual | ✅ Passed | No pixel diff |\n\n### Failed Tests\n\n#### user-login\n\n**Baseline** (v1.2.0):\n```json\n{\n  \"status\": 200,\n  \"body\": { \"token\": \"...\" }\n}\n```\n\n**Current**:\n```json\n{\n  \"status\": 500,\n  \"body\": { \"error\": \"Internal Server Error\" }\n}\n```\n\n**Root Cause**: Validation middleware broken in commit abc123\n\n### Performance Regression\n\n| Metric | Baseline | Current | Change | Threshold |\n|--------|----------|---------|--------|-----------|\n| p50 | 45ms | 48ms | +6.7% | ±10% ✅ |\n| p95 | 100ms | 150ms | +50% | ±15% ❌ |\n| p99 | 250ms | 300ms | +20% | ±20% ✅ |\n\n### API Contract Changes\n\n**Breaking Change Detected**:\n- Added `user.profile.avatar` field\n- Clients expecting strict schema will break\n\n### Recommendations\n\n- [ ] Fix validation middleware error handling\n- [ ] Investigate p95 latency spike\n- [ ] Version API or make avatar optional\n\n**Merge Blocked**: Fix regressions or request override\n\n[View Full Comparison](.aiwg\u002Ftesting\u002Fbaseline-comparisons\u002Fpr-123.md)\n```\n\n## Usage Examples\n\n### Setup for New Project\n\n```\nUser: \"Add regression checks to our GitHub Actions CI\"\n\nSkill executes:\n1. Detect GitHub Actions platform\n2. Check for existing workflows\n3. Generate regression-check.yml\n4. Create baseline-update.yml\n5. Setup branch protection\n6. Create configuration file\n7. Install pre-commit hook\n8. Generate documentation\n\nOutput:\n\"Regression CI\u002FCD Setup Complete\n\nPlatform: GitHub Actions\nWorkflows Created:\n✓ .github\u002Fworkflows\u002Fregression-check.yml - PR checks\n✓ .github\u002Fworkflows\u002Fbaseline-update.yml - Baseline updates\n\nConfiguration:\n✓ .aiwg\u002Fconfig\u002Fregression-cicd.yaml\n\nBranch Protection:\n✓ main: Requires regression-check to pass\n\nPre-commit Hook:\n✓ .git\u002Fhooks\u002Fpre-commit - Fast local checks\n\nNext Steps:\n1. Review configuration in regression-cicd.yaml\n2. Create initial baseline: aiwg baseline create functional-baseline\n3. Push to trigger first regression check\n4. Configure Slack webhook (optional)\n\nDocumentation: .aiwg\u002Fdocs\u002Fregression-ci.md\"\n```\n\n### Add to Existing Pipeline\n\n```\nUser: \"Integrate regression tests into our GitLab CI\"\n\nSkill analyzes:\n- Existing .gitlab-ci.yml\n- Current test stage configuration\n- Baseline storage availability\n\nAdds:\n\"Regression Stage Added to GitLab CI\n\nChanges:\n✓ Added 'regression' stage after 'test'\n✓ Created regression-check job\n✓ Created baseline-update job\n✓ Configured artifact storage\n✓ Added MR comment integration\n\nMerge Request Pipeline:\ntest → regression → deploy\n       ↓ (blocks merge on failure)\n\nReview changes: .gitlab-ci.yml\nCommit and push to activate\"\n```\n\n### Configure Custom Thresholds\n\n```\nUser: \"Set stricter performance thresholds for production\"\n\nSkill updates regression-cicd.yaml:\n\"Performance Thresholds Updated\n\nEnvironment: production\nChanges:\n- p50_tolerance: 10% → 5%\n- p95_tolerance: 15% → 10%\n- p99_tolerance: 20% → 15%\n- throughput_tolerance: -5% → 0%\n\nNew baseline required for production.\nCreate with: aiwg baseline create functional-baseline-prod\"\n```\n\n## Integration\n\nThis skill uses:\n- `regression-baseline`: For baseline creation and management\n- `regression-metrics`: For performance threshold validation\n- `regression-report`: For generating detailed reports\n- `project-awareness`: For detecting CI platform and configuration\n- `notification-dispatch`: For Slack\u002Femail\u002Fcomment notifications\n\n## Agent Orchestration\n\n```yaml\nagents:\n  setup:\n    agent: devops-engineer\n    focus: CI\u002FCD configuration and integration\n\n  configuration:\n    agent: test-architect\n    focus: Threshold tuning and baseline strategy\n\n  troubleshooting:\n    agent: reliability-engineer\n    focus: Pipeline debugging and optimization\n```\n\n## Output Locations\n\n- Workflows: `.github\u002Fworkflows\u002F` or `.gitlab-ci.yml` or `.gitea\u002Fworkflows\u002F`\n- Configuration: `.aiwg\u002Fconfig\u002Fregression-cicd.yaml`\n- Pre-commit: `.git\u002Fhooks\u002Fpre-commit`\n- Documentation: `.aiwg\u002Fdocs\u002Fregression-ci.md`\n- Reports: `.aiwg\u002Ftesting\u002Fbaseline-comparisons\u002F`\n\n## Troubleshooting\n\n### Baseline Not Found\n\n```bash\n# First run on new pipeline\necho \"No baseline found. Creating initial baseline...\"\naiwg baseline create functional-baseline --approve-initial\n```\n\n### Merge Block Override\n\n```bash\n# Admin override for emergencies\ngh pr review 123 --approve --body \"Override regression block: urgent hotfix\"\ngh pr merge 123 --admin --squash\n```\n\n### False Positive Regression\n\n```bash\n# Update baseline if change is intentional\naiwg baseline update functional-baseline \\\n  --approve-changes user-login \\\n  --justification \"Added avatar field per REQ-456\"\n```\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fregression-baseline\u002FSKILL.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fregression-metrics\u002FSKILL.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fregression-report\u002FSKILL.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Fdevops-engineer.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Ftest-architect.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Freliability-engineer.md\n","# regression-cicd-hooks\n\nIntegrate regression testing into CI\u002FCD pipelines with automated baseline comparison, merge blocking, and multi-platform support.\n\n## Triggers\n\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"CI hooks\" \u002F \"pipeline gates\" → regression check in CI\u002FCD\n- \"fail fast on regression\" → CI regression gate\n\n## Purpose\n\nThis skill automates regression detection in CI\u002FCD workflows by:\n- Integrating baseline comparisons into PR\u002FMR pipelines\n- Blocking merges when regressions detected\n- Running regression checks on pre-commit hooks\n- Supporting GitHub Actions, GitLab CI, and Gitea Actions\n- Notifying teams of regression failures\n- Storing baseline comparisons as pipeline artifacts\n\n## Behavior\n\nWhen triggered, this skill:\n\n1. **Identifies CI\u002FCD platform**:\n   - Detect existing CI configuration (.github, .gitlab-ci.yml)\n   - Determine platform (GitHub Actions, GitLab CI, Gitea Actions)\n   - Check for existing regression checks\n   - Identify project type and test framework\n\n2. **Configures regression pipeline**:\n   - Add regression stage to workflow\n   - Configure baseline comparison step\n   - Set up artifact storage for results\n   - Configure merge blocking rules\n   - Add notification channels\n\n3. **Implements local pre-commit hook**:\n   - Create `.git\u002Fhooks\u002Fpre-commit` script\n   - Add fast regression pattern checks\n   - Configure skip patterns for WIP commits\n   - Link to full CI regression checks\n\n4. **Sets up multi-environment baselines**:\n   - Configure environment-specific baselines (dev, staging, prod)\n   - Set regression thresholds per environment\n   - Link baselines to git branches\u002Freleases\n   - Configure baseline update workflow\n\n5. **Adds notifications**:\n   - Configure Slack\u002FDiscord\u002Femail alerts\n   - Add regression report to PR\u002FMR comments\n   - Link to detailed comparison reports\n   - Tag relevant stakeholders\n\n6. **Documents workflow**:\n   - Create regression CI documentation\n   - Add troubleshooting guide\n   - Document baseline update process\n   - Include developer quick-start\n\n## Platform Integrations\n\n### GitHub Actions\n\n```yaml\n# .github\u002Fworkflows\u002Fregression-check.yml\n\nname: Regression Tests\n\non:\n  pull_request:\n    branches: [main, develop]\n  push:\n    branches: [main]\n\njobs:\n  regression-baseline-check:\n    runs-on: ubuntu-latest\n    timeout-minutes: 15\n\n    steps:\n      - name: Checkout code\n        uses: actions\u002Fcheckout@v4\n        with:\n          fetch-depth: 0  # Full history for baseline comparison\n\n      - name: Setup environment\n        uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Download baseline\n        uses: actions\u002Fdownload-artifact@v4\n        with:\n          name: regression-baseline\n          path: .aiwg\u002Ftesting\u002Fbaselines\u002F\n        continue-on-error: true  # First run may not have baseline\n\n      - name: Run tests and capture output\n        run: |\n          npm test -- --json --outputFile=test-results.json\n          npm run benchmark -- --json > performance-results.json\n\n      - name: Compare to baseline\n        id: regression-check\n        run: |\n          aiwg baseline compare functional-baseline \\\n            --current test-results.json \\\n            --output regression-report.md \\\n            --fail-on-regression\n\n      - name: Upload regression report\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: regression-report\n          path: regression-report.md\n          retention-days: 30\n\n      - name: Comment on PR\n        if: github.event_name == 'pull_request'\n        uses: actions\u002Fgithub-script@v7\n        with:\n          script: |\n            const fs = require('fs');\n            const report = fs.readFileSync('regression-report.md', 'utf8');\n            github.rest.issues.createComment({\n              issue_number: context.issue.number,\n              owner: context.repo.owner,\n              repo: context.repo.repo,\n              body: `## Regression Check Results\\n\\n${report}`\n            });\n\n      - name: Block merge on regression\n        if: steps.regression-check.outcome == 'failure'\n        run: |\n          echo \"::error::Regression detected. See report for details.\"\n          exit 1\n\n  update-baseline:\n    runs-on: ubuntu-latest\n    if: github.ref == 'refs\u002Fheads\u002Fmain' && github.event_name == 'push'\n\n    steps:\n      - name: Checkout code\n        uses: actions\u002Fcheckout@v4\n\n      - name: Setup environment\n        uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '20'\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Run tests and capture baseline\n        run: |\n          npm test -- --json --outputFile=baseline.json\n          npm run benchmark -- --json > performance-baseline.json\n\n      - name: Create baseline\n        run: |\n          aiwg baseline create functional-baseline \\\n            --from baseline.json \\\n            --git-commit ${{ github.sha }} \\\n            --release ${{ github.ref_name }}\n\n      - name: Upload baseline\n        uses: actions\u002Fupload-artifact@v4\n        with:\n          name: regression-baseline\n          path: .aiwg\u002Ftesting\u002Fbaselines\u002F\n          retention-days: 90\n```\n\n### GitLab CI\n\n```yaml\n# .gitlab-ci.yml\n\nstages:\n  - test\n  - regression\n  - deploy\n\nregression-check:\n  stage: regression\n  image: node:20\n  timeout: 15 minutes\n\n  script:\n    # Download baseline from artifacts\n    - apt-get update && apt-get install -y curl\n    - |\n      curl --location --output baseline.tar.gz \\\n        --header \"PRIVATE-TOKEN: $CI_JOB_TOKEN\" \\\n        \"${CI_API_V4_URL}\u002Fprojects\u002F${CI_PROJECT_ID}\u002Fjobs\u002Fartifacts\u002Fmain\u002Fdownload?job=baseline-update\"\n    - tar -xzf baseline.tar.gz || echo \"No baseline found, first run\"\n\n    # Run tests\n    - npm ci\n    - npm test -- --json --outputFile=test-results.json\n\n    # Compare to baseline\n    - |\n      aiwg baseline compare functional-baseline \\\n        --current test-results.json \\\n        --output regression-report.md \\\n        --fail-on-regression\n\n    # Post to MR\n    - |\n      if [ \"$CI_MERGE_REQUEST_IID\" ]; then\n        curl --request POST \\\n          --header \"PRIVATE-TOKEN: $CI_JOB_TOKEN\" \\\n          --data \"body=$(cat regression-report.md)\" \\\n          \"${CI_API_V4_URL}\u002Fprojects\u002F${CI_PROJECT_ID}\u002Fmerge_requests\u002F${CI_MERGE_REQUEST_IID}\u002Fnotes\"\n      fi\n\n  artifacts:\n    reports:\n      junit: test-results.json\n    paths:\n      - regression-report.md\n    expire_in: 30 days\n\n  rules:\n    - if: $CI_MERGE_REQUEST_ID\n    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH\n\nbaseline-update:\n  stage: deploy\n  image: node:20\n\n  script:\n    - npm ci\n    - npm test -- --json --outputFile=baseline.json\n    - |\n      aiwg baseline create functional-baseline \\\n        --from baseline.json \\\n        --git-commit $CI_COMMIT_SHA \\\n        --release $CI_COMMIT_TAG\n\n  artifacts:\n    paths:\n      - .aiwg\u002Ftesting\u002Fbaselines\u002F\n    expire_in: 90 days\n\n  only:\n    - main\n    - tags\n```\n\n### Gitea Actions\n\n```yaml\n# .gitea\u002Fworkflows\u002Fregression.yml\n\nname: Regression Tests\n\non:\n  pull_request:\n    branches: [main]\n  push:\n    branches: [main]\n\njobs:\n  regression-check:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout\n        uses: actions\u002Fcheckout@v3\n\n      - name: Setup Node\n        uses: actions\u002Fsetup-node@v3\n        with:\n          node-version: '20'\n\n      - name: Download baseline\n        run: |\n          curl -s -H \"Authorization: token $(cat ~\u002F.config\u002Fgitea\u002Ftoken)\" \\\n            \"https:\u002F\u002Fgit.integrolabs.net\u002Fapi\u002Fv1\u002Frepos\u002F${{ github.repository }}\u002Freleases\u002Flatest\u002Fassets\" \\\n            | jq -r '.[] | select(.name==\"baseline.tar.gz\") | .browser_download_url' \\\n            | xargs -I {} curl -L -o baseline.tar.gz {}\n          tar -xzf baseline.tar.gz || echo \"First run, no baseline\"\n\n      - name: Install and test\n        run: |\n          npm ci\n          npm test -- --json --outputFile=test-results.json\n\n      - name: Compare baseline\n        id: regression\n        run: |\n          aiwg baseline compare functional-baseline \\\n            --current test-results.json \\\n            --output regression-report.md \\\n            --fail-on-regression\n\n      - name: Comment on PR\n        if: github.event_name == 'pull_request'\n        run: |\n          bash \u003C\u003C'EOF'\n          TOKEN=$(cat ~\u002F.config\u002Fgitea\u002Ftoken)\n          REPORT=$(cat regression-report.md)\n          curl -s -X POST \\\n            -H \"Authorization: token ${TOKEN}\" \\\n            -H \"Content-Type: application\u002Fjson\" \\\n            \"https:\u002F\u002Fgit.integrolabs.net\u002Fapi\u002Fv1\u002Frepos\u002F${{ github.repository }}\u002Fissues\u002F${{ github.event.number }}\u002Fcomments\" \\\n            -d \"{\\\"body\\\": \\\"## Regression Check\\\\n\\\\n${REPORT}\\\"}\"\n          EOF\n\n      - name: Upload results\n        if: always()\n        uses: actions\u002Fupload-artifact@v3\n        with:\n          name: regression-report\n          path: regression-report.md\n```\n\n## Pre-Commit Hook\n\n```bash\n#!\u002Fbin\u002Fbash\n# .git\u002Fhooks\u002Fpre-commit - Local regression checks\n\n# Skip for WIP commits\nif git log -1 --pretty=%B | grep -qi \"wip\\|fixup\\|squash\"; then\n  echo \"WIP commit detected, skipping regression checks\"\n  exit 0\nfi\n\n# Fast pattern checks for known regression markers\necho \"Running fast regression checks...\"\n\n# Check for common regression patterns\nPATTERNS=(\n  \"TODO.*remove\"\n  \"FIXME.*regression\"\n  \"console\\.log\"  # Remove debug statements\n  \"debugger\"\n  \"\\.only\\(\"      # Focused tests\n  \"\\.skip\\(\"      # Skipped tests\n)\n\nFAILED=0\nfor pattern in \"${PATTERNS[@]}\"; do\n  if git diff --cached --diff-filter=ACM | grep -E \"$pattern\"; then\n    echo \"❌ Found regression pattern: $pattern\"\n    FAILED=1\n  fi\ndone\n\nif [ $FAILED -eq 1 ]; then\n  echo \"\"\n  echo \"Regression patterns detected in staged changes.\"\n  echo \"Fix issues or bypass with: git commit --no-verify\"\n  exit 1\nfi\n\n# Optional: Run quick smoke tests\nif [ -f \"package.json\" ] && command -v npm &> \u002Fdev\u002Fnull; then\n  echo \"Running quick smoke tests...\"\n  npm run test:quick 2>&1 | head -n 20\n\n  if [ ${PIPESTATUS[0]} -ne 0 ]; then\n    echo \"❌ Quick tests failed. Fix or bypass with --no-verify\"\n    exit 1\n  fi\nfi\n\necho \"✅ Pre-commit regression checks passed\"\nexit 0\n```\n\n## Configuration Schema\n\n```yaml\n# .aiwg\u002Fconfig\u002Fregression-cicd.yaml\n\nregression_ci:\n  platform: github-actions  # github-actions | gitlab-ci | gitea-actions\n\n  baselines:\n    storage:\n      type: artifacts  # artifacts | git-lfs | s3\n      retention_days: 90\n\n    environments:\n      - name: development\n        branch: develop\n        baseline: functional-baseline-dev\n        threshold:\n          functional: 100%  # Exact match required\n          performance: 110%  # 10% tolerance\n\n      - name: staging\n        branch: staging\n        baseline: functional-baseline-staging\n        threshold:\n          functional: 100%\n          performance: 105%\n\n      - name: production\n        branch: main\n        baseline: functional-baseline-prod\n        threshold:\n          functional: 100%\n          performance: 100%  # Strict\n\n  merge_blocking:\n    enabled: true\n    block_on:\n      - functional_regression\n      - performance_degradation\n      - api_contract_break\n    allow_override: false  # Require admin approval\n\n  notifications:\n    slack:\n      enabled: true\n      webhook_url: ${SLACK_WEBHOOK_URL}\n      channel: \"#engineering\"\n      mention_on_failure: \"@engineering-leads\"\n\n    email:\n      enabled: false\n      recipients:\n        - team-lead@example.com\n\n    pr_comment:\n      enabled: true\n      include_full_report: true\n      tag_reviewers: true\n\n  pre_commit:\n    enabled: true\n    checks:\n      - pattern_detection\n      - quick_tests\n    skip_on_wip: true\n    bypass_command: \"git commit --no-verify\"\n\n  thresholds:\n    functional:\n      exact_match: true\n      allow_new_fields: false\n\n    performance:\n      p50_tolerance: 10%\n      p95_tolerance: 15%\n      p99_tolerance: 20%\n      throughput_tolerance: -5%  # 5% reduction allowed\n\n    visual:\n      pixel_diff_threshold: 0.1%\n      ignore_regions: [timestamp, dynamic-ads]\n\n    api_contract:\n      breaking_changes: block\n      non_breaking_changes: warn\n```\n\n## Multi-Environment Strategy\n\n### Development Branch\n\n```yaml\ndevelopment:\n  frequency: every_commit\n  baseline_update: automatic\n  thresholds: relaxed\n  notifications: minimal\n  purpose: Catch obvious regressions early\n```\n\n### Staging Branch\n\n```yaml\nstaging:\n  frequency: every_merge\n  baseline_update: manual_approval\n  thresholds: moderate\n  notifications: team_channel\n  purpose: Validate release candidates\n```\n\n### Production Branch\n\n```yaml\nproduction:\n  frequency: every_release\n  baseline_update: requires_signoff\n  thresholds: strict\n  notifications: all_stakeholders\n  purpose: Protect production quality\n```\n\n## Branch Protection Integration\n\n### GitHub\n\n```yaml\n# .github\u002Fbranch-protection.json\n\n{\n  \"required_status_checks\": {\n    \"strict\": true,\n    \"contexts\": [\n      \"regression-baseline-check\",\n      \"performance-regression-check\"\n    ]\n  },\n  \"required_pull_request_reviews\": {\n    \"required_approving_review_count\": 1,\n    \"dismiss_stale_reviews\": true\n  },\n  \"enforce_admins\": false,\n  \"restrictions\": null\n}\n```\n\nApply via GitHub API:\n\n```bash\ncurl -X PUT \\\n  -H \"Authorization: token ${GITHUB_TOKEN}\" \\\n  -H \"Accept: application\u002Fvnd.github.v3+json\" \\\n  \"https:\u002F\u002Fapi.github.com\u002Frepos\u002F${OWNER}\u002F${REPO}\u002Fbranches\u002Fmain\u002Fprotection\" \\\n  -d @.github\u002Fbranch-protection.json\n```\n\n### GitLab\n\n```yaml\n# Set via GitLab UI or API\nprotected_branches:\n  - name: main\n    push_access_levels:\n      - access_level: 40  # Maintainer\n    merge_access_levels:\n      - access_level: 30  # Developer\n    required_approvals: 1\n    code_owner_approval_required: true\n    allow_force_push: false\n    allowed_to_merge:\n      - job: regression-check\n        status: success\n```\n\n## Notification Examples\n\n### Slack Message\n\n```markdown\n? **Regression Detected in PR #123**\n\n**PR**: feat: Add user profile endpoint\n**Author**: @developer\n**Branch**: `feature\u002Fuser-profile` → `main`\n\n**Regressions Found**: 3\n\n1. ❌ **Functional**: user-login test failed\n   - Expected: 200 OK\n   - Got: 500 Internal Server Error\n   - Severity: Critical\n\n2. ⚠️ **Performance**: API latency degraded\n   - p95: 150ms (baseline: 100ms)\n   - Increase: +50%\n   - Threshold: 15%\n\n3. ⚠️ **API Contract**: Response schema changed\n   - New field: `user.profile.avatar`\n   - Breaking: true\n\n**Action Required**: @engineering-leads\n\n[View Full Report](https:\u002F\u002Fgithub.com\u002Forg\u002Frepo\u002Factions\u002Fruns\u002F123)\n```\n\n### PR Comment\n\n```markdown\n## ? Regression Check Results\n\n**Status**: ❌ Regressions Detected\n\n| Check | Status | Details |\n|-------|--------|---------|\n| Functional | ❌ Failed | 1\u002F45 tests regressed |\n| Performance | ⚠️ Warning | p95 latency +50% |\n| API Contract | ⚠️ Warning | 1 breaking change |\n| Visual | ✅ Passed | No pixel diff |\n\n### Failed Tests\n\n#### user-login\n\n**Baseline** (v1.2.0):\n```json\n{\n  \"status\": 200,\n  \"body\": { \"token\": \"...\" }\n}\n```\n\n**Current**:\n```json\n{\n  \"status\": 500,\n  \"body\": { \"error\": \"Internal Server Error\" }\n}\n```\n\n**Root Cause**: Validation middleware broken in commit abc123\n\n### Performance Regression\n\n| Metric | Baseline | Current | Change | Threshold |\n|--------|----------|---------|--------|-----------|\n| p50 | 45ms | 48ms | +6.7% | ±10% ✅ |\n| p95 | 100ms | 150ms | +50% | ±15% ❌ |\n| p99 | 250ms | 300ms | +20% | ±20% ✅ |\n\n### API Contract Changes\n\n**Breaking Change Detected**:\n- Added `user.profile.avatar` field\n- Clients expecting strict schema will break\n\n### Recommendations\n\n- [ ] Fix validation middleware error handling\n- [ ] Investigate p95 latency spike\n- [ ] Version API or make avatar optional\n\n**Merge Blocked**: Fix regressions or request override\n\n[View Full Comparison](.aiwg\u002Ftesting\u002Fbaseline-comparisons\u002Fpr-123.md)\n```\n\n## Usage Examples\n\n### Setup for New Project\n\n```\nUser: \"Add regression checks to our GitHub Actions CI\"\n\nSkill executes:\n1. Detect GitHub Actions platform\n2. Check for existing workflows\n3. Generate regression-check.yml\n4. Create baseline-update.yml\n5. Setup branch protection\n6. Create configuration file\n7. Install pre-commit hook\n8. Generate documentation\n\nOutput:\n\"Regression CI\u002FCD Setup Complete\n\nPlatform: GitHub Actions\nWorkflows Created:\n✓ .github\u002Fworkflows\u002Fregression-check.yml - PR checks\n✓ .github\u002Fworkflows\u002Fbaseline-update.yml - Baseline updates\n\nConfiguration:\n✓ .aiwg\u002Fconfig\u002Fregression-cicd.yaml\n\nBranch Protection:\n✓ main: Requires regression-check to pass\n\nPre-commit Hook:\n✓ .git\u002Fhooks\u002Fpre-commit - Fast local checks\n\nNext Steps:\n1. Review configuration in regression-cicd.yaml\n2. Create initial baseline: aiwg baseline create functional-baseline\n3. Push to trigger first regression check\n4. Configure Slack webhook (optional)\n\nDocumentation: .aiwg\u002Fdocs\u002Fregression-ci.md\"\n```\n\n### Add to Existing Pipeline\n\n```\nUser: \"Integrate regression tests into our GitLab CI\"\n\nSkill analyzes:\n- Existing .gitlab-ci.yml\n- Current test stage configuration\n- Baseline storage availability\n\nAdds:\n\"Regression Stage Added to GitLab CI\n\nChanges:\n✓ Added 'regression' stage after 'test'\n✓ Created regression-check job\n✓ Created baseline-update job\n✓ Configured artifact storage\n✓ Added MR comment integration\n\nMerge Request Pipeline:\ntest → regression → deploy\n       ↓ (blocks merge on failure)\n\nReview changes: .gitlab-ci.yml\nCommit and push to activate\"\n```\n\n### Configure Custom Thresholds\n\n```\nUser: \"Set stricter performance thresholds for production\"\n\nSkill updates regression-cicd.yaml:\n\"Performance Thresholds Updated\n\nEnvironment: production\nChanges:\n- p50_tolerance: 10% → 5%\n- p95_tolerance: 15% → 10%\n- p99_tolerance: 20% → 15%\n- throughput_tolerance: -5% → 0%\n\nNew baseline required for production.\nCreate with: aiwg baseline create functional-baseline-prod\"\n```\n\n## Integration\n\nThis skill uses:\n- `regression-baseline`: For baseline creation and management\n- `regression-metrics`: For performance threshold validation\n- `regression-report`: For generating detailed reports\n- `project-awareness`: For detecting CI platform and configuration\n- `notification-dispatch`: For Slack\u002Femail\u002Fcomment notifications\n\n## Agent Orchestration\n\n```yaml\nagents:\n  setup:\n    agent: devops-engineer\n    focus: CI\u002FCD configuration and integration\n\n  configuration:\n    agent: test-architect\n    focus: Threshold tuning and baseline strategy\n\n  troubleshooting:\n    agent: reliability-engineer\n    focus: Pipeline debugging and optimization\n```\n\n## Output Locations\n\n- Workflows: `.github\u002Fworkflows\u002F` or `.gitlab-ci.yml` or `.gitea\u002Fworkflows\u002F`\n- Configuration: `.aiwg\u002Fconfig\u002Fregression-cicd.yaml`\n- Pre-commit: `.git\u002Fhooks\u002Fpre-commit`\n- Documentation: `.aiwg\u002Fdocs\u002Fregression-ci.md`\n- Reports: `.aiwg\u002Ftesting\u002Fbaseline-comparisons\u002F`\n\n## Troubleshooting\n\n### Baseline Not Found\n\n```bash\n# First run on new pipeline\necho \"No baseline found. Creating initial baseline...\"\naiwg baseline create functional-baseline --approve-initial\n```\n\n### Merge Block Override\n\n```bash\n# Admin override for emergencies\ngh pr review 123 --approve --body \"Override regression block: urgent hotfix\"\ngh pr merge 123 --admin --squash\n```\n\n### False Positive Regression\n\n```bash\n# Update baseline if change is intentional\naiwg baseline update functional-baseline \\\n  --approve-changes user-login \\\n  --justification \"Added avatar field per REQ-456\"\n```\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fregression-baseline\u002FSKILL.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fregression-metrics\u002FSKILL.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fregression-report\u002FSKILL.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Fdevops-engineer.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Ftest-architect.md\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fagents\u002Freliability-engineer.md\n",{"name":5,"namespace":51,"platforms":52,"description":7},"aiwg",[53],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Fsdlc\u002Fskills\u002Fregression-cicd-hooks",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add jmagly\u002Faiwg --skill regression-cicd-hooks",{"tool":70,"command":71},"bunx","bunx skills add jmagly\u002Faiwg --skill regression-cicd-hooks",{"tool":73,"command":74},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill regression-cicd-hooks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsdlc\u002Fskills\u002Fregression-cicd-hooks\u002FSKILL.md",true,[],[79,87,92,119,139,144],{"skillNo":80,"name":81,"nameZh":17,"description":82,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":86},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":88,"name":81,"nameZh":17,"description":82,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":86},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":17,"description":95,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":46},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118],"hardening","host","host hardening","verification","secrets","read","request","remediation","recommendations","audit","plan","port","bind","Bash","access","only","retention","re","never","firewall",{"skillNo":120,"name":121,"nameZh":17,"description":122,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":46},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[126,127,128,129,130,131,104,132,110,117,112,133,100,134,114,135,136,118,137,138],"analysis","exposure analysis","collection","reconstruction","operator","write","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":140,"name":94,"nameZh":17,"description":95,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":46},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[99,100,101,116,117,118,111,115,107,103,104,105,106,108,109,110,102,112,113,114],{"skillNo":145,"name":121,"nameZh":17,"description":122,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":46},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[126,127,138,137,130,136,135,114,129,131,104,132,110,128,112,133,100,118,117,134]]