Skip to content

Commit f5d2839

Browse files
author
Mark Heynes
committed
split skill into 2 and applied further context saving by moving reporting into refeences
1 parent 8273d32 commit f5d2839

9 files changed

Lines changed: 126 additions & 26 deletions

File tree

docs/README.skills.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md#adding-skills) for guidelines on how to
177177
| [geofeed-tuner](../skills/geofeed-tuner/SKILL.md)<br />`gh skills install github/awesome-copilot geofeed-tuner` | Use this skill whenever the user mentions IP geolocation feeds, RFC 8805, geofeeds, or wants help creating, tuning, validating, or publishing a self-published IP geolocation feed in CSV format. Intended user audience is a network operator, ISP, mobile carrier, cloud provider, hosting company, IXP, or satellite provider asking about IP geolocation accuracy, or geofeed authoring best practices. Helps create, refine, and improve CSV-format IP geolocation feeds with opinionated recommendations beyond RFC 8805 compliance. Do NOT use for private or internal IP address management — applies only to publicly routable IP addresses. | `assets/example`<br />`assets/iso3166-1.json`<br />`assets/iso3166-2.json`<br />`assets/small-territories.json`<br />`references/rfc8805.txt`<br />`references/snippets-python3.md`<br />`scripts/templates` |
178178
| [git-commit](../skills/git-commit/SKILL.md)<br />`gh skills install github/awesome-copilot git-commit` | Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping | None |
179179
| [git-flow-branch-creator](../skills/git-flow-branch-creator/SKILL.md)<br />`gh skills install github/awesome-copilot git-flow-branch-creator` | Intelligent Git Flow branch creator that analyzes git status/diff and creates appropriate branches following the nvie Git Flow branching model. | None |
180-
| [github-actions-codespaces-efficiency](../skills/github-actions-codespaces-efficiency/SKILL.md)<br />`gh skills install github/awesome-copilot github-actions-codespaces-efficiency` | Audit and improve GitHub Actions and Codespaces efficiency. Use this skill when a user wants to reduce CI minutes, cancel redundant runs, add dependency caching, narrow workflow triggers with path filters, slim devcontainers, right-size Codespaces, tune idle timeout guidance, or scope prebuilds to high-value branches. | `references/actions.md`<br />`references/codespaces.md`<br />`references/patterns.md`<br />`references/reporting.md` |
180+
| [github-actions-efficiency](../skills/github-actions-efficiency/SKILL.md)<br />`gh skills install github/awesome-copilot github-actions-efficiency` | Audit and improve GitHub Actions workflow efficiency. Use this skill when a user wants to reduce CI minutes, cancel redundant runs, add dependency caching, narrow workflow triggers with path filters, reduce matrix breadth, or optimize job parallelism. | `references/actions.md`<br />`references/patterns.md`<br />`references/reporting.md`<br />`references/review-rubric.md` |
181+
| [github-codespaces-efficiency](../skills/github-codespaces-efficiency/SKILL.md)<br />`gh skills install github/awesome-copilot github-codespaces-efficiency` | Audit and improve GitHub Codespaces efficiency. Use this skill when a user wants faster Codespaces startup, lower Codespaces spend, slim devcontainers, right-size machines, tune idle timeout, or scope prebuilds to high-value branches. | `references/codespaces.md`<br />`references/review-rubric.md` |
181182
| [github-copilot-starter](../skills/github-copilot-starter/SKILL.md)<br />`gh skills install github/awesome-copilot github-copilot-starter` | Set up complete GitHub Copilot configuration for a new project based on technology stack | None |
182183
| [github-issues](../skills/github-issues/SKILL.md)<br />`gh skills install github/awesome-copilot github-issues` | Create, update, and manage GitHub issues using MCP tools. Use this skill when users want to create bug reports, feature requests, or task issues, update existing issues, add labels/assignees/milestones, set issue fields (dates, priority, custom fields), set issue types, manage issue workflows, link issues, add dependencies, or track blocked-by/blocking relationships. Triggers on requests like "create an issue", "file a bug", "request a feature", "update issue X", "set the priority", "set the start date", "link issues", "add dependency", "blocked by", "blocking", or any GitHub issue management task. | `references/dependencies.md`<br />`references/images.md`<br />`references/issue-fields.md`<br />`references/issue-types.md`<br />`references/projects.md`<br />`references/search.md`<br />`references/sub-issues.md`<br />`references/templates.md` |
183184
| [github-release](../skills/github-release/SKILL.md)<br />`gh skills install github/awesome-copilot github-release` | Guides IA through releasing a new version of a GitHub library end-to-end. Handles SemVer versioning and Keep a Changelog formatting automatically. | `references/commit-classification.md`<br />`references/semver-rules.md` |

skills/github-actions-codespaces-efficiency/SKILL.md renamed to skills/github-actions-efficiency/SKILL.md

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
11
---
2-
name: github-actions-codespaces-efficiency
3-
description: 'Audit and improve GitHub Actions and Codespaces efficiency. Use this skill when a user wants to reduce CI minutes, cancel redundant runs, add dependency caching, narrow workflow triggers with path filters, slim devcontainers, right-size Codespaces, tune idle timeout guidance, or scope prebuilds to high-value branches.'
2+
name: github-actions-efficiency
3+
description: 'Audit and improve GitHub Actions workflow efficiency. Use this skill when a user wants to reduce CI minutes, cancel redundant runs, add dependency caching, narrow workflow triggers with path filters, reduce matrix breadth, or optimize job parallelism.'
44
---
55

