Chuyển đến nội dung
Skillpedia
Lập trình chung7.1k · #13559

learning-opportunities

Skill này làm gì

Skill này để AI đề nghị các bài tập ngắn, không bắt buộc, sau khi tạo file mới, thay đổi schema hoặc tái cấu trúc mã, giúp bạn hiểu code. Skill dành cho người muốn học trong khi dùng AI để viết phần mềm.

Khi nào nên dùng

  • ✓Khi AI vừa tạo file mới, thay đổi schema hoặc tái cấu trúc mã và bạn muốn học từ đó.
  • ✓Khi bạn nhờ AI giúp hiểu mã hoặc giải thích vì sao một thứ hoạt động.
  • ✓Khi bạn muốn xây dựng kỹ năng thật thay vì chỉ chấp nhận mã do AI viết.

Liên kết skill

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(learning)/learning-opportunities/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(learning)/learning-opportunities/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy giải thích cho tôi vì sao module xác thực mới hoạt động như vậy, kèm một bài tập ngắn.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI hỏi trước khi bắt đầu một bài tập khoảng 10 đến 15 phút, đặt một câu hỏi và chờ câu trả lời của bạn rồi mới tiếp tục.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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:

  1. Stop generating immediately. Do not continue after the question mark.
  2. Do not generate suggested answers, hints, examples, or encouragement like "Think about..." or "Consider..."
  3. 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 does validateToken return?"
  • 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
Câu hỏi thường gặp

Skill có liên tục đòi làm bài tập không?

Không. Skill chỉ hỏi một lần và không nhắc lại đề nghị sau khi bạn từ chối.

Mỗi phiên có bao nhiêu bài tập?

Skill giới hạn khoảng hai bài mỗi phiên.

Skill có bỏ qua bài tập khi tôi đang vội không?

Có. Skill không đề nghị bài tập khi bạn cho biết đang gấp hoặc yêu cầu triển khai nhanh.

Chi tiết

Mô tả gốc của tác giả

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".

repo: tech-leads-club/agent-skills

Độ phổ biến

Sao GitHub
7.1k
Vị trí xếp hạng
#13559
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự