Source profileQuality 93/100

arbazkhan971/godmode/skills/cicd/SKILL.md

cicd

CI/CD pipeline design. GitHub Actions, GitLab CI, CircleCI, Jenkins, stage optimization, caching strategies, artifact management, matrix builds, pipeline templating.

Source repository stars
26
Declared platforms
0
Static risk flags
0
Last source update
2026-08-28
Source checked
2026-08-28

Decision brief

What it does: where it fits

CI/CD pipeline design. GitHub Actions, GitLab CI, CircleCI, Jenkins, stage optimization, caching strategies, artifact management, matrix builds, pipeline templating.

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/arbazkhan971/godmode --skill "skills/cicd"
    Safe inspection promptEditorial

    Inspect the Agent Skill "cicd" from https://github.com/arbazkhan971/godmode/blob/18bfc31d669804856ba232f04cdbd172afbdc379/skills/cicd/SKILL.md at commit 18bfc31d669804856ba232f04cdbd172afbdc379. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Workflow

      Identify the project's CI/CD requirements and existing configuration:

      [ ] Shallow clone (--depth 1) for CI builds[ ] Dependency caching with lockfile hash key[ ] Docker layer caching (BuildKit, GitHub cache)
    2. 02

      Step 1: Discover Pipeline Context

      Identify the project's CI/CD requirements and existing configuration:

      Identify the project's CI/CD requirements and existing configuration:If no pipeline exists: "No CI/CD configuration found. Shall I create one? Specify your preferred platform (GitHub Actions, GitLab CI, CircleCI, Jenkins)."
    3. 03

      Step 2: Pipeline Architecture Design

      Design the pipeline stages based on project needs:

      Design the pipeline stages based on project needs:
    4. 04

      Step 3: Generate Pipeline Configuration

      CACHING STRATEGY: | Cache Type | Key | Savings | |--|--|--| | Dependencies | lockfile hash | 30-90s | | (nodemodules, | (package-lock.json | | | .venv, vendor) | Pipfile.lock) | | | Build cache | source hash | 60-180s | |--|--|--| | (Docker layers, | (Dockerfile + | | | compiled…

      CACHING STRATEGY: | Cache Type | Key | Savings | |--|--|--| | Dependencies | lockfile hash | 30-90s | | (nodemodules, | (package-lock.json | | | .venv, vendor) | Pipfile.lock) | | | Build cache | source hash | 60-180s |…Total estimated savings: 2-6 minutes per pipeline runMulti-stage Dockerfile: deps layer (cached on lockfile hash) - build layer (cached on source hash). Copy lockfile first, npm ci, then copy source.
    5. 05

      Step 5: Pipeline Optimization

      Analyze and improve pipeline performance:

      Analyze and improve pipeline performance:

    Permission review

    Static risk signals and limitations

    No configured static risk pattern was detected

    This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score93/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars26SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    arbazkhan971/godmode
    Skill path
    skills/cicd/SKILL.md
    Commit
    18bfc31d669804856ba232f04cdbd172afbdc379
    License
    MIT
    Collected
    2026-08-28
    Default branch
    master
    View the original SKILL.md

    CICD — CI/CD Pipeline Design

    Activate When

    • User invokes /godmode:cicd
    • User says "create pipeline", "ci/cd pipeline", "ci cd pipeline", "set up CI/CD", "add GitHub Actions"
    • User says "optimize CI", "pipeline is slow", "fix failing pipeline", "build pipeline tuning", "release pipeline"
    • User says "add deployment stage", "set up matrix builds"
    • Project has no CI/CD configuration
    • Shipping workflow requires automated pipeline
    • Pipeline performance needs improvement

    Workflow

    Step 1: Discover Pipeline Context

    Identify the project's CI/CD requirements and existing configuration:

    PIPELINE CONTEXT:
      Platform: <GitHub Actions | GitLab CI | CircleCI |
      Jenkins | None detected>
      Language: <detected language/framework>
      Package Manager: <npm | pip | go mod | maven | etc.>
      Test Framework: <jest | pytest | go test | junit | etc.>
      Linter: <eslint | ruff | golangci-lint | etc.>
      Container: <Dockerfile present? Y/N>
      Deploy Target: <K8s | ECS | Lambda | Vercel | etc.>
      Existing Pipeline: <path to config or "none">
      Branch Strategy: <trunk-based | gitflow | github flow>
    

    If no pipeline exists: "No CI/CD configuration found. Shall I create one? Specify your preferred platform (GitHub Actions, GitLab CI, CircleCI, Jenkins)."

    Step 2: Pipeline Architecture Design

    Design the pipeline stages based on project needs:

    PIPELINE ARCHITECTURE:
    ┌─────────┐    ┌─────────┐    ┌─────────┐    ┌─────────┐    ┌─────────┐
    | Lint | -> | Test | -> | Build | -> | Security | -> | Deploy |
    │         │    │         │    │         │    │         │    │         │
    | Format |  | Unit |  | Docker |  | SAST |  | Staging |
    |--|--|--|--|--|--|--|--|--|
    | Lint |  | Integ. |  | Assets |  | Deps |  | Prod |
    | Types |  | E2E |  | Publish |  | Secrets |  | Verify |
    └─────────┘    └─────────┘    └─────────┘    └─────────┘    └─────────┘
         |              |              |              |              |
       ~30s          ~2-5m          ~1-3m          ~1-2m          ~2-5m
                                                             (manual gate
    

    Step 3: Generate Pipeline Configuration

    GitHub Actions

    name: CI/CD Pipeline
    
    on:
      push:
        branches: [main, develop]
      pull_request:
    

    GitLab CI

    stages:
      - lint
      - test
      - build
      - security
      - deploy
    

    CACHING STRATEGY:

    Cache TypeKeySavings
    Dependencieslockfile hash30-90s
    (node_modules,(package-lock.json
    .venv, vendor)Pipfile.lock)
    Build cachesource hash60-180s
    ------
    (Docker layers,(Dockerfile +
    compiled assets)source files)
    Test cachetest file hash10-30s
    ------
    (jest cache,
    pytest cache)
    Tool cacheversion string20-60s
    ------
    (Go, Node, Python
    runtime install)

    Total estimated savings: 2-6 minutes per pipeline run

    
    #### Docker Layer Caching
    Multi-stage Dockerfile: deps layer (cached on lockfile hash) -> build layer (cached on source hash). Copy
    lockfile first, `npm ci`, then copy source.
    
    ### Step 5: Pipeline Optimization
    Analyze and improve pipeline performance:
    
    

    PIPELINE PERFORMANCE ANALYSIS:

    StageCurrentOptimizedSavings
    Checkout15s8sShallow clone
    Install deps90s5sCache hit
    Lint30s30s
    Type check45s45s
    Unit tests180s65s3x sharding
    Integration120s120sParallel with unit
    Build image180s45sLayer caching
    Security scan60s60s
    Deploy staging120s90sParallel verify
    TOTAL14m 0s7m 48s-44%
    Serial path14m 0s5m 30sWith parallelism
    
    #### Optimization Techniques
    

    OPTIMIZATION CHECKLIST:

    • Shallow clone (--depth 1) for CI builds
    • Dependency caching with lockfile hash key
    • Docker layer caching (BuildKit, GitHub cache)
    • Test sharding (split tests across parallel workers)
    • Parallel stages (lint + type check concurrently)
    • Conditional stages (skip deploy on PRs)
    • Incremental builds (only rebuild changed packages)
    • Concurrency limits (cancel redundant runs)
    • Timeout enforcement (prevent hung builds)
    • Artifact size limits (don't upload unnecessary files)
    • Matrix builds for multi-version testing
    • Self-hosted runners for heavy workloads
    
    ### Step 6: Matrix Builds
    Configure multi-version and multi-platform testing:
    
    ```yaml
    # GitHub Actions matrix example
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos-latest]
        node-version: [18, 20, 22]
    
    MATRIX EXECUTION:
    | Combination | Status | Duration | Result |
    |--|--|--|--|
    | ubuntu / node-18 | PASS | 2m 15s | 42/42 |
    | ubuntu / node-20 | PASS | 2m 08s | 42/42 |
    | ubuntu / node-22 | PASS | 2m 22s | 42/42 |
    | macos / node-20 | PASS | 3m 01s | 42/42 |
    | macos / node-22 | PASS | 3m 12s | 42/42 |
      Total: 5/5 passing (all combinations green)
    

    Step 7: Pipeline Templating

    Create reusable pipeline components:

    GitHub Actions — Composite Action

    # .github/actions/setup/action.yml
    name: 'Project Setup'
    description: 'Install dependencies with caching'
    inputs:
      node-version:
        description: 'Node.js version'
    

    GitHub Actions — Reusable Workflow

    # .github/workflows/reusable-deploy.yml
    name: Deploy
    on:
      workflow_call:
        inputs:
          environment:
    

    Step 8: Artifact Management

    Handle build outputs, test results, and deployment packages:

    ARTIFACT STRATEGY:
    | Artifact | Retention | Size Limit | Purpose |
    |--|--|--|--|
    | Test results (JUnit) | 30 days | 10 MB | PR checks |
    | Coverage reports | 30 days | 50 MB | Tracking |
    | Docker images | 90 days | — | Deployment |
    | Build logs | 90 days | — | Debugging |
    | SBOM | 365 days | 5 MB | Compliance |
    | SARIF (security) | 365 days | 10 MB | Audit |
    | Release binaries | Permanent | 500 MB | Distribution |
    

    Step 9: Commit and Report

    1. Save pipeline configuration in `.github/workflows/`, `.gitlab-ci.yml`, or equivalent
    2. Save reusable components in `.github/actions/` or equivalent
    3. Commit: "cicd: <description> — <platform> pipeline (<N> stages, <estimated time>)"
    4. If pipeline exists: Show optimization recommendations with estimated savings
    5. If new pipeline: "Pipeline created. Push to trigger first run."
    6. If fixing pipeline: Show root cause and fix applied
    

    Quality Targets

    • Pipeline runtime: <10min per PR
    • Success rate: >95% over 30 days
    • Dependency cache hit: >80% across runs

    Key Behaviors

    Never ask to continue. Loop autonomously until done.

    # Run CI pipeline locally for testing
    act -j test --secret-file .env.ci
    docker build --target test -t app:test .
    npm run lint && npm run typecheck && npm test
    
    1. Fast feedback first. Lint before tests. Fail fast.
    2. Cache aggressively. Dependencies, Docker layers, artifacts.
    3. Parallelize where possible. Lint + typecheck concurrently.
    4. Test sharding. 6 min suite -> 2 min on 3 shards.
    5. Environments as gates. Staging auto, prod manual approval.
    6. Concurrency control. Cancel stale pipeline runs.
    7. Timeouts mandatory. Every job has a timeout.
    8. Secrets injected, not stored. Never echo in logs. On failure: revert with git reset --hard HEAD~1.

    Flags & Options

    timestamp	stage	before_duration	after_duration	savings_pct	technique	status
    
    1. NEVER deploy to production without a staging gate. No exceptions.
    2. NEVER use latest for action/image versions. Pin to SHA or specific version.
    3. NEVER echo secrets in pipeline logs. Use masking.
    4. ALWAYS set timeouts on every job.
    5. ALWAYS cache dependencies with lockfile hash key.

    Explicit Loop Protocol

    When optimizing an existing pipeline:

    current_iteration = 0
    stages = list_all_pipeline_stages()
    optimizations_applied = []
    
    WHILE stages has unoptimized items:
        current_iteration += 1
        stage = stages.pop(0)
    
        # Measure current
        baseline_duration = measure(stage)
    
        # Identify optimizations
        opportunities = analyze(stage)  # caching, sharding, parallel, etc.
    
        FOR each opportunity in opportunities:
    

    Auto-Detection

    On activation, automatically detect project context without asking:

    AUTO-DETECT:
    1. CI platform:
       ls .github/workflows/*.yml 2>/dev/null && echo "github-actions"
       ls .gitlab-ci.yml 2>/dev/null && echo "gitlab-ci"
       ls .circleci/config.yml 2>/dev/null && echo "circleci"
       ls Jenkinsfile 2>/dev/null && echo "jenkins"
    
    2. Language and package manager:
       ls package-lock.json yarn.lock pnpm-lock.yaml 2>/dev/null  # Node.js
       ls Pipfile.lock requirements.txt pyproject.toml 2>/dev/null  # Python
       ls go.sum 2>/dev/null  # Go
       ls Cargo.lock 2>/dev/null  # Rust
    
    3. Test framework:
       grep -r "jest\|vitest\|mocha\|pytest\|go test\|cargo test" package.json Makefile 2>/dev/null
    

    Output Format

    Print on completion: CI/CD: {stage_count} stages, {job_count} jobs. Build: {build_time}. Test: {test_time}. Deploy: {deploy_target}. Cache: {cache_status}. Verdict: {verdict}.

    
    
    ## Keep/Discard
    KEEP if: improvement verified. DISCARD if: regression or no change. Revert discards immediately.
    
    ## Stop Conditions
    Stop when: target reached, budget exhausted, or >5 consecutive discards.
    

    Frequently asked questions

    What to verify before installation and use

    What does the cicd source document cover?

    CI/CD pipeline design. GitHub Actions, GitLab CI, CircleCI, Jenkins, stage optimization, caching strategies, artifact management, matrix builds, pipeline templating.

    How do I install cicd?

    The source record exposes this install command: npx skills add https://github.com/arbazkhan971/godmode --skill "skills/cicd". Inspect the command and pinned source before running it.

    Alternatives

    Compare before choosing

    Computed 97198

    microsoft/Sico

    android-tester

    Execute Android UI workflows on a sandbox device, review results, and produce a structured execution report.

    Computed 9321

    upex-galaxy/agentic-qa-boilerplate

    sprint-testing

    Orchestrates in-sprint manual QA per ticket across Stages 1 (Planning), 2 (Execution) and 3 (Reporting). Use for user-story testing, bug retesting, and batch-sprint QA loops. Creates the PBI folder, drives session-start, runs the triage + veto + risk-score decision tree on bugs, produces the ATP + ATR + TC artifacts in the TMS, executes smoke and trifuerza (UI/API/DB) exploration, and files the final QA comment + bug reports. Triggers on: test this ticket, QA this user story, retest this bug, ve

    Computed 92273

    Aperivue/medsci-skills

    model-validation

    Design or audit the clinical-validation study for an engineer-built medical-imaging model (segmentation, classification, or detection) before the validation report or manuscript is written. Covers patient-level split disjointness and the data-leakage taxonomy, tuning-on-test, internal versus genuine external validation, comparator design, single-run versus multi-seed variance, task-correct metric selection, test-set sizing, and CLAIM 2024 / TRIPOD+AI / STARD-AI reporting fit. Ships a determinist

    Computed 9982

    vasilyu1983/AI-Agents-public

    qa-testing-ios

    Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.