askill
eia-quality-gates

eia-quality-gatesSafety 85Repository

Quality gate enforcement for PR integration. Use when verifying code through pre-review, review, pre-merge, or post-merge checkpoints. Trigger with /eia-enforce-gates.

0 stars
1.2k downloads
Updated 2/15/2026

Package Files

Loading files...
SKILL.md

EIA Quality Gates

Overview

Quality gates are mandatory checkpoints that code must pass before advancing through the integration pipeline. Each gate defines specific criteria, blocking conditions, and escalation paths.

Prerequisites

Before using this skill, ensure:

  • Repository has CI/CD pipeline configured
  • GitHub labels from eia-label-taxonomy are applied
  • Review checklist from eia-code-review-patterns is available
  • GitHub CLI (gh) is installed and authenticated
  • Access to repository permissions for label management
  • Understanding of the four-gate pipeline model

Instructions

  1. Identify the current gate by checking PR labels (no gate label = Pre-Review Gate)
  2. Execute gate-specific checks (Pre-Review: tests/lints, Review: 8-dimension review, Pre-Merge: CI/conflicts, Post-Merge: main branch health)
  3. Apply gate decision label (passed/failed/warning) based on check results
  4. If checks pass, advance PR to next gate
  5. If checks fail, apply "failed" label and follow escalation path (A, B, C, or D)
  6. Document failure reasons in PR comments
  7. Notify responsible parties per escalation order

Step 5: Process Overrides (if applicable)

  • Verify override authority per Override Authority Matrix
  • Document override justification in PR
  • Apply gate:override-applied label
  • Proceed with next gate

Workflow Checklist

Copy this checklist and track your progress:

  • Identify current gate by checking PR labels
  • Execute gate-specific checks for current gate
  • Evaluate check results against gate criteria
  • Apply appropriate gate decision label (passed/failed/warning)
  • If PASSED: advance PR to next gate
  • If FAILED: apply failure label and identify escalation path
  • Document failure reasons in PR comments
  • Notify responsible parties per escalation order
  • If override requested: verify authority per Override Authority Matrix
  • If override approved: document justification and apply override label
  • Update gate status in PR labels
  • Verify next steps are clear to all parties

Output

When executing quality gates, provide:

  • Gate Status: Current gate name and pass/fail decision
  • Check Results: List of all checks performed with outcomes
  • Labels Applied: All labels added or removed
  • Escalation Actions: Any notifications sent or escalations triggered
  • Next Steps: What should happen next in the pipeline

Example Output Format:

Gate: Pre-Review Gate
Status: FAILED
Checks:
  - Tests: FAILED (3 failing tests in auth module)
  - Linting: PASSED
  - Build: PASSED
  - Description: PASSED

Labels Applied:
  - gate:pre-review-failed
  - gate:flaky-test

Escalation:
  - Commented on PR with test failure details
  - Notified @author

Next Steps:
  - Author must fix failing tests
  - Re-run pre-review gate after fixes

Error Handling

Common Errors and Solutions:

  1. CI Pipeline Not Running

    • Check GitHub Actions are enabled
    • Verify workflow files exist in .github/workflows/
    • Ensure branch protection rules allow CI execution
  2. Labels Not Applying

    • Verify GitHub token has label permissions
    • Check label exists in repository (create from taxonomy if missing)
    • Use gh pr edit $PR_NUMBER --add-label "label-name" manually if automation fails
  3. Escalation Notification Failure

    • Verify notification channels (email, Slack, etc.) are configured
    • Check user handles are correct (@mentions)
    • Fallback to manual notification if automation fails
  4. Gate Stuck in Pending State

    • Check all required status checks are reporting
    • Verify no infrastructure outages
    • Manually re-trigger CI if needed
    • Document stuck state and escalate to EOA
  5. Override Authority Unavailable

    • Follow alternate escalation path
    • Document urgency in PR
    • NEVER bypass security gates
    • Escalate to project maintainer if critical

Examples

