Skip to content

2 new efficiency skills to reduce cost and wasted cpu cycles in github actions and codespaces#1766

Open
mutl3y wants to merge 1 commit into
github:stagedfrom
mutl3y:workflow_cost
Open

2 new efficiency skills to reduce cost and wasted cpu cycles in github actions and codespaces#1766
mutl3y wants to merge 1 commit into
github:stagedfrom
mutl3y:workflow_cost

Conversation

@mutl3y
Copy link
Copy Markdown

@mutl3y mutl3y commented May 19, 2026

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, or workflow file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, or workflow with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the staged branch for this pull request.

Description

Adds 2 new skills,

  • github-actions-efficiency skill focused on reducing GitHub Actions waste.
  • github-codespaces-efficiency skill focused on reducing GitHub Codespaces waste.

These skills provide:

  • A lean SKILL.md entry point with scope, workflow, output shape, and review rubric.
  • Focused references for Actions audits, Codespaces optimization, reporting, and concrete patterns.
  • Updated generated skills documentation via npm run build.

Validation run locally:

  • node ./eng/validate-skills.mjs
  • npm run build

Type of Contribution

  • New skill file.
  • Update to existing instruction, prompt, agent, plugin, skill, or workflow.

Additional Notes

This PR targets staged and is opened from the contributor fork branch mutl3y:workflow_cost.


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

@github-actions github-actions Bot added new-submission PR adds at least one new contribution skills PR touches skills labels May 19, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Skill Validator Results

✅ All checks passed

Scope Checked
Skills 2
Agents 1
Total 3
Severity Count
--- ---:
❌ Errors 0
⚠️ Warnings 0
ℹ️ Advisories 0

Summary

Level Finding
ℹ️ Found 2 skill(s)
ℹ️ [github-actions-efficiency] 📊 github-actions-efficiency: 866 BPE tokens [chars/4: 1,051] (detailed ✓), 10 sections, 1 code blocks
ℹ️ [github-codespaces-efficiency] 📊 github-codespaces-efficiency: 734 BPE tokens [chars/4: 904] (detailed ✓), 10 sections, 1 code blocks
ℹ️ ✅ All checks passed (2 skill(s))
Full validator output ```text Found 2 skill(s) [github-actions-efficiency] 📊 github-actions-efficiency: 866 BPE tokens [chars/4: 1,051] (detailed ✓), 10 sections, 1 code blocks [github-codespaces-efficiency] 📊 github-codespaces-efficiency: 734 BPE tokens [chars/4: 904] (detailed ✓), 10 sections, 1 code blocks ✅ All checks passed (2 skill(s)) ```

@mutl3y mutl3y marked this pull request as ready for review May 19, 2026 10:07
Copilot AI review requested due to automatic review settings May 19, 2026 10:07
@mutl3y mutl3y requested a review from aaronpowell as a code owner May 19, 2026 10:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds two new agent skills aimed at reducing GitHub Actions and GitHub Codespaces spend by guiding Copilot through opinionated audits, fix prioritization, and reporting. The skills follow the existing skills/ layout (SKILL.md plus references/ material) and are registered in the generated skills index.

Changes:

  • New github-actions-efficiency skill with SKILL.md and four references (actions, patterns, reporting, review-rubric).
  • New github-codespaces-efficiency skill with SKILL.md and two references (codespaces, review-rubric).
  • Generated update to docs/README.skills.md listing both new skills.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
skills/github-actions-efficiency/SKILL.md Entry point describing when/how to apply the Actions efficiency workflow.
skills/github-actions-efficiency/references/actions.md Detailed Actions audit, gating, matrix and live-validation guidance.
skills/github-actions-efficiency/references/patterns.md Canonical YAML snippets for caching, concurrency, paths, matrices.
skills/github-actions-efficiency/references/reporting.md Rules for before/after reporting and follow-up review pass.
skills/github-actions-efficiency/references/review-rubric.md Rubric for reviewing completed Actions efficiency work.
skills/github-codespaces-efficiency/SKILL.md Entry point describing the Codespaces efficiency workflow.
skills/github-codespaces-efficiency/references/codespaces.md Devcontainer/machine/prebuild audit and reporting guidance.
skills/github-codespaces-efficiency/references/review-rubric.md Rubric for reviewing completed Codespaces efficiency work.
docs/README.skills.md Adds index entries for both new skills.

```bash
find .devcontainer -maxdepth 2 -type f
gh codespace list
gh api /repos/{owner}/{repo}/codespaces/new?machine=machine-name
Copy link
Copy Markdown
Contributor

@aaronpowell aaronpowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions/comments on the skills and a small nit

Comment on lines +23 to +24

If the task is Codespaces-related, use the `github-codespaces-efficiency` skill instead.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is needed. There's nothing in the description that would encourage the agent to use this skill if it's for a codespace, so this just adds tokens to the context that aren't meaningful.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about a note in here about ensuring a devcontainer-lock.json file? This is something only relatively recently added so a lot of repos won't have it

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The skill is only focusing on analysing existing usages of devcontainers/codespaces, would it be worthwhile adding a little to this still to help onboard those?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-submission PR adds at least one new contribution skills PR touches skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants