get_ai_usage_guide
Provides context-specific usage tips and best practices for AI assistants in development workflows, including when to trigger achievements, use voice packs, and integrate gamification patterns.
Instructions
๐ค Get context-specific usage tips and best practices for AI assistants using this MCP server. Provides recommendations on when to trigger achievements, how to use voice packs effectively, and integration patterns for gamifying development workflows.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | ๐ฏ Context for usage guide. Options: 'coding' (during code writing/refactoring), 'testing' (during test execution), 'debugging' (when fixing bugs), 'deployment' (during deployment processes), 'general' (general usage patterns). If omitted, returns comprehensive guide. Examples: 'coding', 'debugging' |
Implementation Reference
- index.js:561-731 (handler)Primary handler function implementing the get_ai_usage_guide tool logic. Builds a detailed markdown guide with context-specific recommendations for using Quake achievements in coding workflows.async getAIUsageGuide(args) { const { context } = args; let guide = `๐ค **ENHANCED QUAKE ARENA - AI USAGE GUIDE** ๐ค\n\n`; guide += `๐ Learn when and how to trigger Quake sounds for optimal coding motivation!\n\n`; if (context && context !== 'all') { // Context-specific guidance const contexts = { debugging: { title: "๐ DEBUGGING BATTLES", triggers: [ "First bug found โ ๐ฏ FIRST BLOOD", "Bug fixed quickly โ ๐ฏ HUMILIATION achievement", "Complex bug solved โ ๐ฏ WICKED SICK achievement", "All bugs defeated โ ๐ฏ DOMINATING achievement" ], examples: [ "๐ Bug located! ๐ฏ First blood!", "โ Bug defeated! ๐ฏ HUMILIATION for that pesky error!", "๐ง Brilliant debugging! ๐ฏ WICKED SICK!" ] }, features: { title: "๐ FEATURE DEVELOPMENT", triggers: [ "Feature complete โ ๐ฏ EXCELLENT achievement", "Multiple features โ ๐ฏ RAMPAGE achievement", "Complex implementation โ ๐ฏ DOMINATING achievement", "Perfect implementation โ ๐ฏ PERFECT achievement" ], examples: [ "โ Feature implemented! ๐ฏ EXCELLENT achievement at 80% volume!", "๐ 3 features complete! ๐ฏ RAMPAGE! You're on fire!", "๐ก Perfect implementation! ๐ฏ PERFECT achievement!" ] }, quality: { title: "โจ CODE QUALITY MOMENTS", triggers: [ "Clean code โ ๐ฏ PERFECT achievement", "Elegant solution โ ๐ฏ IMPRESSIVE achievement", "Excellent code โ ๐ฏ EXCELLENT achievement", "Legendary code โ ๐ฏ GODLIKE achievement" ], examples: [ "๐งน Code refactored beautifully! ๐ฏ PERFECT achievement!", "๐ก Elegant solution! ๐ฏ IMPRESSIVE achievement!", "๐ Legendary implementation! ๐ฏ GODLIKE at 100% volume!" ] }, productivity: { title: "๐ PRODUCTIVITY STREAKS", triggers: [ "Quick succession tasks โ ๐ฏ RAMPAGE achievement", "Unstoppable progress โ ๐ฏ UNSTOPPABLE achievement", "Major milestone โ ๐ฏ DOMINATING achievement", "Session start โ ๐ฏ PREPARE TO FIGHT" ], examples: [ "โก 3 tasks in quick succession! ๐ฏ RAMPAGE achievement!", "๐ฅ You're unstoppable! ๐ฏ UNSTOPPABLE achievement!", "๐ฏ Time to code! PREPARE TO FIGHT achievement!" ] } }; const ctx = contexts[context]; if (ctx) { guide += `${ctx.title}\n\n`; guide += `**๐ฏ When to Trigger:**\n`; ctx.triggers.forEach(trigger => { guide += `โข ${trigger}\n`; }); guide += `\n**๐ฌ Example Responses:**\n`; ctx.examples.forEach(example => { guide += `โข ${example}\n`; }); } } else { // Complete guide guide += `## โก **INSTANT TRIGGER CHEAT SHEET**\n\n`; guide += `### **Code Quality Moments:**\n`; guide += `โข "Perfect code" โ ๐ฏ **PERFECT** achievement\n`; guide += `โข "Excellent solution" โ ๐ฏ **EXCELLENT** achievement\n`; guide += `โข "Brilliant approach" โ ๐ฏ **IMPRESSIVE** achievement\n`; guide += `โข "Clean implementation" โ ๐ฏ **PERFECT** at 70% volume\n\n`; guide += `### **Problem Solving Victories:**\n`; guide += `โข "First bug found" โ ๐ฏ **FIRST BLOOD**\n`; guide += `โข "Bug defeated" โ ๐ฏ **HUMILIATION** achievement\n`; guide += `โข "Clever solution" โ ๐ฏ **WICKED SICK** achievement\n`; guide += `โข "Breakthrough moment" โ ๐ฏ **DOMINATING** achievement\n\n`; guide += `### **Productivity Streaks:**\n`; guide += `โข "3 tasks complete" โ ๐ฏ **RAMPAGE** achievement\n`; guide += `โข "Quick succession" โ ๐ฏ **RAMPAGE** at 80% volume\n`; guide += `โข "On a roll" โ ๐ฏ **DOMINATING** achievement\n`; guide += `โข "Unstoppable" โ ๐ฏ **UNSTOPPABLE** achievement\n\n`; guide += `### **Exceptional Achievements:**\n`; guide += `โข "Legendary solution" โ ๐ฏ **GODLIKE** at 100% volume\n`; guide += `โข "Amazing work" โ ๐ฏ **GODLIKE** achievement\n`; guide += `โข "Incredible" โ ๐ฏ **GODLIKE** at 90% volume\n`; guide += `โข "Mind-blowing" โ ๐ฏ **GODLIKE** at 100% volume\n\n`; guide += `### **Project Start:**\n`; guide += `โข "Let's code" โ ๐ฏ **PREPARE TO FIGHT** achievement\n`; guide += `โข "Time to start" โ ๐ฏ **PREPARE TO FIGHT** achievement\n`; guide += `โข "Begin coding" โ ๐ฏ **PREPARE TO FIGHT** achievement\n\n`; guide += `## ๐ **VOLUME GUIDELINES**\n\n`; guide += `โข **30-50%:** Small victories, minor fixes, subtle celebrations\n`; guide += `โข **60-80%:** Good solutions, feature completion, moderate excitement\n`; guide += `โข **90-100%:** Exceptional achievements, breakthroughs, major celebrations\n\n`; guide += `## โ **DO's AND โ DON'Ts**\n\n`; guide += `**โ DO use for:**\n`; guide += `โข User expresses satisfaction with solution\n`; guide += `โข Code runs successfully without errors\n`; guide += `โข Creative or clever problem solving\n`; guide += `โข Multiple quick wins in succession\n`; guide += `โข Learning moments and breakthroughs\n\n`; guide += `**โ DON'T overuse for:**\n`; guide += `โข Every single line of code\n`; guide += `โข Simple explanations or routine tasks\n`; guide += `โข Failed attempts or errors\n`; guide += `โข When user is frustrated\n`; guide += `โข Unremarkable accomplishments\n\n`; guide += `## ๐ **SAMPLE AI RESPONSES**\n\n`; guide += `\`\`\n`; guide += `โ Perfect implementation! ๐ฏ Play perfect achievement at 70% volume\n\n`; guide += `๐ Bug found and fixed! ๐ฏ First blood!\n\n`; guide += `๐ Feature complete! ๐ฏ Excellent achievement at 80% volume\n\n`; guide += `๐ก Brilliant solution! ๐ฏ Impressive achievement at 85% volume\n\n`; guide += `๐ That's legendary! ๐ฏ GODLIKE ACHIEVEMENT at 100% volume!\n`; guide += `\`\`\n\n`; guide += `## ๐ช **CONTEXTUAL EXAMPLES**\n\n`; guide += `**Early Morning Coding:**\n`; guide += `User: "Time to start coding for the day!"\n`; guide += `AI: "โ Coffee ready! ๐ฏ Prepare to fight achievement! Let's make today productive!"\n\n`; guide += `**Debugging Session:**\n`; guide += `User: "Finally found that annoying bug!"\n`; guide += `AI: "๐ฏ First blood! ๐ฏ HUMILIATION for the bug that challenged you!"\n\n`; guide += `**Feature Development:**\n`; guide += `User: "This API endpoint works perfectly!"\n`; guide += `AI: "โ Perfect implementation! ๐ฏ Perfect achievement!"\n\n`; guide += `**Complex Problem:**\n`; guide += `User: "This solution is incredible!"\n`; guide += `AI: "๐ Legendary work! ๐ฏ GODLIKE ACHIEVEMENT at 100% volume!"\n`; } guide += `\n\n๐ฏ **ENHANCED QUAKE ARENA - MAKING EVERY CODING SESSION EPIC!** ๐ฎโจ`; guide += `\n๐ Available achievements: ${Object.keys(ENHANCED_ACHIEVEMENTS).length}`; guide += `\n๐ง Current volume: ${enhancedStats.volume}%`; return { success: true, message: "๐ค AI usage guide retrieved! Master the art of motivational coding!", guide: guide, context: context || 'all', available_achievements: Object.keys(ENHANCED_ACHIEVEMENTS).length }; }
- index.js:309-322 (registration)Tool registration including name, description, and input schema definition for get_ai_usage_guide in the ListTools response.{ name: "get_ai_usage_guide", description: "๐ค AI Usage Guide: Learn when and how to trigger Quake sounds for optimal coding motivation", inputSchema: { type: "object", properties: { context: { type: "string", description: "๐ฏ Get specific guidance for contexts like debugging, feature development, code review", enum: ["debugging", "features", "quality", "productivity", "all"], }, }, }, },
- index.js:226-227 (schema)Dispatch case in the central CallToolRequestSchema handler that routes to the getAIUsageGuide method.case "get_ai_usage_guide": return await this.getAIUsageGuide(args);
- src/tools/guides.ts:64-123 (registration)Alternative tool registration and inline handler in guides.ts module for registering guide tools on an MCP server.server.registerTool( "get_ai_usage_guide", { description: "๐ค Get context-specific usage tips and best practices for AI assistants using this MCP server. Provides recommendations on when to trigger achievements, how to use voice packs effectively, and integration patterns for gamifying development workflows.", inputSchema: { context: z.enum(["coding", "testing", "debugging", "deployment", "general"]).optional().describe("๐ฏ Context for usage guide. Options: 'coding' (during code writing/refactoring), 'testing' (during test execution), 'debugging' (when fixing bugs), 'deployment' (during deployment processes), 'general' (general usage patterns). If omitted, returns comprehensive guide. Examples: 'coding', 'debugging'"), }, annotations: { title: "๐ค Get AI Usage Guide", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, async ({ context }) => { const contextGuides: Record<string, string> = { coding: `๐ป Coding Context: - Trigger EXCELLENT/PERFECT when code passes linting - Use IMPRESSIVE for creative solutions - Play FIRST BLOOD when starting a new feature - Use GODLIKE for completing major refactoring - Switch to female voice for variety`, testing: `๐งช Testing Context: - Play FIRST BLOOD when first test passes - Use MULTI KILL for multiple passing tests - Trigger WICKED SICK for 100% test coverage - Use HOLY SHIT for unexpected test discoveries`, debugging: `๐ Debugging Context: - Play FIRST BLOOD when finding the bug - Use HEADSHOT for quick bug fixes - Trigger HUMILIATION for fixing embarrassing bugs - Use BOTTOM FEEDER when learning from mistakes`, deployment: `๐ Deployment Context: - Play PREPARE TO FIGHT before deployment - Use RAMPAGE for successful deployments - Trigger GODLIKE for zero-downtime deployments - Use PLAY to celebrate going live`, general: `๐ General Usage: - Set volume to 60-80% for comfortable listening - Switch between male/female voices for variety - Use random achievements for surprise celebrations - Track stats to see your productivity patterns - Combine achievements for epic moments` }; const guide = context ? contextGuides[context] : Object.entries(contextGuides).map(([ctx, text]) => text).join('\n\n'); return { content: [{ type: "text", text: `๐ค AI Usage Guide${context ? ` (${context} context)` : ''}\n\n${guide}\n\n๐ก Pro Tips:\n- Use voiceGender parameter to override default voice\n- Check stats regularly to track progress\n- Combine multiple achievements for epic moments\n- Adjust volume based on environment (lower in shared spaces)` }], context: context || "all", guide }; } );