Ci cd pipeline authoring

From makifbaysal/tasktrooper · View interactive version

Ci cd pipeline authoring is an AI agent skill from the GitHub repository makifbaysal/tasktrooper. Use when a repository needs CI/CD - author GitHub Actions workflows so TaskTrooper's pipeline auto-detects your validate/build/test jobs and stage/preprod/prod deploys, and so a dispatch delivery profile can dispatch the production deploy

How to use this skill

Skill file

CI/CD Pipeline Authoring

Overview

TaskTrooper does not run your build — it reads your GitHub Actions workflows and maps their jobs and files onto its own pipeline. A task entering code_review waits for your validate/build/test jobs on its pull request (get_pipeline_status shows them); once a component's delivery profile is dispatch, the release engineer dispatches your production deploy workflow at the release tag after the merge. If your workflows are not named the way the detector expects, the pipeline silently skips them and the task stalls at that gate.

Core principle: The workflow you author is the contract with the platform. Name jobs and files with the keywords the detector matches, or the stage does not exist as far as TaskTrooper is concerned.

Two kinds of pipeline slot

Status slots (mapped to a job name in any workflow) — read for pass/fail on the PR at code_review:

| Slot | Job name must contain (by repo kind) |

|------|--------------------------------------|

| validate | lint, vet, staticcheck (backend/worker) · lint, tsc, typecheck (frontend) · lint, swiftlint, analyze (mobile) |

| build | build, compile, docker (backend/worker/frontend) · build, xcodebuild, archive, fastlane (mobile) |

| test | test, vitest, jest |

A mobile build job must not contain docker (excluded). Give each job a clear name: — the detector matches the job's display name.

Deploy slots (mapped to a workflow file) — dispatched, one workflow file per slot:

| Slot | Workflow name: / file must contain |

|------|--------------------------------------|

| stage_deploy | stage, staging, preview |

| preprod_deploy | preprod, pre-prod, pre-production |

| prod_deploy | prod, production, release (must NOT contain preprod) |

Rules

Batch release workflows (a `batch` delivery profile: desktop, mobile, and anything else a human cuts by hand)

A batch component never dispatches a workflow — cutting the release creates a tag (or, for a local executor, runs a command on the release machine). Author the deploy side of a batch component's pipeline around that:

Worked Example

on: block a dispatch deploy workflow needs so the platform can dispatch it:

name: myapi-deploy-prod          # "prod" → prod_deploy slot
on:
  workflow_dispatch: {}          # platform dispatches with ref only, no inputs
permissions:
  id-token: write                # OIDC
  contents: read
jobs:
  deploy:
    runs-on: ubuntu-latest
    environment: production       # env-scoped vars/secrets + protection rules
    steps:
      - uses: actions/checkout@v7
      # auth via OIDC (WIF / configure-aws-credentials), then deploy the image,
      # then a smoke step that curls the health endpoint and fails on non-200.

Because the file name and name: contain prod, the detector maps this workflow to the component's prod_deploy check — the file name a dispatch delivery profile names as its workflow. The release engineer dispatches it at the release tag (release/<sha12>) after the merge, then verifies the deploy (health, smoke checks, runtime errors) before finishing or rolling back.

Common Mistakes

Red Flags

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.