Skip to content

unxed/f4 / .agents/skills/aif-ci

aif-ci

Flagged

Generate CI/CD pipeline (GitHub Actions / GitLab CI) with linting, static analysis, tests, security. Use when user says "ci", "setup ci", "github actions", "gitlab ci", "pipeline".

templates/github/java.yml

View on GitHub
# GitHub Actions CI — Java
# Template variables:
#   JAVA_VERSION: e.g., 21
#   JAVA_VERSIONS: e.g., [17, 21]
#   BUILD_TOOL: maven | gradle
#   HAS_CHECKSTYLE: boolean
#   HAS_PMD: boolean
#   HAS_SPOTBUGS: boolean
#   WANT_MATRIX: boolean
#   WANT_COVERAGE: boolean
#   WANT_SECURITY: boolean

name: CI

on:
  push:
    branches: [main]
  pull_request:
  workflow_dispatch:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

permissions:
  contents: read

jobs:
  # --- Maven ---
  code-quality:
    name: Code Quality
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-java@v4
        with:
          distribution: temurin
          java-version: ${JAVA_VERSION}
          cache: maven
      - run: mvn checkstyle:check -B
      - run: mvn pmd:check -B
      - run: mvn compile spotbugs:check -B

  tests:
    name: Tests (Java ${{ matrix.java-version }})
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        java-version: ${JAVA_VERSIONS}
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-java@v4
        with:
          distribution: temurin
          java-version: ${{ matrix.java-version }}
          cache: maven
      - run: mvn verify -B
      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: test-results-java${{ matrix.java-version }}
          path: |
            target/surefire-reports/
            target/site/jacoco/
          retention-days: 14

  security:
    name: Dependency Check
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-java@v4
        with:
          distribution: temurin
          java-version: ${JAVA_VERSION}
          cache: maven
      - run: mvn dependency-check:check -B

  # --- Gradle (alternative) ---
  # code-quality:
  #   name: Code Quality
  #   runs-on: ubuntu-latest
  #   steps:
  #     - uses: actions/checkout@v4
  #     - uses: actions/setup-java@v4
  #       with:
  #         distribution: temurin
  #         java-version: ${JAVA_VERSION}
  #     - uses: gradle/actions/setup-gradle@v4
  #     - run: ./gradlew checkstyleMain pmdMain spotbugsMain
  #
  # tests:
  #   name: Tests (Java ${{ matrix.java-version }})
  #   runs-on: ubuntu-latest
  #   strategy:
  #     fail-fast: false
  #     matrix:
  #       java-version: ${JAVA_VERSIONS}
  #   steps:
  #     - uses: actions/checkout@v4
  #     - uses: actions/setup-java@v4
  #       with:
  #         distribution: temurin
  #         java-version: ${{ matrix.java-version }}
  #     - uses: gradle/actions/setup-gradle@v4
  #     - run: ./gradlew test jacocoTestReport
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall