Add paths-ignore, concurrency groups, and timeout-minutes to existing GitHub Actions workflows.
Type: Command
Trigger: /optimize-runner-usage
Add the cboone/cboone-cc-plugins marketplace in Claude Code:
/plugin marketplace add cboone/cboone-cc-plugins
Then select Optimize Runner Usage from the available plugins.
Scans all workflow files in .github/workflows/, classifies each one by its trigger pattern (CI, Release, Secret scanning, etc.), and adds missing optimizations:
- paths-ignore: Skip CI runs for documentation-only changes (root-level
*.md,docs/**, LICENSE, agent config files) - Concurrency groups: Cancel in-progress runs when new commits are pushed to the same branch
- timeout-minutes: Prevent runaway jobs from consuming unlimited minutes
Each optimization is applied only where appropriate. For example, paths-ignore is added to CI workflows but not to release or secret scanning workflows. Release workflows use cancel-in-progress: false to avoid aborting deployments.
/optimize-runner-usage
- "optimize runner usage": scans workflows and applies all three optimizations
- "add concurrency groups to my workflows": same behavior (all three are checked)
- "reduce CI costs": same behavior
- Setup CI: create CI workflows from scratch (includes these optimizations by default)
- Setup Secret Scanning: add secret scanning workflows
- All plugins