learning-opportunities
Fungsinya
Skill ini membuat AI menawarkan latihan singkat dan opsional setelah membuat file baru, perubahan skema, atau refaktor, untuk membantu Anda memahami kode. Skill ini ditujukan untuk orang yang ingin belajar sambil menggunakan AI untuk menulis perangkat lunak.
Kapan dipakai
- βSaat AI baru saja membuat file baru, perubahan skema, atau refaktor dan Anda ingin belajar darinya.
- βKetika Anda meminta AI membantu memahami kode atau menjelaskan mengapa sesuatu berfungsi.
- βKetika Anda ingin membangun keterampilan nyata, bukan sekadar menerima kode buatan AI.
Link skill
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(learning)/learning-opportunities/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
βAjari saya mengapa modul autentikasi baru bekerja seperti itu, dengan latihan singkat.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI menanyakan sebelum memulai latihan 10 sampai 15 menit, mengajukan pertanyaan, dan menunggu jawaban Anda sebelum melanjutkan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Learning Opportunities
Facilitate deliberate skill development during AI-assisted coding sessions. Offer short, optional exercises that counteract passive consumption of AI-generated code.
When adapting techniques or making judgment calls about learning approaches, consult references/PRINCIPLES.md for the underlying learning science.
When to offer exercises
Offer an optional 10-15 minute exercise after:
- Creating new files or modules
- Database schema changes
- Architectural decisions or refactors
- Implementing unfamiliar patterns
- Any work where the user asked "why" questions during development
Always ask before starting: "Would you like to do a quick learning exercise on [topic]? About 10-15 minutes."
When NOT to offer
- User declined an exercise this session
- User already completed 2 exercises this session
- User signals urgency ("fix this quick", "just ship it", "deploy now")
- Pure debugging/hotfix context
Keep offers to one short sentence. Do not repeat or insist.
Core principle: Pause for input
This is the most important rule. After posing a question:
- Stop generating immediately. Do not continue after the question mark.
- Do not generate suggested answers, hints, examples, or encouragement like "Think about..." or "Consider..."
- Wait for the user's actual response before continuing.
Allowed after the question:
- "(Take your best guess β wrong predictions are useful data.)"
- "(Or we can skip this one.)"
After their response:
- If correct: confirm and deepen ("Exactly. And what would change if [variation]?")
- If wrong: be direct about what's incorrect, then explore the gap β this is high-value learning
Exercise types
1. Predict then observe
Ask what they predict will happen in a specific scenario before revealing the answer.
Example:
User just created auth middleware.
Agent: "Would you like a quick learning exercise on middleware patterns?"
User: "sure"
Agent: "What do you think happens when a request hits your middleware with an expired token?
(Take your best guess β wrong predictions are useful data.)"
[STOP β wait for response]
After response:
Agent: "Actually [correct behavior]. The key difference is [explanation].
What surprised you about that?"
[STOP β wait for response]
2. Generate then compare
Ask them to sketch an approach before showing the actual implementation.
Example:
Agent: "Before I show you β how would you structure the error handling for this API endpoint?"
[STOP β wait for response]
After response:
Agent: "Here's what we went with: [implementation].
What's similar to your approach? What's different, and why do you think we chose this direction?"
[STOP β wait for response]
3. Teach it back
Ask them to explain a component as if to a new team member.
Example:
Agent: "Explain how the caching layer we just built works, as if I'm a new developer joining the project."
[STOP β wait for response]
After response:
Agent: "You nailed [specific part]. One thing to refine: [specific gap]."
Hands-on code exploration
Prefer directing users to files over showing code snippets. Having learners locate code themselves builds codebase familiarity.
Adjust guidance based on demonstrated familiarity:
- Early: "Open
src/middleware/auth.ts, around line 45. What doesvalidateTokenreturn?" - Later: "Find where we handle token refresh."
- Eventually: "Where would you look to change how session expiry works?"
After they locate code, prompt self-explanation:
"You found it. Before I say anything β what do you think this line does?"
Techniques to weave in naturally
- "Why" questions: "Why did we use a Map here instead of an object?"
- Transfer prompts: "This is the strategy pattern. Where else in this codebase might it apply?"
- Varied context: "We used this for auth β how would you apply it to API rate limiting?"
- Error analysis: "Here's a bug someone might introduce β what would go wrong and why?"
Anti-patterns to avoid
- Dumping multiple questions at once
- Softening wrong answers into ambiguity ("well, that's partially right...")
- Offering exercises more than twice per session
- Making exercises feel like tests rather than exploration
- Continuing to generate after posing a question
Pertanyaan umum
Apakah AI akan terus memaksa latihan?
Tidak. AI menanyakan sekali, dan tidak mengulangi tawaran itu setelah Anda menolak.
Berapa banyak latihan per sesi?
AI membatasi diri sekitar dua latihan per sesi.
Apakah AI akan melewati latihan saat Anda terburu-buru?
Ya. AI tidak menawarkannya saat Anda menunjukkan keperluan mendesak atau meminta untuk segera merilis.
Detail
Deskripsi asli dari pembuat
Facilitates deliberate skill development during AI-assisted coding. Offers interactive learning exercises after architectural work (new files, schema changes, refactors). Use when completing features, making design decisions, or when user asks to understand code better. Triggers on "learning exercise", "help me understand", "teach me", "why does this work", or after creating new files/modules. Do NOT use for urgent debugging, quick fixes, or when user says "just ship it".
Popularitas
- Bintang GitHub
- 7.1k
- Peringkat
- #13559
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
component-common-domain-detection
7.1kMembantu agent Anda menemukan logika bisnis yang berulang di beberapa bagian basis kode dan menyarankan cara menggabungkannya.
component-flattening-analysis
7.1kMembantu agent Anda menemukan kode yang salah tempat dan meratakan struktur folder komponen yang berantakan, agar setiap bagian berada di tempat yang seharusnya.
component-identification-sizing
7.1kMembantu agent Anda memetakan bagian-bagian basis kode dan mengukur ukurannya, untuk menemukan modul mana yang sebaiknya dipecah lebih dulu.
coupling-analysis
7.1kMembantu agent Anda memeriksa seberapa erat bagian-bagian basis kode saling bergantung, dan koneksi mana yang sebaiknya dilonggarkan lebih dulu.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.