github-codespaces-efficiency
Skill47 starsChanged 4 months agoMITView on GitHub
Use when optimizing GitHub Codespaces — faster startup times, lower spend, slimmer devcontainers, right-sizing machines, or scoping prebuilds.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- github/awesome-copilotedited, first seen Sep 23, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- github/awesome-copilot★ 40k10% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository111 other files it gives its agents.
- AGENTS.mdAGENTS.md
- COPILOT-INSTRUCTIONS.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- ai-visibilitySkill
- content-strategySkill
- seoSkill
- actions-debuggingSkill
- agentic-engineeringSkill
- autopilot-patternsSkill
- background-agentSkill
- context-primeSkill
- copilot-memorySkill
- cross-session-memorySkill
- ecosystem-intakeSkill
- fleet-parallelSkill
- github-code-searchSkill
- github-issue-triageSkill
- github-pr-workflowSkill
- ide-switchingSkill
- knowledge-curatorSkill
- mcp-builderSkill
- mcp-ecosystemSkill
- multi-model-strategySkill
- plan-mode-masterySkill
- scope-guardSkill
- session-managementSkill
- stack-detectorSkill
- sub-agent-sandboxingSkill
- task-intake-routerSkill
- team-plannerSkill
- token-cost-optimizerSkill
- api-and-interface-designSkill
- code-reviewSkill
- context-engineeringSkill
- cpp-debuggingSkill
- deprecation-and-migrationSkill
- diagnoseSkill
- fix-build-errorsSkill
- fix-github-issueSkill
- implementSkill
- improve-codebase-architectureSkill
- nestjs-prismaSkill
- nextjs-prismaSkill
- performance-optimizationSkill
- pr-multi-perspective-reviewSkill
- prototypeSkill
- react-vitestSkill
- receiving-code-reviewSkill
- refactor-cleanSkill
- reviewSkill
- skill-creatorSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- zoom-outSkill
- add-to-changelogSkill
- api-documentationSkill
- architecture-decisionsSkill
- code-tourSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 50
If no .devcontainer/ exists yet, start with codespaces.md and define a minimal baseline before optimizing.
- Very specific: line 64
If gh auth fails or the user lacks repo admin scope, continue with static analysis of .devcontainer/ files and mark machine-type or …
- Distinctive: line 78
Do not remove tools the team uses every day.
- Distinctive: line 79
Do not assume smaller is always better.
- Distinctive: line 80
Do not turn the devcontainer into a production image unless the team explicitly needs it.
- Distinctive: line 81
Prefer incremental changes for existing configs.
- Distinctive: line 92
remove unused extensions or port-forwarding rules
- Distinctive: line 95
Keep only evidence-backed, guardrail-safe recommendations.
- Distinctive: line 99
Start a test Codespace when possible and confirm that devcontainer changes still build and boot correctly.
- Distinctive: line 101
Treat startup or build regressions as real bugs even if the configuration looks "cleaner" on paper.
- Distinctive: line 114
Prefer documentation changes when the real control lives outside the repository
- Distinctive: line 115
Keep prebuild recommendations tight and usage-based
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Codespaces Efficiency
Audit GitHub Codespaces efficiency with a GitHub-native lens. Focus on devcontainer size, startup time, machine sizing, prebuild scope, and idle-time discipline without stripping away tools the team relies on every day.
Why This is Copilot-Exclusive
GitHub Codespaces is a GitHub-native development environment. This skill is most useful when
you can inspect repository configuration, correlate it with gh-based Codespaces metadata,
and turn the result into Copilot-driven GitHub workflow guidance.
When to Use
- Codespaces start too slowly or cost more than the team expects
.devcontainer/exists and needs trimming, right-sizing, or prebuild tuning- A team wants guidance on machine sizing, idle timeout, or prebuild scope
- The repository is onboarding Codespaces for the first time and needs a minimal baseline
When NOT to Use
| Instead of github-codespaces-efficiency | Use |
| Debugging a failing GitHub Actions run | actions-debugging |
| Reviewing PR lifecycle and checks | github-pr-workflow |
| General local development environment setup without Codespaces | ordinary repo setup guidance |
Prerequisites
- Access to
.devcontainer/when it exists ghCLI access if you want live Codespaces or machine data- Understanding of the team's baseline tooling requirements
Load Only What You Need
../../../references/github-codespaces-efficiency/codespaces.md- audit order, preferred fix order, safe-change rules, and reporting focus../../../references/github-codespaces-efficiency/review-rubric.md- compact rubric for review passes
If no .devcontainer/ exists yet, start with codespaces.md and define a minimal baseline
before optimizing.
Core Workflow
1. Measure first
Get-ChildItem .devcontainer -Recurse -File | Select-Object -ExpandProperty FullName
gh codespace list
$repo = gh repo view --json nameWithOwner --jq ".nameWithOwner"
gh api "/repos/$repo/codespaces/machines"If gh auth fails or the user lacks repo admin scope, continue with static analysis of
.devcontainer/ files and mark machine-type or prebuild recommendations as unverified.
Look for:
- devcontainer image larger than the task justifies
- too many features, packages, or extensions
- machine types larger than usage patterns support
- missing
devcontainer-lock.json - prebuilds scoped too broadly
- idle timeout guidance mismatched to actual usage
2. Apply guardrails
- Do not remove tools the team uses every day.
- Do not assume smaller is always better; balance cost against developer throughput.
- Do not turn the devcontainer into a production image unless the team explicitly needs it.
- Prefer incremental changes for existing configs; a greenfield reset is for missing configs, not stable ones.
- Split repo-editable changes from org-level or user-level Codespaces settings.
3. Select the top 3 fixes
Rank by expected monthly savings or startup-time improvement:
- trim the devcontainer
- right-size the machine type
- scope prebuilds to sustained-usage branches
- tune idle timeout
- remove unused extensions or port-forwarding rules
- reduce image size and improve layer caching
Keep only evidence-backed, guardrail-safe recommendations. Return up to three.
4. Verify
- Start a test Codespace when possible and confirm that devcontainer changes still build and boot correctly.
- Validate machine sizing against observed usage when telemetry exists; otherwise mark it as an assumption.
- Treat startup or build regressions as real bugs even if the configuration looks "cleaner" on paper.
Required Output
- Waste sources - top startup-time or cost drivers
- Proposed fixes - up to 3 recommendations backed by audit evidence
- Validation - live, static-only, and unverified areas
- Impact - expected versus measured startup time, spend, and utilization
Tips
- Optimize the slowest, most common developer path first
- Separate startup-time wins from steady-state cost wins
- Prefer documentation changes when the real control lives outside the repository
- Keep prebuild recommendations tight and usage-based
See Also
github-pr-workflow- manage GitHub pull requests and related checksactions-debugging- debug workflow failures that block Codespaces-related changesusing-git-worktrees- isolate risky environment changes in a separate checkout
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

