vibe-learn

Structured 4-phase learning-while-vibe-coding workflow for developers tackling tickets involving unfamiliar protocols, unfamiliar codebase architecture, or tricky concurrency/systems concepts. Activate when the user wants to learn along while solving a ticket, requests a pre-flight protocol/codebase brief, asks for an interactive concurrency or protocol visualizer, wants to spawn the background shadow-tutor subagent, wants a PR Defense Check, or wants to view or update their portable Learning Hub.

vibe-learn とは?

vibe-learn is a Antigravity agent skill that structured 4-phase learning-while-vibe-coding workflow for developers tackling tickets involving unfamiliar protocols, unfamiliar codebase architecture, or tricky concurrency/systems concepts. Activate when the user wants to learn along while solving a ticket, requests a pre-flight protocol/codebase brief, asks for an interactive concurrency or protocol visualizer, wants to spawn the background shadow-tutor subagent, wants a PR Defense Check, or wants to view or update their portable Learning Hub.

対応~Claude Code~Codex CLI~Cursor✓Antigravity
npx skills add https://github.com/zabatistas/keep-learning/tree/HEAD/skills/vibe-learn

Installed? Explore more 生産性&コラボレーション skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Vibe-Learn: Guided Mastery While Vibe Coding

Use this skill to help a developer ship their ticket quickly and deeply understand every protocol concept, architectural boundary, and concurrency primitive the LLM writes—while indexing every lesson in a portable Learning Hub (<LEARNING_HUB_DIR>).


Step 0: Resolve & Initialize the Portable <LEARNING_HUB_DIR>

Never hardcode a machine-specific path. Run the helper script resolve-hub.sh (or resolve manually) to locate and auto-bootstrap the user's Learning Hub:

  1. $VIBE_LEARN_HUB (if set in environment)
  2. ~/.config/vibe-learn/hub_path (written by install.sh when the user or teammate installs vibe-learn)
  3. <workspace-root>/.vibe-learn/learnings (when a team shares learnings inside a project repo)
  4. ~/.vibe-learn/learnings (zero-config personal fallback)

If <LEARNING_HUB_DIR>/index.html or INDEX.md do not exist yet, resolve-hub.sh automatically copies dashboard-template.html into <LEARNING_HUB_DIR>/index.html and creates INDEX.md.


The 4-Phase Agentic Workflow (+ Portable Learning Hub Archival)

You can execute all 4 phases end-to-end when tackling a ticket, or jump directly to the phase the user asks for.

Phase 1: The Pre-Flight Concept Brief (Before Coding)

Before writing the fix, orient the developer in under 90 seconds of reading:

  1. 60-Second Protocol / Domain Primer: Explain only the slice of the protocol (e.g., WireGuard/Tailscale NAT traversal, STUN/DERP fallback, keepalives) needed for this ticket. Use a Mermaid sequence or state diagram.
  2. Codebase Mini-Map: Identify the 2–4 key files/structs involved with clickable file:// links and explain who calls whom.
  3. Interactive Concept Sandbox (Generative UI):
    • Read the generative_ui skill if available in your environment.
    • Build a compact (<480px tall) interactive HTML widget in the artifact directory and embed it inline with <agent-embed src="file:///<artifact_path>/<widget>.html"></agent-embed>.
    • Also save a copy to <LEARNING_HUB_DIR>/<YYYY-MM-DD>-<topic-slug>/sandbox.html so it lives permanently in the user's Learning Hub.

Phase 2: Glass-Box Vibe Coding (Writing the Code)

When implementing the ticket:

  1. Write clean, well-tested code that solves the ticket and run tests to verify.
  2. Add Educational Micro-Comments only where non-obvious concurrency or protocol invariants exist.
  3. Include a Learning Anchor summary in chat:
    • Why this concurrency pattern? (e.g., sync.RWMutex vs sync.Mutex, channel-close broadcast vs point-to-point send, select with time.NewTimer).
    • The "Delete-This-Line" Bomb: Explicitly name one line in the diff and explain what race condition, deadlock, or protocol bug happens if a developer deletes it.

Phase 3: The Background shadow-tutor Subagent & Learning Hub Update

To keep the main coding conversation fast while building a permanent library of lessons:

  1. Invoke shadow-tutor via invoke_subagent in the background (or generate directly if the subagent is read-only) to produce a comprehensive LEARNING_GUIDE.md containing:
    • Layer 1: Protocol / Domain Mental Model
    • Layer 2: Codebase Call-Graph & State Transitions
    • Layer 3: Concurrency & Systems Mechanics anchored to exact code lines
    • 3 "What-If" mutation experiments
    • 3 Expandable <details><summary> PR review flashcards
  2. Persist & Index in <LEARNING_HUB_DIR> Using Relative Links:
    • Save the guide to <LEARNING_HUB_DIR>/<YYYY-MM-DD>-<topic-slug>/LEARNING_GUIDE.md (as well as the conversation artifact directory).
    • Register the new entry using relative paths (./<YYYY-MM-DD>-<topic-slug>/LEARNING_GUIDE.md and ./<YYYY-MM-DD>-<topic-slug>/sandbox.html) in both:
      • <LEARNING_HUB_DIR>/INDEX.md
      • <LEARNING_HUB_DIR>/index.html (add the new entry to the LEARNINGS JavaScript array so it immediately appears in the searchable browser dashboard).

Phase 4: The PR Defense Check (Mock Senior Reviewer)

Once the code passes tests, switch into Supportive Senior Reviewer Mode:

  1. Use ask_question (or ask 2–3 targeted questions in chat) simulating a real PR review on the exact lines just written:
    • Question 1 (Protocol Layer): Why the protocol behaves a specific way in an edge case.
    • Question 2 (Concurrency Layer): What happens under concurrent load or different lock ordering.
    • Question 3 (State / Architecture Layer): How state transitions or callers react under race conditions.
  2. After the developer answers, confirm what they nailed, fill in any blind spots referencing the exact code lines, and link them to their updated Learning Hub dashboard (<LEARNING_HUB_DIR>/index.html).

関連スキル