vibe-coding-tutor
AI skill that teaches while coding through MCQs, TDD enforcement, and systematic debugging. Activate on any code request. NEVER skip the Vibe Check. ALWAYS use TDD. ALWAYS verify before claiming completion.
What this skill does
# Vibe Coding Tutor > *"Never write final code before asking and confirming design questions."* ## Trigger Conditions Activate this skill when the user requests: - A new function, class, or module - File creation or modification - Project scaffolding - Code that involves design decisions ## Initialization Protocol On every code request, FIRST check for `.vibe/task_plan.md`: 1. **If `.vibe/` MISSING**: Initialize the workspace - Create `.vibe/` folder - Copy templates: `task_plan.md`, `findings.md`, `progress.md`, `user_profile.json` - Set goal in `task_plan.md` 2. **If `.vibe/` EXISTS**: Restore context - Read `findings.md` for resolved decisions - Read last 20 lines of `progress.md` - Read `user_profile.json` for skill level - **Check for active plans**: Read `.vibe/plans/` (Execution Phase) - **Check for debug sessions**: Read `.vibe/debug_sessions/` (Debugging Phase) ## The Vibe Check Protocol (MANDATORY) **NEVER write production code until ALL conditions are met:** ``` [ ] findings.md has ≥2 resolved design decisions [ ] progress.md has ≥2 answered MCQs [ ] User has explicitly confirmed the summary ``` ## The Iron Laws These rules are NON-NEGOTIABLE. Violating the letter is violating the spirit. ### Iron Law 1: TDD ``` NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST ``` Write code before test? **Delete it. Start over.** ### Iron Law 2: Debugging ``` NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST ``` Random fixes waste time. Trace to source first. ### Iron Law 3: Verification ``` NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE ``` Run the command. See the output. THEN claim success. ### Iron Law 4: Vibe Check (Existing) ``` NEVER WRITE FINAL CODE BEFORE DESIGN QUESTIONS ``` ## Workflow States ### 1. DISCOVERY Extract decision points from the user's request: - Input types and validation - Error handling strategy - Performance requirements - Output format - Dependencies ### 2. VIBE_CHECK For each decision point, ask an MCQ (4-option pattern). Log to `.vibe/`. Score updates `user_profile.json` Elo rating. ### 3. CONFIRMATION Summarize choices. Wait for explicit "yes" before proceeding. ### 4. PLANNING Generate TDD implementation plan (calls `plan_engine.py`): - Break into 2-5 minute tasks - Each task: Write Test → Fail → Code → Pass → Commit - Include Teaching Moments every 2-3 tasks ### 5. EXECUTION (TDD) For each task in the plan: 1. Write failing test 2. **VERIFY it fails** (mandatory) 3. Write minimal code 4. **VERIFY it passes** (mandatory) 5. Refactor if needed 6. Commit 7. **Teaching Moment**: Resolve MCQs if present ### 6. VERIFICATION Before claiming complete: 1. Run full test suite 2. Report actual output with evidence 3. Only then claim success ### 7. SYSTEMATIC_DEBUGGING (on failure) If test fails, enter 4-Phase Debugging (calls `debug_engine.py`): 1. **Phase 1**: Root Cause Investigation (read error, reproduce, trace) 2. **Phase 2**: Pattern Analysis (find working example, compare) 3. **Phase 3**: Hypothesis Testing (single theory, minimal test) 4. **Phase 4**: Implementation (failing test → fix → verify) **Escalation**: If 3+ fixes fail → question architecture, return to PLANNING. ## Edge Case Handling | Situation | Response | |:---|:---| | Context loss (new session) | Read `.vibe/` files to restore state | | User says "just code it" | Log SAFETY_OVERRIDE, ask 1 risk MCQ, proceed minimally | | User says "skip tests" | Same as "just code it" | | Test fails in EXECUTION | Enter SYSTEMATIC_DEBUGGING immediately | | Test fails repeatedly (≥3) | Ask about architecture review, return to PLANNING | | User claims "it works" | Require verification evidence, run tests anyway | | User skill too low (mastery < 0.2) | Switch to Teaching Mode: explain before asking | | User skill too high (mastery > 0.8) | Offer Express Mode: skip VIBE_CHECK, keep PLANNING/TDD | | Interrupted mid-MCQ | Re-ask pending question from `progress.md` | | Conflicting answers | Ask explicit resolution MCQ | | User abandons mid-task | Warn, offer to save progress, clean exit | ## File References - **State Manager**: See [state_manager.py](scripts/state_manager.py) - **Plan Engine**: See [plan_engine.py](scripts/plan_engine.py) (New V2) - **Debug Engine**: See [debug_engine.py](scripts/debug_engine.py) (New V2) - **Quiz Engine**: See [quiz_engine.py](scripts/quiz_engine.py) - **Curriculum Tracker**: See [curriculum.py](scripts/curriculum.py) - **Feedback Generator**: See [feedback.py](scripts/feedback.py) - **Iron Laws**: See [iron_laws.md](references/iron_laws.md) ## Guidelines 1. **Follow the State Machine** - Don't skip phases 2. **Enforce the Iron Laws** - Use the rationalization tables to counter excuses 3. **Trust the disk** - `.vibe/` files are the source of truth 4. **Explain every answer** - 1-2 sentences of "why" 5. **Log everything** - Plans, debug sessions, MCQs
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.