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/antivibeLast scanned: 5/10/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-10T06:35:05.375Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}antivibe is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mohi-devhub. Learn what AI writes, not just accept it. A Claude Code skill that turns AI-generated code into educational deep dives. It has 658 GitHub stars.
Yes. antivibe passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/mohi-devhub/antivibe" and add it to your Claude Code skills directory (see the Installation section above). antivibe ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
antivibe is primarily written in Shell. It is open-source under mohi-devhub on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh antivibe against similar tools.
No comments yet. Be the first to share your thoughts!
name: antivibe description: Code learning and audit framework. Analyze any codebase — new, legacy, or AI-generated — and produce educational explanations or architectural audits. Use when the user wants to understand WHAT and WHY behind any code, not just accept it. triggers:
AntiVibe generates learning-focused explanations or architectural audits of any code — AI-generated, legacy, or otherwise. It helps developers understand:
Works on any codebase — you don't need recent git history or AI-authored files.
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
The exact sections depend on the output mode (see Output Mode):
| Section | compact (default) |
full |
|---|---|---|
| Overview — what the code does and why it exists | ✅ | ✅ |
| Key Components / Concepts — design patterns, algorithms, CS concepts used | ✅ | ✅ |
| Code Walkthrough — file-by-file, line-by-line notes | — | ✅ |
| Learning Resources — curated docs, tutorials, videos | — | ✅ |
| Related Code — links to other files in the codebase | — | ✅ |
Concepts listed here will not be explained in full — the explainer will only note that they were used and in what context. Edit this list to match your current knowledge.
known_concepts:
- async/await
- React hooks
- REST APIs
Controls how much detail is generated per run. Default is compact to keep token costs low.
output_mode: compact
| Mode | What's included |
|---|---|
compact (default) |
Overview, key components (function-level, one line each), concepts (what + why only). No resources. No line-by-line. Max 5 files. |
full |
Everything in compact, plus: line-by-line walkthrough, prerequisites, curated resources, Next Steps. |
Override inline in your request:
"/antivibe full", "full deep dive", "include resources" → full modecompactSets the explanation depth when no level is specified in the request. Options: junior, mid, senior. Default: mid.
default_level: mid
| Level | Behavior |
|---|---|
junior |
Define all terms. Use analogies. Explain language features. Show full code snippets with inline comments. |
mid |
Skip basics. Focus on design decisions and trade-offs. Brief code references only. |
senior |
Skip obvious patterns. Focus only on non-obvious choices, edge cases, and architectural trade-offs. |
Level can also be specified inline in the request:
"explain for a junior", "I'm new to this" → junior"I know the basics", "mid level" → mid"senior mode", "skip the basics", "just the trade-offs" → seniorBefore analyzing, read the configuration above:
known_concepts skip list. Any concept in this list will be acknowledged in one sentence instead of fully explained.default_level. Apply this level consistently throughout the entire output.senior, route to agents/auditor.md instead of continuing this workflow.Use the first applicable mode:
Explicit — User named specific files, a directory, or a module in their request → use those directly. No git needed. Example: "explain src/auth/" or "walk me through api/routes.py".
Recent — No explicit target given, project is a git repo, and git diff HEAD has output → use those changed files (current behavior for post-AI-task learning).
Scan — No explicit target, no usable git diff (legacy project, no recent changes, or not a git repo) → ask the user: "Which file, directory, or module would you like to analyze?" Do not attempt to guess.
The code does not need to be AI-generated. AntiVibe analyzes any code.
For each file:
For each concept/pattern found:
Only run this step in full mode. Skip entirely in compact mode.
Search for and include:
Create markdown file in deep-dive/ folder:
[component]-[timestamp].mdoutput_mode config (default: compact)templates/deep-dive.md. Include all sections. No 5-file limit — analyze every file in scope; for very large inputs, split the output across multiple deep-dive files rather than truncating.AntiVibe 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" (recent AI code)
→ Mode: Recent (git diff). Output: deep-dive/auth-system-2026-01-15.md
Input: "Walk me through src/payments/" (explicit target — legacy codebase)
→ Mode: Explicit. Analyzes files in that directory directly, no git needed.
Input: "Deep dive" (no target, legacy project with no recent changes) → Mode: Scan. Asks: "Which file or module would you like to analyze?"
Input: "Audit this, just the trade-offs" (senior mode)
→ Routes to agents/auditor.md. Produces architectural audit, not an explanation.
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:
⚡ 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.
| Feature | Description |
|---|---|
| Deep Dives | Generate comprehensive learning guides from any code |
| Audit Mode | Senior-level architectural audit — decisions, flags, edge cases, testability |
| Skill Levels | Tune depth to junior, mid, or senior |
| Output Modes | compact (default, low token cost) or full (resources + line-by-line) |
| Known Concepts | Skip list so familiar concepts get a one-line note, not a full explanation |
| Prerequisites | Maps each concept to the foundations you need to understand it first |
| Legacy-Friendly | Works on existing codebases — no git history or AI authorship required |
| Concept Mapping | Connect code to underlying CS principles |
| Curated Resources | Quality links to docs, tutorials, videos |
| 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 (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
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
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
| Setting | Options | Effect |
|---|---|---|
output_mode |
compact / full |
compact keeps token cost low (no resources, no line-by-line); full adds curated resources, prerequisites, and a line-by-line walkthrough |
default_level |
junior / mid / senior |
Sets explanation depth; senior routes to the auditor agent for an architectural audit |
known_concepts |
list | Concepts 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").
Enable automatic deep-dive generation after task completion:
# Copy hooks to your project
cp 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 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
Contributions welcome! To extend AntiVibe:
reference/language-patterns.mdreference/resource-curation.mdtemplates/deep-dive.mdMIT License - Use it, learn from it, share it.