Analyzes a GitHub Actions workflow file for performance, cost, and security issues, then produces a prioritized optimization report with code snippets and estimated savings.
How this command is triggered — by the user, by Claude, or both
Slash command
/github-actions-toolkit:optimize-workflow workflow-fileThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Optimize Workflow Analyze a GitHub Actions workflow file and provide optimization recommendations. ## Context - Workflow file: !`[ -f "$1" ] && cat "$1" || find .github/workflows -name "*.yml" -o -name "*.yaml" | head -5` - Repository structure: !`ls -la` ## Your Task Analyze the GitHub Actions workflow and provide specific optimization recommendations. ### Arguments - `$1`: Path to workflow file (optional, will search .github/workflows if not provided) ### Steps 1. **Identify the workflow file** - If argument provided, use that file - Otherwise, list workflows in .github/w...
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:
npx claudepluginhub p/armanzeroeight-github-actions-toolkit-plugins-github-actions-toolkit/optimize-workflowAnalyzes AI workflow execution patterns, identifies bottlenecks, and recommends optimization strategies for task decomposition, agent assignment, execution patterns, and cost reduction.