See references/gate-examples.md for complete examples including:

  • Pre-Review Gate success and failure scenarios
  • Review Gate failure with low confidence score
  • Pre-Merge Gate failure with merge conflicts
  • Post-Merge Gate failure with main branch broken
  • Gate override application procedures

Purpose of Quality Gates:

  • Prevent defective code from reaching production
  • Ensure consistent quality standards across all contributions
  • Provide clear, objective criteria for advancement
  • Enable systematic escalation when gates fail

Key Principle: Quality gates use state-based triggers, not time-based values. Gates advance or block based on conditions being met, not elapsed time.


Gate Types and Pipeline Position

The integration pipeline has four sequential gates. See references/gate-pipeline.md for the complete flow diagram.

Gate 1: Pre-Review Gate

See references/pre-review-gate.md for:

  • Required checks
  • Warning conditions
  • Gate pass criteria
  • Label integration commands

Gate 2: Review Gate

See references/review-gate.md for:

  • Required checks (8 dimensions, 80% confidence)
  • Blocking conditions
  • Warning conditions
  • Gate pass/fail procedures

Gate 3: Pre-Merge Gate

See references/pre-merge-gate.md for:

  • Required checks (CI, conflicts, approval validity)
  • Blocking and warning conditions
  • Label integration commands

Gate 4: Post-Merge Gate

See references/post-merge-gate.md for:

  • Required checks (main branch health)
  • Blocking conditions
  • Issue closure procedures

Escalation Paths

See references/escalation-paths.md for complete escalation procedures including:

  • Escalation Path A: Pre-Review Gate Failure
  • Escalation Path B: Review Gate Failure (with Override Authority matrix)
  • Escalation Path C: Pre-Merge Gate Failure
  • Escalation Path D: Post-Merge Gate Failure (with Revert Authority matrix)
  • Actions by failure type for each path

Gate Override Policies

See references/override-policies.md for:

  • Override Authority Matrix (who can override which gates)
  • Override procedure and documentation requirements
  • When overrides are allowed vs forbidden (e.g., security gates cannot be overridden)

Complete Label Reference

See references/label-reference.md for complete list of:

  • Gate status labels (passed/failed/pending for each gate)
  • Warning labels (coverage, changelog, large PR, style issues, performance, flaky tests, etc.)
  • When each label should be applied

Gate Enforcement Checklist

See references/gate-checklist.md for a copy-paste checklist covering:

  • Pre-Review Gate verification steps
  • Review Gate verification steps
  • Pre-Merge Gate verification steps
  • Post-Merge Gate verification steps

Integration with Other Skills

Related Skills

  • eia-label-taxonomy - Complete label definitions
  • eia-code-review-patterns - Review methodology for Review Gate
  • eia-github-pr-workflow - PR workflow including gates
  • eia-tdd-enforcement - TDD requirements for Pre-Review Gate
  • eia-ci-failure-patterns - CI failure analysis

Dependency on Label Taxonomy

This skill uses labels defined in eia-label-taxonomy. Ensure the label taxonomy is applied to the repository before using quality gates.


Troubleshooting

See references/troubleshooting.md for solutions to common issues:

  • Gate appears stuck
  • False positive gate failure
  • Escalation not triggering
  • Override needed but no authority available

Resources

Gate Details

Procedures and Examples

Reference Materials


Version: 1.0.0 Last Updated: 2025-02-04 Skill Type: Integration Process Required Knowledge: CI/CD, code review, GitHub workflows

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

70/100Analyzed 2/25/2026

Well-structured quality gates skill with comprehensive coverage of four-gate pipeline model, clear instructions, and proper safety mechanisms. However, it is highly specific to the Emasoft Integrator Agent project, requiring AI Maestro and internal skills. Heavily references external files that may not exist. While technically sound and actionable, its internal-only nature limits reusability. Score reflects high quality content offset by project-specific constraints."

85
80
30
75
80

Metadata

Licenseunknown
Version1.0.0
Updated2/15/2026
PublisherEmasoft

Tags

ci-cdgithubgithub-actionssecuritytesting