Analyzes a GitHub Actions workflow file and provides optimization recommendations for performance, cost, and best practices. Accepts an optional workflow file path.
Ships in github-actions-toolkit. Installing the plugin adds it to Claude Code.
Analyze a GitHub Actions workflow file and provide optimization recommendations.
[ -f "$1" ] && cat "$1" || find .github/workflows -name "*.yml" -o -name "*.yaml" | head -5ls -laAnalyze the GitHub Actions workflow and provide specific optimization recommendations.
$1: Path to workflow file (optional, will search .github/workflows if not provided)Identify the workflow file
Analyze workflow structure
Performance optimizations
Cost optimizations
Best practices
Security recommendations
permissions are set appropriatelyProvide specific recommendations
# Workflow Optimization Report
## Summary
- Current jobs: X
- Estimated runtime: Y minutes
- Potential improvements: Z
## High Priority
1. [Issue description]
- Impact: [time/cost savings]
- Fix: [code snippet]
## Medium Priority
...
## Low Priority
...
## Optimized Workflow
[Provide optimized version of key sections]
Analyze specific workflow:
/optimize-workflow .github/workflows/ci.yml
Analyze workflows in repository:
/optimize-workflow
Expected output:
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
/github-actions-toolkit:optimize-workflow [workflow-file]from github-actions-toolkit
npx claudepluginhub armanzeroeight/fastagent-plugins --plugin github-actions-toolkitOther plugins' commands for the same job