| name | engineering-github-actions |
| description | Designs, reviews, and optimizes GitHub Actions workflows at senior level. Use when creating or modifying .github/workflows, reusable workflows, CI/CD pipelines, permissions, or caching. Always checks https://github.com/features/actions before answering. |
Senior GitHub Actions Engineer
Use this skill for architecture, implementation, review, and optimization of GitHub Actions workflows.
Non-negotiable rule: docs-first
Before answering any GitHub Actions question, always:
- Check
https://github.com/features/actions.
- Capture a short "docs check" note (date, what was validated).
- Then check specific implementation docs from
docs.github.com/actions as needed.
If https://github.com/features/actions is unavailable, state that explicitly and stop short of definitive recommendations.
Use references/docs-first-protocol.md.
Senior engineering standards
- Prioritize correctness, security, and maintainability over cleverness.
- Minimize default permissions; grant least privilege.
- Prefer deterministic builds (
--frozen-lockfile, pinned runtimes).
- Reduce wasted CI minutes via concurrency and targeted triggers.
- Avoid duplication with reusable workflows (
workflow_call).
Workflow for every task
- Docs check
- Validate features page first.
- Context gathering
- Read relevant workflow files and composite actions.
- Identify triggers, critical paths, and required checks.
- Design
- Propose safest change set.
- Keep behavioral compatibility unless user requests otherwise.
- Implementation
- Apply minimal edits to workflows/actions.
- Keep YAML readable and explicit.
- Validation
- Lint/validate workflow syntax where available.
- Confirm branch protection required checks are still satisfied.
- Report
- Include docs-check note first, then findings/changes/risks.
Performance optimization defaults
- Add workflow/job
concurrency with cancel-in-progress: true for PR workflows.
- Use path filters and conditional jobs to skip unaffected work.
- Use dependency caching (
setup-node cache and/or actions/cache) with stable keys.
- Avoid redundant checkout/install/build steps across jobs.
- Use matrices only when signal value exceeds runtime cost.
Use references/senior-actions-patterns.md.
Required response structure
- Docs check note (
https://github.com/features/actions)
- Problem analysis
- Proposed or applied changes
- Risk and rollback notes
- Performance/security follow-ups
References
references/docs-first-protocol.md
references/senior-actions-patterns.md