Agent Skills: GitHub Actions Optimiser

This skill should be used when the user asks to "optimise GitHub Actions", "improve my workflow", "make actions better", "review workflow usage", "how are others using this action", "find best practices for GitHub Actions", or wants to gather real-world context on how GitHub Actions are used to improve their workflows.

UncategorizedID: kaihendry/skills/actions-optimiser

Install this agent skill to your local

pnpm dlx add-skill https://github.com/kaihendry/skills/tree/HEAD/actions-optimiser

Skill Files

Browse the full folder contents for actions-optimiser.

Download Skill

Loading file tree…

actions-optimiser/SKILL.md

Skill Metadata

Name
actions-optimiser
Description
This skill should be used when the user asks to "optimise GitHub Actions", "improve my workflow", "make actions better", "review workflow usage", "how are others using this action", "find best practices for GitHub Actions", or wants to gather real-world context on how GitHub Actions are used to improve their workflows.

GitHub Actions Optimiser

Gather real-world usage context for GitHub Actions and recommend improvements to workflow files.

Process

Step 1: Search for How an Action Is Used

When a GitHub workflow in .github/workflows/ uses an action such as:

uses: hashicorp/setup-terraform@v3

Search for real-world usage with the pre-installed gh CLI:

gh search code "setup-terraform path:.github/workflows"

Step 2: View Search Results with Context

Use the pattern /repos/{owner}/{repo}/contents/{path} to look up at least five results in parallel. For example:

gh api repos/Sofiane-Truman/cloud-foundation-fabric/contents/.github/workflows/linting.yml | jq -r '.content' | base64 -d | less

Step 3: Check Authoritative Usage

Given the earlier example of hashicorp/setup-terraform@v3, the canonical source repository is https://github.com/hashicorp/setup-terraform. Study the README.md for official guidance.

Step 4: Plan Optimisations

Identify how the GitHub workflow can be improved. Prefer the latest version of actions and keep to defaults where possible. Find and explore novel yet succinct usages from the GitHub search results.