ci-cd
Installation
SKILL.md
CI/CD safety and incident triage
Evidence before bypass. A pipeline is production automation with identities, secrets, artifacts, and deployment authority. Diagnose the failed run and its trust boundary before changing a trigger, permissions, runner, secret, branch rule, or deployment gate.
Scope
Use for GitHub Actions and GitLab CI. First identify which platform and runner execute the pipeline; their syntax and trust controls are not interchangeable. This skill covers workflow/pipeline review and safe release control, not a substitute for the platform’s deployment, security, or incident process.
Safety contract
- Confirm repository, immutable revision, platform, workflow/pipeline file, job, run ID, trigger/event, actor, runner type, environment, artifact digest, target account/cluster/region, and customer impact.
- Keep initial work read-only: inspect configuration at the failing revision, job summary, logs with redaction preserved, event payload metadata, environment/deployment history, artifact metadata, runner status, and audit trail.
- Treat code and configuration from forks, pull requests, external contributors, and untrusted inputs as hostile until the trigger, token permissions, secret scope, checkout ref, and runner isolation are reviewed.
- Never print, decode, reformat, pass through, or request secrets in logs, comments, workflow files, shell tracing, or chat. Masking reduces accidental exposure but does not make hostile pipeline code safe.
- Editing a workflow, re-running a privileged job, approving an environment, rotating a credential, changing a runner, publishing an artifact, promoting/redeploying, or rolling back is a mutation. It requires explicit user or operator confirmation after the approval gate below.
1. Establish the execution and trust boundary
Create an evidence record before proposing a fix: