What problem does it solve? Integrating AI into CI/CD pipelines is error-prone: interactive CLI sessions hang in CI runners, API keys leak into YAML, and uncontrolled autonomous runs rack up costs or make destructive changes. This Skill provides proven patterns for running Claude Code non-interactively in GitHub Actions and GitLab CI with correct permission modes, timeouts, and cost controls. ## Core Features & Use Cases - Headless Mode Patterns: Complete guidance on claude -p flags, permission modes (plan, default, acceptEdits, bypassPermissions), and structured output via --output-format stream-json. - Ready-to-Adapt Workflows: Full GitHub Actions YAML for PR review bots, test failure analysis, deployment safety gates, and PR triage/labeling. - Cost & Safety Controls: Token estimation, model selection guidance (Sonnet for triage, Opus for deep review), timeout guards, and secrets management rules. - Use Case: You want every pull request automatically reviewed by Claude. Use the PR Review Bot workflow to pipe the diff into claude -p, format the review as markdown, and post it as a PR comment via github-script. ## Quick Start Ask Claude to set up a GitHub Actions workflow that reviews pull requests using Claude Code in headless mode.