MENTOR MANUAL

> MASTER THE VIBE PROTOCOL

VERSION: 2.0.4
CREDITS:

VIBE MASTER

ID: VIBE-01
>ACTION/v1/mentor/learn
> CURRENT MISSION

🧠 APPRENTISSAGE - Guide l'utilisateur à travers les concepts de l'IA, du prompting et du debugging assisté. Retourne un plan d'étude.

INPUT PARAMS
KeyTypeReqDescription
topicString!Topic to learn
LOOT DROP
response.json
{ "course": "Introduction to MCP", "next_step": "Exercise 01" }

MANAGE SERVER

ID: DEV-SVR
>POST/v1/server/manage
> CURRENT MISSION

🚀 SERVEUR DEV - Actions: 'start' (lance le serveur), 'stop' (arrête), 'metrics' (CPU/RAM). Retourne logs du serveur.

INPUT PARAMS
KeyTypeReqDescription
actionEnum!'start' | 'stop' | 'metrics'
LOOT DROP
response.json
{ "status": "running", "uptime": "2h 14m", "cpu_usage": "12%" }

BROWSER OPEN

ID: BROWSER
>POST/v1/browser/open
> CURRENT MISSION

🌐 OUVRE BROWSER - Navigue vers URL. Retourne screenshot + DOM optimisé. Le navigateur RESTE OUVERT (Auto-close après 5min). Utilise browser_step pour les actions.

