by mohi-devhub
Learn what AI writes, not just accept it. A Claude Code skill that turns AI-generated code into educational deep dives.
# Add to your Claude Code skills
git clone https://github.com/mohi-devhub/antivibename: antivibe description: Anti-vibecoding learning framework. Generate detailed explanations of code written by AI with curated external resources for deeper learning. Use when the user wants to understand WHAT and WHY behind AI-generated code, not just accept it. triggers:
AntiVibe generates learning-focused explanations of AI-written code. Not generic summaries - actual educational content that helps developers understand:
Use AntiVibe when:
/antivibe or "deep dive"Output saved to deep-dive/ folder as markdown:
deep-dive/
├── auth-system-2026-01-15.md
├── api-layer-2026-01-15.md
└── database-models-2026-01-15.md
Each file contains:
AntiVibe is a learning-focused code explanation framework that transforms AI-generated code into educational content. Unlike generic code summaries, AntiVibe helps you understand:
⚡ The Problem: AI writes code, developers copy-paste it, nobody learns anything.
🛡️ The Solution: AntiVibe explains the reasoning so you actually understand.
| Feature | Description | |---------|-------------| | Deep Dives | Generate comprehensive learning guides from AI code | | Concept Mapping | Connect code to underlying CS principles | | Curated Resources | Quality links to docs, tutorials, videos | | Phase-Aware | Group explanations by implementation phase | | Auto-Trigger | Optional hooks for automatic generation | | Multi-Language | Works with any language/framework |
# Clone the repository
git clone https://github.com/mohi-devhub/antivibe.git
# Install as a global Claude Code skill
cp -r antivibe ~/.claude/skills/antivibe
/antivibe # Start a deep dive
"deep dive" # Analyze recently written code
"learn from this code" # Generate learning guide
"explain what AI wrote" # Explain specific files
"understand what AI wrote" # Understand design decisions
No comments yet. Be the first to share your thoughts!
For each file:
For each concept/pattern found:
Search for and include:
Create markdown file in deep-dive/ folder:
[component]-[timestamp].mdtemplates/deep-dive.mdAntiVibe can be configured to auto-trigger via hooks:
To enable auto-trigger, configure hooks in your project (see hooks/hooks.json).
Optional scripts in scripts/ folder:
capture-phase.sh - Detect implementation phase boundariesanalyze-code.sh - Parse code structurefind-resources.sh - Search for external resourcesgenerate-deep-dive.sh - Create markdown outputThese are helpers - you can also do everything via direct code analysis.
Input: "Explain the auth system Claude wrote"
Output: deep-dive/auth-system-2026-01-15.md containing:
Input: "I want to understand this API layer"
Output: deep-dive/api-layer-2026-01-15.md containing:
Generate a deep dive and get a file like:
# Deep Dive: Authentication System
## Overview
This auth system uses JWT tokens with refresh token rotation...
## Code Walkthrough
### auth/service.ts
- **Purpose**: Token generation and validation
- **Key Components**:
- `generateTokens()`: Creates access/refresh tokens
- `verifyToken()`: Validates JWT signatures
## Concepts Explained
### JWT (JSON Web Tokens)
- **What**: Stateless authentication tokens...
- **Why**: Server doesn't need to store sessions...
- **When**: APIs, SPAs, microservices...
## Learning Resources
- [JWT.io](https://jwt.io): Official documentation
- [Auth0 Guide](https://auth0.com/blog): Best practices
Saved to: deep-dive/auth-system-2026-04-10.md
Enable automatic deep-dive generation after task completion:
# Copy hooks to your project
cp framework/hooks/hooks.json your-project/.claude/hooks.json
| Hook | When | Use Case |
|------|------|----------|
| SubagentStop | Task completes | Phase-based learning |
| Stop | Session ends | End-of-session summary |
Edit scripts/generate-deep-dive.sh:
OUTPUT_DIR="your-folder" # Default: "deep-dive"
antivibe/
├── SKILL.md # Main skill definition
├── README.md # This file
├── hooks/
│ └── hooks.json # Auto-trigger configuration
├── scripts/
│ ├── capture-phase.sh # Detect implementation phases
│ ├── analyze-code.sh # Parse code structure
│ ├── find-resources.sh # Find external resources
│ └── generate-deep-dive.sh # Generate markdown output
├── agents/
│ └── explainer.md # Subagent for detailed analysis
├── templates/
│ └── deep-dive.md # Output template
├── reference/
│ ├── language-patterns.md # Framework-specific patterns
│ └── resource-curation.md # Curated learning resources
└── docs/
├── PLAN.md # Planning document
└── setup.md # Detailed setup guide
Contributions welcome! To extend AntiVibe:
reference/language-patterns.mdreference/resource-curation.mdtemplates/deep-dive.mdMIT License - Use it, learn from it, share it.