github-codespaces-efficiency
Fungsinya
Tool ini membantu membuat GitHub Codespaces lebih cepat dan lebih hemat. Tool ini menganalisis pengaturan Anda untuk menemukan pemborosan dan menyarankan perbaikan.
Kapan dipakai
- βSaat Anda ingin Codespaces Anda mulai lebih cepat.
- βUntuk mengurangi biaya GitHub Codespaces Anda.
- βSaat menyiapkan lingkungan pengembangan (devcontainer) baru atau mengoptimalkan yang sudah ada.
Link skill
https://github.com/github/awesome-copilot/blob/main/skills/github-codespaces-efficiency/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBagaimana cara mengoptimalkan lingkungan Codespaces saya agar pengeluaran lebih hemat dan startnya lebih cepat?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Tool ini pertama-tama memeriksa lingkungan Anda saat ini untuk melihat apa yang paling banyak memakan waktu atau biaya. Setelah itu, tool ini mengusulkan hingga tiga perbaikan, misalnya dengan menyesuaikan ukuran mesin atau menyederhanakan konfigurasi.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
GitHub Codespaces Efficiency
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.
Use This Skill When
- The user wants faster Codespaces startup or lower Codespaces spend.
- The repo has a
.devcontainer/or explicit Codespaces configuration questions. - The user asks for devcontainer optimization, machine sizing, prebuild strategy, or idle-timeout guidance.
- The user is setting up Codespaces for the first time or needs help creating a new
.devcontainer/from scratch.
Load Only What You Need
references/codespaces.mdβ devcontainer, machine-sizing, prebuild, idle-timeout guidance, and reporting.references/review-rubric.mdβ load only for review passes.
Core Workflow
1. Measure first
find .devcontainer -maxdepth 2 -type f
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, 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.
2. Apply guardrails
Check each proposed fix against these rules before recommending it:
- Does not remove tools the team uses every day β drop any fix that strips required development tools or extensions.
- Does not assume smaller is always better β balance machine cost against developer experience and throughput.
- Does not turn the devcontainer into a production image β drop any fix that adds production-only dependencies unless the team explicitly requires it.
- Incremental changes preferred β a greenfield baseline is appropriate only when no
.devcontainer/exists; flag (do not drop) changes that restructure an existing config. - Repo changes stay separate from org settings β split any fix that mixes repo-editable files with org-level or user-level Codespaces settings into two distinct recommendations.
3. Select the top 3 fixes
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.
- Trim devcontainer β remove features, packages, or extensions not needed for everyday development work; target image <2 GB and fewer than 10 features
- Right-size machine type β match to observed usage patterns; if data is unavailable, state assumptions explicitly
- Scope prebuilds β enable for the default branch,
release/*branches active in the last 14 days, and branches with more than 5 Codespaces per week; disable for all others - Tune idle timeout β 30 min default; 15 min if most sessions end before 30 min; 60 min if most sessions run longer
- Remove unused extensions or port-forwarding rules
- Reduce devcontainer image size and improve layer caching
4. Verify
- Start a test Codespace to confirm devcontainer changes build and start as expected.
- Validate machine sizing against observed usage when telemetry is available; otherwise mark as unverified.
- Treat unexpected build or startup failures as real bugs even when the configuration looks correct.
Required Output
Waste 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:
- Startup time: [expected] / [measured if available]
- Monthly spend: [expected] / [measured if available]
- Resource utilization: [expected] / [measured if available]
References
references/codespaces.mdreferences/review-rubric.mdβ load when reviewing completed efficiency work
Pertanyaan umum
Apa itu 'devcontainer'?
Devcontainer adalah file yang mendefinisikan bagaimana lingkungan pengembangan Anda disiapkan di Codespaces, termasuk alat dan program apa saja yang perlu dipasang.
Apa maksud 'right-size machine type'?
Maksudnya adalah memilih jenis mesin di Codespaces yang sesuai dengan kebutuhan Anda, tidak terlalu kuat (dan mahal) dan tidak terlalu lemah (dan lambat).
Apa itu 'prebuilds'?
Prebuilds adalah lingkungan pengembangan yang sudah dibangun sebelumnya sehingga Codespace bisa lebih cepat dimulai. Namun, prebuilds perlu diatur dengan benar agar tidak menimbulkan biaya yang tidak perlu.
Detail
Deskripsi asli dari pembuat
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.
repo: github/awesome-copilot
Popularitas
- Bintang GitHub
- 40k
- Peringkat
- #7227
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
acquire-codebase-knowledge
40kMembantu agent Anda memahami dan mendokumentasikan proyek kode yang sudah ada. Berguna untuk proses onboarding anggota baru atau mendapatkan gambaran arsitektur.
acreadiness-assess
40kMemungkinkan agent Anda menilai kesiapan proyek untuk AI dan membuat laporannya. Berguna untuk mengetahui seberapa siap proyek menggunakan alat AI.
acreadiness-generate-instructions
40kMembantu agent Anda membuat instruksi untuk alat AI berdasarkan hasil penilaian. Berguna untuk meningkatkan cara AI berinteraksi dengan kode dan menutup celah yang ditemukan.
acreadiness-policy
40kMemungkinkan agent Anda membantu menyusun atau menerapkan kebijakan untuk penilaian proyek AI. Berguna untuk menstandarisasi evaluasi proyek dan memastikan kepatuhan.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.