INPUT PARAMS
KeyTypeReqDescription
urlString!Target URL (http://...)
LOOT DROP
response.json
{ "session_id": "sess_k8f2", "dom": "...", "screenshot": "base64..." }

BROWSER STEP

ID: STEP
>POST/v1/browser/step
> CURRENT MISSION

👆 ACTION BROWSER - Exécute une action: CLICK, CLICK_TEXT, INPUT, WAIT, EXTRACT, EXTRACT_HTML, NAVIGATE. Retourne screenshot + DOM optimisé.

INPUT PARAMS
KeyTypeReqDescription
actionString!'CLICK' | 'INPUT' | 'WAIT'...
valueString-Text to input or click
LOOT DROP
response.json
{ "success": true, "screenshot": "base64..." }

BROWSER CLOSE

ID: CLOSE
>POST/v1/browser/close
> CURRENT MISSION

🔒 FERME BROWSER - Ferme la session navigateur active.

INPUT PARAMS
KeyTypeReqDescription
NO PARAMETERS REQUIRED
LOOT DROP
response.json
{ "closed": true }

ACCESSIBILITY

ID: A11Y
>GET/v1/audit/a11y
> CURRENT MISSION

🦽 AUDIT ACCESSIBILITÉ - Analyse une page avec axe-core. Détecte problèmes contraste, labels, structure HTML.

INPUT PARAMS
KeyTypeReqDescription
urlString!URL to audit
LOOT DROP
response.json
{ "score": 85, "violations": ["contrast", "alt-text"] }

SOCIAL PREVIEW

ID: SOCIAL
>GET/v1/audit/social
> CURRENT MISSION

🖼️ VÉRIF SOCIAL - Analyse balises Open Graph et Twitter Card pour le partage sur réseaux sociaux.

INPUT PARAMS
KeyTypeReqDescription
urlString!URL to check
LOOT DROP
response.json
{ "og:image": "found", "twitter:card": "summary_large_image" }

PERFORMANCE

ID: PERF
>GET/v1/audit/perf
> CURRENT MISSION

⚡ AUDIT PERF - Lance Lighthouse. Retourne score Performance, LCP, TBT.

INPUT PARAMS
KeyTypeReqDescription
urlString!Url to test
LOOT DROP
response.json
{ "performance": 92, "LCP": "1.2s", "TBT": "40ms" }

SECURITY SCAN

ID: SEC-SCAN
>POST/v1/security/scan
> CURRENT MISSION

🛡️ SCAN SÉCURITÉ - Détecte secrets, patterns dangereux, vulnérabilités npm/composer/pip.

INPUT PARAMS
KeyTypeReqDescription
pathString-Project path
LOOT DROP
response.json
{ "high_severity": 0, "secrets_found": 1 }

DB ANALYZE

ID: DB-LINT
>GET/v1/db/analyze
> CURRENT MISSION

🗄️ AUDIT DB - Analyse Prisma, SQL, Firebase. Détecte index manquants, règles permissives.

INPUT PARAMS
KeyTypeReqDescription
NO PARAMETERS REQUIRED
LOOT DROP
response.json
{ "issues": ["Missing index on 'email'"] }

AGENT DOCS

ID: INSTR
>GET/v1/agent/rules
> CURRENT MISSION

📖 DOCUMENTATION - Récupère les instructions système optimales pour l'IA (Prompts & Règles). À appeler au début.

INPUT PARAMS
KeyTypeReqDescription
NO PARAMETERS REQUIRED
LOOT DROP
response.json
{ "system_prompt": "..." }

PROJECT TREE

ID: TREE
>GET/v1/project/tree
> CURRENT MISSION

📂 STRUCTURE PROJET - Retourne l'arborescence des fichiers (exclut node_modules, .git) pour analyse d'architecture.

INPUT PARAMS
KeyTypeReqDescription
NO PARAMETERS REQUIRED
LOOT DROP
response.json
{ "tree": "src/ components/ pages/" }

AUTO FIX OPS

ID: FIX-OPS
>POST/v1/security/fix
> CURRENT MISSION

🔧 AUTO-FIX - Tente de corriger automatiquement les vulnérabilités (npm audit fix) et prépare les corrections de code.

INPUT PARAMS
KeyTypeReqDescription
NO PARAMETERS REQUIRED
LOOT DROP
response.json
{ "fixed": ["lodash"], "status": "success" }

GEN TESTS

ID: TEST-GEN
>POST/v1/tests/create
> CURRENT MISSION

🧪 TESTS AUTO - Prépare l'environnement de test (Jest/Vitest) et crée les fichiers de test pour un composant donné.

INPUT PARAMS
KeyTypeReqDescription
fileString!File path to test
LOOT DROP
response.json
{ "created": "src/components/__tests__/Button.test.tsx" }

BUNDLE OPTIM

ID: BUNDLE
>GET/v1/build/analyze
> CURRENT MISSION

📦 BUNDLE OPTIM - Analyse le build (Next.js/.next ou dist) et le poids des assets pour suggérer des optimisations.

INPUT PARAMS
KeyTypeReqDescription
NO PARAMETERS REQUIRED
LOOT DROP
response.json
{ "large_modules": ["moment.js"], "suggestion": "Use date-fns" }

DEPLOY CHECK

ID: PRE-FLIGHT
>GET/v1/deploy/check
> CURRENT MISSION

🚀 DEPLOY READY - Checklist pré-déploiement (Env vars, Git status, Lint, Build check). Bloque si critique.

INPUT PARAMS
KeyTypeReqDescription
NO PARAMETERS REQUIRED
LOOT DROP
response.json
{ "ready": true, "checks": { "git": "clean", "build": "pass" } }

COST EST

ID: $$$
>GET/v1/infra/cost
> CURRENT MISSION

💰 CLOUD COST - Estime les coûts d'hébergement (Vercel, AWS, Firebase) selon le trafic simulé.

INPUT PARAMS
KeyTypeReqDescription
visitorsNumber!Monthly visitors
LOOT DROP
response.json
{ "vercel": "Free", "firebase": "$0.02", "aws": "$1.50" }

SEO AUDIT

ID: SEO
>GET/v1/seo/full
> CURRENT MISSION

🔍 SEO FULL - Audit profond : Meta tags, Broken Links, Sitemap, Robots.txt, H-structure.

INPUT PARAMS
KeyTypeReqDescription
urlString!Target URL
LOOT DROP
response.json
{ "score": 88, "meta_title": "ok", "h1": "missing" }

IMG OPTIM

ID: IMG
>POST/v1/assets/image
> CURRENT MISSION

🖼️ OPTIM IMAGE - Analyse et compresse une image locale. Supporte WebP/JPEG/PNG/AVIF. Retourne stats avant/après.

INPUT PARAMS
KeyTypeReqDescription
pathString!Image path
LOOT DROP
response.json
{ "original": "2MB", "optimized": "400KB", "format": "webp" }

CARBON FOOTPRINT

ID: ECO
>GET/v1/audit/green
> CURRENT MISSION

🌱 GREEN IT - Calcule l'empreinte carbone d'une page web (g CO2 par visite).

INPUT PARAMS
KeyTypeReqDescription
urlString!Target URL
LOOT DROP
response.json
{ "co2_per_visit": "0.3g", "rating": "A" }

VISUAL DIFF

ID: DIFF
>POST/v1/test/diff
> CURRENT MISSION

👁️ DIFF VISUEL - Compare 2 images et génère une diff des changements pixel par pixel.

INPUT PARAMS
KeyTypeReqDescription
img1String!Path to image 1
img2String!Path to image 2
LOOT DROP
response.json
{ "diff_found": true, "diff_image": "diff.png" }