6-
# GitHub Actions and Codespaces Efficiency
6+
# GitHub Actions Efficiency
77

8-
Use this skill as a lean entrypoint for GitHub Actions and Codespaces efficiency work. Keep the hot path small: inspect the repo, identify the waste source, then load only the reference material needed for the current task.
8+
Use this skill as a lean entrypoint for GitHub Actions efficiency work. Keep the hot path small: inspect the repo, identify the waste source, then load only the reference material needed for the current task.
99

1010
## Use This Skill When
1111

1212
- The user wants to reduce GitHub Actions runtime, CI cost, or wasted workflow runs.
13-
- The user wants faster Codespaces startup or lower Codespaces spend.
14-
- The repo has `.github/workflows/*.yml`, a `.devcontainer/`, or explicit Codespaces configuration questions.
15-
- The user asks for caching, concurrency, path filters, matrix reduction, prebuild strategy, machine sizing, or idle-timeout guidance.
13+
- The repo has `.github/workflows/*.yml` and explicit GitHub Actions configuration questions.
14+
- The user asks for caching, concurrency, path filters, matrix reduction, job optimization, or workflow-specific fixes.
1615

1716
## Load Only What You Need
1817

1918
Start with the repo configuration, then load references selectively:
2019

2120
- Read [`references/actions.md`](./references/actions.md) for GitHub Actions audits, job gating, matrix reduction, live validation, and workflow-specific fixes.
22-
- Read [`references/codespaces.md`](./references/codespaces.md) for devcontainer, machine-sizing, prebuild, and idle-timeout guidance.
2321
- Read [`references/reporting.md`](./references/reporting.md) when the user asks what changed, wants a before/after efficiency report, or wants another review pass over the remaining expensive jobs.
2422
- Read [`references/patterns.md`](./references/patterns.md) only when you need concrete YAML or configuration examples during implementation.
2523

26-
If the task is CI-only, do not load the Codespaces reference. If the task is Codespaces-only, do not load the Actions reference.
24+
If the task is Codespaces-related, use the `github-codespaces-efficiency` skill instead.
2725

2826
## Core Workflow
2927

@@ -35,15 +33,14 @@ Inspect the current configuration before proposing changes:
3533
- Dependency installation and cache behavior
3634
- Whether docs-only or config-only changes trigger heavy validation
3735
- Whether matrix breadth matches the actual decision being made
38-
- Whether devcontainers or Codespaces defaults are oversized
36+
- Job parallelism and critical path analysis
3937

4038
Start with a compact repo audit like this:
4139

4240
```bash
43-
rg -n "on:|concurrency:|paths:|paths-ignore:|strategy:|matrix:|cache:" .github/workflows .devcontainer
41+
rg -n "on:|concurrency:|paths:|paths-ignore:|strategy:|matrix:|cache:" .github/workflows
4442
gh run list --limit 10
4543
gh run view --log-failed
46-
find .devcontainer -maxdepth 2 -type f
4744
```
4845

4946
### 2. Rank fixes by payoff
@@ -55,7 +52,7 @@ Prefer this order unless repo context says otherwise:
5552
3. Remove duplicate workflow coverage before merging jobs together
5653
4. Narrow workflow or job triggers safely
5754
5. Reduce matrix breadth to match risk and event type
58-
6. Trim oversized devcontainer or Codespaces defaults
55+
6. Optimize job parallelism while preserving critical path
5956

6057
### 3. Keep changes conservative
6158

@@ -88,20 +85,9 @@ For measured impact, separate:
8885
- Total runner time across jobs
8986
- Jobs or matrix legs avoided entirely
9087

91-
## Review Rubric
92-
93-
Use this rubric when reviewing current or updated efficiency work:
94-
95-
- `Scope discipline`: only relevant domain guidance was loaded
96-
- `Safety`: required validation coverage was preserved
97-
- `Token efficiency`: the skill or report stayed focused on the active task
98-
- `Measurement quality`: expected and measured gains were clearly separated
99-
100-
If one rubric dimension is weak, call that out explicitly instead of averaging it away.
101-
10288
## References
10389

10490
- [`references/actions.md`](./references/actions.md)
105-
- [`references/codespaces.md`](./references/codespaces.md)
10691
- [`references/reporting.md`](./references/reporting.md)
10792
- [`references/patterns.md`](./references/patterns.md)
93+
- [`references/review-rubric.md`](./references/review-rubric.md) — load when reviewing completed efficiency work

skills/github-actions-codespaces-efficiency/references/actions.md renamed to skills/github-actions-efficiency/references/actions.md

File renamed without changes.

skills/github-actions-codespaces-efficiency/references/patterns.md renamed to skills/github-actions-efficiency/references/patterns.md

File renamed without changes.

