MENTOR MANUAL
> MASTER THE VIBE PROTOCOL
VIBE MASTER
🧠 APPRENTISSAGE - Guide l'utilisateur à travers les concepts de l'IA, du prompting et du debugging assisté. Retourne un plan d'étude.
| Key | Type | Req | Description |
|---|---|---|---|
| topic | String | ! | Topic to learn |
{ "course": "Introduction to MCP", "next_step": "Exercise 01" }MANAGE SERVER
🚀 SERVEUR DEV - Actions: 'start' (lance le serveur), 'stop' (arrête), 'metrics' (CPU/RAM). Retourne logs du serveur.
| Key | Type | Req | Description |
|---|---|---|---|
| action | Enum | ! | 'start' | 'stop' | 'metrics' |
{ "status": "running", "uptime": "2h 14m", "cpu_usage": "12%" }BROWSER OPEN
🌐 OUVRE BROWSER - Navigue vers URL. Retourne screenshot + DOM optimisé. Le navigateur RESTE OUVERT (Auto-close après 5min). Utilise browser_step pour les actions.
| Key | Type | Req | Description |
|---|---|---|---|
| url | String | ! | Target URL (http://...) |
{ "session_id": "sess_k8f2", "dom": "...", "screenshot": "base64..." }BROWSER STEP
👆 ACTION BROWSER - Exécute une action: CLICK, CLICK_TEXT, INPUT, WAIT, EXTRACT, EXTRACT_HTML, NAVIGATE. Retourne screenshot + DOM optimisé.
| Key | Type | Req | Description |
|---|---|---|---|
| action | String | ! | 'CLICK' | 'INPUT' | 'WAIT'... |
| value | String | - | Text to input or click |
{ "success": true, "screenshot": "base64..." }BROWSER CLOSE
🔒 FERME BROWSER - Ferme la session navigateur active.
| Key | Type | Req | Description |
|---|---|---|---|
| NO PARAMETERS REQUIRED | |||
{ "closed": true }ACCESSIBILITY
🦽 AUDIT ACCESSIBILITÉ - Analyse une page avec axe-core. Détecte problèmes contraste, labels, structure HTML.
| Key | Type | Req | Description |
|---|---|---|---|
| url | String | ! | URL to audit |
{ "score": 85, "violations": ["contrast", "alt-text"] }PERFORMANCE
⚡ AUDIT PERF - Lance Lighthouse. Retourne score Performance, LCP, TBT.
| Key | Type | Req | Description |
|---|---|---|---|
| url | String | ! | Url to test |
{ "performance": 92, "LCP": "1.2s", "TBT": "40ms" }SECURITY SCAN
🛡️ SCAN SÉCURITÉ - Détecte secrets, patterns dangereux, vulnérabilités npm/composer/pip.
| Key | Type | Req | Description |
|---|---|---|---|
| path | String | - | Project path |
{ "high_severity": 0, "secrets_found": 1 }DB ANALYZE
🗄️ AUDIT DB - Analyse Prisma, SQL, Firebase. Détecte index manquants, règles permissives.
| Key | Type | Req | Description |
|---|---|---|---|
| NO PARAMETERS REQUIRED | |||
{ "issues": ["Missing index on 'email'"] }AGENT DOCS
📖 DOCUMENTATION - Récupère les instructions système optimales pour l'IA (Prompts & Règles). À appeler au début.
| Key | Type | Req | Description |
|---|---|---|---|
| NO PARAMETERS REQUIRED | |||
{ "system_prompt": "..." }PROJECT TREE
📂 STRUCTURE PROJET - Retourne l'arborescence des fichiers (exclut node_modules, .git) pour analyse d'architecture.
| Key | Type | Req | Description |
|---|---|---|---|
| NO PARAMETERS REQUIRED | |||
{ "tree": "src/ components/ pages/" }AUTO FIX OPS
🔧 AUTO-FIX - Tente de corriger automatiquement les vulnérabilités (npm audit fix) et prépare les corrections de code.
| Key | Type | Req | Description |
|---|---|---|---|
| NO PARAMETERS REQUIRED | |||
{ "fixed": ["lodash"], "status": "success" }GEN TESTS
🧪 TESTS AUTO - Prépare l'environnement de test (Jest/Vitest) et crée les fichiers de test pour un composant donné.
| Key | Type | Req | Description |
|---|---|---|---|
| file | String | ! | File path to test |
{ "created": "src/components/__tests__/Button.test.tsx" }BUNDLE OPTIM
📦 BUNDLE OPTIM - Analyse le build (Next.js/.next ou dist) et le poids des assets pour suggérer des optimisations.
| Key | Type | Req | Description |
|---|---|---|---|
| NO PARAMETERS REQUIRED | |||
{ "large_modules": ["moment.js"], "suggestion": "Use date-fns" }DEPLOY CHECK
🚀 DEPLOY READY - Checklist pré-déploiement (Env vars, Git status, Lint, Build check). Bloque si critique.
| Key | Type | Req | Description |
|---|---|---|---|
| NO PARAMETERS REQUIRED | |||
{ "ready": true, "checks": { "git": "clean", "build": "pass" } }COST EST
💰 CLOUD COST - Estime les coûts d'hébergement (Vercel, AWS, Firebase) selon le trafic simulé.
| Key | Type | Req | Description |
|---|---|---|---|
| visitors | Number | ! | Monthly visitors |
{ "vercel": "Free", "firebase": "$0.02", "aws": "$1.50" }SEO AUDIT
🔍 SEO FULL - Audit profond : Meta tags, Broken Links, Sitemap, Robots.txt, H-structure.
| Key | Type | Req | Description |
|---|---|---|---|
| url | String | ! | Target URL |
{ "score": 88, "meta_title": "ok", "h1": "missing" }IMG OPTIM
🖼️ OPTIM IMAGE - Analyse et compresse une image locale. Supporte WebP/JPEG/PNG/AVIF. Retourne stats avant/après.
| Key | Type | Req | Description |
|---|---|---|---|
| path | String | ! | Image path |
{ "original": "2MB", "optimized": "400KB", "format": "webp" }CARBON FOOTPRINT
🌱 GREEN IT - Calcule l'empreinte carbone d'une page web (g CO2 par visite).
| Key | Type | Req | Description |
|---|---|---|---|
| url | String | ! | Target URL |
{ "co2_per_visit": "0.3g", "rating": "A" }LINK CHECK
🔗 LIENS CASSÉS - Détecte les liens internes 404/500 sur une page.
| Key | Type | Req | Description |
|---|---|---|---|
| url | String | ! | Start URL |
{ "broken": ["/about-us"], "status": 404 }VISUAL DIFF
👁️ DIFF VISUEL - Compare 2 images et génère une diff des changements pixel par pixel.
| Key | Type | Req | Description |
|---|---|---|---|
| img1 | String | ! | Path to image 1 |
| img2 | String | ! | Path to image 2 |
{ "diff_found": true, "diff_image": "diff.png" }