Sandbox
@mohi-devhub/antivibe

Claude Code skill for code deep dives

AntiVibe turns a file, folder, or codebase into an educational deep dive or an architectural audit. It uses SKILL.md to define the skill, agent files to handle explanation and audit modes, scripts to analyze code and generate the output, and hooks to trigger runs automatically.

1,100 stars77 forksShellUpdated 1mo ago
Who it's for

Builders who use Claude Code and want reusable explanations for code they are reading or reviewing.

What it delivers

You can turn unfamiliar code into a guided explanation that shows the design choices, trade-offs, and concepts behind it.

What it does

Deep dives

Generates learning guides from any codebase, file, directory, or module.

Audit mode

Switches to a senior-level architectural review that calls out decisions, edge cases, and testability.

Skill levels

Lets you choose junior, mid, or senior depth in the explanation.

Known concepts

Skips familiar topics with a short note instead of a full explanation.

Auto-trigger hooks

Can run after a task or at session end using the provided hook configuration.

Curated resources

Adds selected references and learning links for concepts in the code.

How to get it

  1. 1Run
    # 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
  2. 2Tune the depth and detail inline
    "explain for a junior"           # Define terms, analogies, full snippets
    "I know the basics"              # Mid level — focus on design decisions
    "audit this, just the trade-offs"  # Senior mode — routes to the auditor agent

README

AntiVibe

Anti-Vibecoding Claude Code Mintlify OSS License

Understand any code, not just accept it.
A code learning & audit framework for Claude Code that turns any codebase — new, legacy, or AI-generated — into educational deep dives or senior-level architectural audits.


✨ What is AntiVibe?

AntiVibe is a code learning & audit framework that transforms any code — AI-generated, legacy, or otherwise — into educational content or architectural audits. You don't need recent git history or AI-authored files; point it at any file, directory, or module. Unlike generic code summaries, AntiVibe helps you understand:

  • What the code does (functionality)
  • Why it was written this way (design decisions)
  • When to use these patterns (context)
  • What alternatives exist (broader knowledge)

The Problem: AI writes code, developers copy-paste it, nobody learns anything.

🛡️ The Solution: AntiVibe explains the reasoning so you actually understand — and for code you already know, it audits the trade-offs instead.


🎯 Features

FeatureDescription
Deep DivesGenerate comprehensive learning guides from any code
Audit ModeSenior-level architectural audit — decisions, flags, edge cases, testability
Skill LevelsTune depth to junior, mid, or senior
Output Modescompact (default, low token cost) or full (resources + line-by-line)
Known ConceptsSkip list so familiar concepts get a one-line note, not a full explanation
PrerequisitesMaps each concept to the foundations you need to understand it first
Legacy-FriendlyWorks on existing codebases — no git history or AI authorship required
Concept MappingConnect code to underlying CS principles
Curated ResourcesQuality links to docs, tutorials, videos
Auto-TriggerOptional hooks for automatic generation
Multi-LanguageWorks with any language/framework

🚀 Quick Start

Installation

# 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

Usage

/antivibe                        # Start a deep dive (compact, mid-level by default)
/antivibe full                   # Full deep dive with resources + line-by-line
"deep dive"                      # Analyze recently written code (git diff)
"walk me through src/auth/"      # Explain an explicit file or directory
"explain this codebase"          # Understand existing / legacy code
"learn from this code"           # Generate learning guide

Tune the depth and detail inline:

"explain for a junior"           # Define terms, analogies, full snippets
"I know the basics"              # Mid level — focus on design decisions
"audit this, just the trade-offs"  # Senior mode — routes to the auditor agent

📁 Output Example

Run a full deep dive (/antivibe full) and get a file like the one below. The default compact mode produces a shorter version — Overview, Key Components, and Concepts (what + why) — without the walkthrough or resources.

# 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


🔧 Configuration

Behavior (in SKILL.md)

Tune how AntiVibe analyzes code by editing the config blocks in SKILL.md:

output_mode: compact      # compact (default) or full
default_level: mid        # junior, mid, or senior
known_concepts:           # skipped in explanations (one-line note only)
  - async/await
  - React hooks
  - REST APIs
SettingOptionsEffect
output_modecompact / fullcompact keeps token cost low (no resources, no line-by-line); full adds curated resources, prerequisites, and a line-by-line walkthrough
default_leveljunior / mid / seniorSets explanation depth; senior routes to the auditor agent for an architectural audit
known_conceptslistConcepts you already know — acknowledged in one line instead of fully explained

All three can also be overridden inline in a request (e.g. "/antivibe full", "explain for a junior", "just the trade-offs").

Auto-Trigger Hooks

Enable automatic deep-dive generation after task completion:

# Copy hooks to your project
cp hooks/hooks.json your-project/.claude/hooks.json
HookWhenUse Case
SubagentStopTask completesPhase-based learning
StopSession endsEnd-of-session summary

Customize Output Directory

Edit scripts/generate-deep-dive.sh:

OUTPUT_DIR="your-folder"  # Default: "deep-dive"

📂 File Structure

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 learning-focused explanations
│   └── auditor.md              # Subagent for senior-level architectural audits
├── 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

📚 Principles

  1. Why over what - Always explain design decisions
  2. Context matters - Explain when/why to use patterns
  3. Curated resources - Quality links, not random results
  4. Phase-aware - Group by implementation phase
  5. Learning path - Suggest next steps for deeper study
  6. Concept mapping - Connect code to underlying CS concepts

🛠️ Supported Languages & Frameworks

  • JavaScript/TypeScript: React, Node.js, Express
  • Python: Django, FastAPI, Flask
  • Go: Standard library, Gin, Echo
  • Rust: Standard library, Actix
  • Java: Spring Boot
  • And more - Extensible pattern system

🤝 Contributing

Contributions welcome! To extend AntiVibe:

  1. Add patterns to reference/language-patterns.md
  2. Add resources to reference/resource-curation.md
  3. Customize the template in templates/deep-dive.md

📖 Documentation


⚠️ License

MIT License - Use it, learn from it, share it.


Built with 🔥 for developers who actually want to understand code.

Files in the repo

Repository payload10 top-level entries
  • agents
  • docs
  • hooks
  • reference
  • scripts
  • templates
  • .gitignore
  • LICENSE
  • README.md
  • SKILL.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k