skills/github-actions-codespaces-efficiency/references/reporting.md renamed to skills/github-actions-efficiency/references/reporting.md

File renamed without changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Review Rubric
2+
3+
Load this reference when reviewing current or updated efficiency work.
4+
5+
Use this rubric:
6+
7+
- `Scope discipline`: only GitHub Actions guidance was loaded
8+
- `Safety`: required validation coverage was preserved
9+
- `Token efficiency`: the skill or report stayed focused on the active task
10+
- `Measurement quality`: expected and measured gains were clearly separated
11+
12+
If one rubric dimension is weak, call that out explicitly instead of averaging it away.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
name: github-codespaces-efficiency
3+
description: 'Audit and improve GitHub Codespaces efficiency. Use this skill when a user wants faster Codespaces startup, lower Codespaces spend, slim devcontainers, right-size machines, tune idle timeout, or scope prebuilds to high-value branches.'
4+
---
5+
6+
# GitHub Codespaces Efficiency
7+
8+
Use this skill as a lean entrypoint for GitHub Codespaces efficiency work. Keep the hot path small: inspect the repo, identify the waste source, then load only the reference material needed for the current task.
9+
10+
## Use This Skill When
11+
12+
- The user wants faster Codespaces startup or lower Codespaces spend.
13+
- The repo has a `.devcontainer/` or explicit Codespaces configuration questions.
14+
- The user asks for devcontainer optimization, machine sizing, prebuild strategy, or idle-timeout guidance.
15+
16+
## Load Only What You Need
17+
18+
Start with the repo configuration, then load references selectively:
19+
20+
- Read [`references/codespaces.md`](./references/codespaces.md) for devcontainer, machine-sizing, prebuild, idle-timeout guidance, and reporting.
21+
22+
If the task is GitHub Actions-related, use the `github-actions-efficiency` skill instead.
23+
24+
## Core Workflow
25+
26+
### 1. Measure first
27+
28+
Inspect the current configuration before proposing changes:
29+
30+
- Whether devcontainers or Codespaces defaults are oversized
31+
- Machine type selection and whether it matches actual development needs
32+
- Prebuild configuration and which branches have prebuilds enabled
33+
- Idle timeout settings and usage patterns
34+
- Extension and port forwarding overhead
35+
36+
Start with a compact repo audit like this:
37+
38+
```bash
39+
find .devcontainer -maxdepth 2 -type f
40+
gh codespace list
41+
gh api /repos/{owner}/{repo}/codespaces/new?machine=machine-name
42+
```
43+
44+
### 2. Rank fixes by payoff
45+
46+
Prefer this order unless repo context says otherwise:
47+
48+
1. Trim oversized devcontainer or Codespaces defaults
49+
2. Right-size machine types based on actual usage patterns
50+
3. Configure prebuilds for high-value branches only
51+
4. Tune idle timeout to match development habits
52+
5. Remove unnecessary extensions or port forwards
53+
6. Optimize devcontainer image size and layer caching
54+
55+
### 3. Keep changes conservative
56+
57+
- Do not remove required development tools or extensions that are essential for the workflow.
58+
- Do not assume smaller machines always mean better productivity; balance cost with developer experience.
59+
- Treat prebuild configuration as a trade-off between storage cost and startup time.
60+
- Prefer incremental changes over complete devcontainer rewrites.
61+
- Separate repo-editable changes from GitHub/org settings recommendations.
62+
63+
### 4. Verify in GitHub when possible
64+
65+
Configuration changes should be tested when possible.
66+
67+
- Validate machine sizing by monitoring actual resource usage.
68+
- Use a test Codespace to verify devcontainer changes work as expected.
69+
- Treat unexpected behavior as a real bug even when the configuration looks correct.
70+
71+
## Required Output Shape
72+
73+
When using this skill, keep the response compact and structured around these four sections:
74+
75+
1. `Waste sources`: the top cost or latency drivers you found
76+
2. `Proposed fixes`: the small set of highest-confidence changes
77+
3. `Validation`: what was proven live, what was only checked locally, and any remaining risk
78+
4. `Impact`: expected savings separately from measured savings
79+
80+
For measured impact, separate:
81+
82+
- Codespace startup time
83+
- Monthly spend reduction
84+
- Resource utilization improvement
85+
86+
## References
87+
88+
- [`references/codespaces.md`](./references/codespaces.md)
89+
- [`references/review-rubric.md`](./references/review-rubric.md) — load when reviewing completed efficiency work

skills/github-actions-codespaces-efficiency/references/codespaces.md renamed to skills/github-codespaces-efficiency/references/codespaces.md

File renamed without changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Review Rubric
2+
3+
Load this reference when reviewing current or updated efficiency work.
4+
5+
Use this rubric:
6+
7+
- `Scope discipline`: only Codespaces guidance was loaded
8+
- `Safety`: required development capabilities were preserved
9+
- `Token efficiency`: the skill or report stayed focused on the active task
10+
- `Measurement quality`: expected and measured gains were clearly separated
11+
12+
If one rubric dimension is weak, call that out explicitly instead of averaging it away.

0 commit comments

Comments
 (0)