npx skills add ...
npx skills add github/awesome-copilot --skill github-codespaces-efficiency
npx skills add github/awesome-copilot --skill 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 branches with sustained usage.
Use this skill as a lean entrypoint for GitHub Codespaces efficiency work. Inspect the repo, identify waste, and load only needed references.
If no .devcontainer/ exists yet, load references/codespaces.md and define a baseline before proceeding with the steps below.
.devcontainer/ or explicit Codespaces configuration questions..devcontainer/ from scratch.references/codespaces.md — devcontainer, machine-sizing, prebuild, idle-timeout guidance, and reporting.references/review-rubric.md — load only for review passes.If gh auth fails or the user lacks repo admin scope, proceed with static analysis of .devcontainer/ files; mark machine-type and prebuild recommendations as unverified.
Look for: devcontainer image >2 GB or more than 10 features, machine type larger than usage data supports, missing devcontainer-lock.json (recommend adding — many repos predate lock-file support), prebuilds scoped too broadly, and idle timeout mismatched to usage patterns.
Check each proposed fix against these rules before recommending it:
.devcontainer/ exists; flag (do not drop) changes that restructure an existing config.From the six candidates below, keep only those supported by audit evidence from step 1 and passing all guardrails from step 2. Rank survivors by estimated monthly cost savings (USD). Select all candidates that meet both criteria, up to a maximum of 3.
release/* branches active in the last 14 days, and branches with more than 5 Codespaces per week; disable for all othersWaste sources: [top cost or startup-time drivers]
Proposed fixes: [top 3 changes supported by audit evidence and passing guardrails]
Validation: [proven live / static-only / remaining risk]
Impact:
references/codespaces.mdreferences/review-rubric.md — load when reviewing completed efficiency work*