/delivery-orchestrator:actions-authoringfrom delivery-orchestrator
Guides writing, hardening, and optimizing GitHub Actions workflows: permissions, action pinning, script injection, caching, matrices, concurrency, and cost.
Ships in delivery-orchestrator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
pull_request_target with a PR-head checkout# CRITICAL — a fork PR gets write-scoped secrets
on: pull_request_target
jobs:
test:
steps:
- uses: actions/checkout@v4
with: { ref: ${{ github.event.pull_request.head.sha }} }
- run: npm test # attacker's code, your secrets
pull_request_target runs in the base repo's context with secrets. Checking
out the PR head executes attacker-controlled code with those secrets in scope.
Use pull_request and accept that secrets are unavailable — that is the point.
${{ }}# wrong — issue title is attacker-controlled, interpolated into the shell
- run: echo "Title: ${{ github.event.issue.title }}"
# right — passed as an environment variable
- env:
TITLE: ${{ github.event.issue.title }}
run: echo "Title: $TITLE"
Any github.event.* field a user can write is untrusted: title, body, branch
name, commit message, label name.
Tags are mutable. Pin to a commit SHA with the version in a trailing comment:
- uses: some-org/some-action@8f4b7c2e9a1d... # v3.1.0
First-party actions/* at a major tag is the common accepted exception — decide
deliberately rather than by default.
Declare explicitly. The default GITHUB_TOKEN scope is far wider than any
single workflow needs.
permissions:
contents: read # workflow-level floor
jobs:
release:
permissions:
contents: write # narrowed per job
id-token: write # OIDC
Use OIDC for cloud auth. Long-lived cloud keys in secrets are a standing liability that no rotation policy fully fixes.
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
Two failure modes, both common:
github.run_id, a timestamp, or the commit sha can never
hit — it costs upload time every run and saves nothing.Check the actual hit rate in the restore step's log before tuning anything.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
Never cancel in progress on the default branch — that kills the run that gates deploys.
Full OS × version matrix on every PR is usually waste. Run a representative slice on PRs and the full matrix on the default branch and on a schedule.
strategy:
fail-fast: false # you want all failures, not the first
matrix:
node: [20, 22]
include:
- { node: 24, os: ubuntu-latest, experimental: true }
Cache hit rate → job graph (unnecessary needs:) → matrix pruning →
concurrency groups → path filters → fail-fast ordering (cheap checks first) →
runner sizing → artifact retention.
Never buy speed by dropping coverage. A removed matrix entry that covers a supported platform is not an optimization.
ci-forensics — diagnosing failures../commands/audit.md — repo-wide workflow security auditWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
github-actions, workflow-security, ci-cd, permissions, caching, concurrency
npx claudepluginhub thelobbi/claude --plugin delivery-orchestrator52 skills in this plugin
/actions-automationThis skill should be used when building automation on GitHub Actions beyond CI — manual and external triggers, scheduled jobs, reusable workflows, composite actions, issue and PR bots, auto-merge, and Dependabot./agentic-patternsPatterns from "Agentic Design Patterns" (Gulli & Sauco, 2025) applied to CD orchestration and state-machine deployment workflows/ci-forensicsThis skill should be used when reading CI logs and diagnosing failures — fetching Actions logs through the GitHub MCP, classifying failures by cause, and distinguishing flaky tests from real regressions.Other plugins' skills for the same job