Github ci

From event4u-app/agent-config · View interactive version

Github ci is an AI agent skill from the GitHub repository event4u-app/agent-config. When working with GitHub Actions — workflow YAML, quality gates, test matrices, deployment triggers, reusable workflows — even when the user just says 'my CI is failing' or 'add a check'.

How to use this skill

Skill file

github-ci

When to use

Use this skill when working with GitHub Actions workflows, CI pipeline configuration, or understanding the automated quality and deployment process.

Procedure: Modify CI workflows

  1. Read .github/workflows/ to understand the full pipeline.
  2. Check AGENTS.md for quality tool commands and testing setup.
  3. Read commands/fix/ci.md for CI failure debugging workflow.

Workflow overview

Do not assume a pipeline shape — read .github/workflows/ and tabulate, per

workflow, its trigger (on:) and the environment or target it reaches:

| Workflow | Trigger | Environment / target |

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

| (one row per file you read) | | |

Note which jobs are privileged — they hold id-token: write,

contents: write, or a secret other than GITHUB_TOKEN — because the security

conventions below bind tighter there.

Conventions

Workflow structure

free-text context — a type: string or untyped input, a release tag/name/body,

a PR title/body/head ref, github.head_ref, a commit message, a label name —

never sits inline in run: or a github-script script:; set it as a step

env: variable and read it as "$VAR". Hold a value that later steps

re-interpolate (a resolved tag) to a fixed shape. Linter rule:

template-injection.

true only where a later step pushes, with a comment naming that step. Linter

rule: persist-credentials.

contents: write or a non-default secret does not restore a cache (cache:

on a setup-* action, or actions/cache) — a lower-privilege workflow can

write the entry it restores. Linter rule: privileged-job-cache.

Runtime version

engines, .tool-versions) and pass it via job outputs to dependent jobs.

Runners

Check .github/workflows/ for the runner types used. Common patterns:

Environment variables

Debugging CI failures

  1. Get the failing run: GET /repos/{owner}/{repo}/actions/runs?branch={branch}
  2. Get failed jobs: GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs
  3. Get logs: GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs
  4. Fix locally, verify in container, then push.

See commands/fix/ci.md for the full debugging workflow.

Output format

  1. Modified workflow YAML file(s) in .github/workflows/
  2. Summary of pipeline changes and affected triggers

Auto-trigger keywords

Gotcha

Do NOT

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.