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/gitlab/rust.yml

View on GitHub
# GitLab CI — Rust
# Template variables:
#   RUST_VERSION: e.g., '1.83'
#   WANT_COVERAGE: boolean
#   WANT_SECURITY: boolean

image: rust:${RUST_VERSION}-slim

stages:
  - lint
  - test
  - security

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

default:
  interruptible: true

variables:
  CARGO_HOME: $CI_PROJECT_DIR/.cargo
  RUST_BACKTRACE: "1"

.rust-cache:
  cache:
    - key:
        files:
          - Cargo.lock
      paths:
        - .cargo/bin/
        - .cargo/registry/
        - .cargo/git/
        - target/
      policy: pull-push

fmt:
  stage: lint
  extends: .rust-cache
  script:
    - rustup component add rustfmt
    - cargo fmt --all -- --check

clippy:
  stage: lint
  extends: .rust-cache
  script:
    - rustup component add clippy
    - cargo clippy --all-targets --all-features -- -D warnings

tests:
  stage: test
  extends: .rust-cache
  script:
    - cargo test --all-features

coverage:
  stage: test
  extends: .rust-cache
  script:
    - cargo install cargo-tarpaulin || true
    - cargo tarpaulin --ignore-tests --out xml
  coverage: '/\d+\.\d+% coverage/'
  artifacts:
    reports:
      coverage_report:
        coverage_format: cobertura
        path: cobertura.xml
    when: always

audit:
  stage: security
  extends: .rust-cache
  script:
    - cargo install cargo-audit || true
    - cargo audit
  allow_failure: true
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