miyabi__analyze_task_intent
Analyzes user prompts to classify tasks as development-related or general, enabling appropriate routing for processing.
Instructions
ユーザーのタスクを分析し、開発関連か一般タスクかを判定します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | 分析するユーザーのプロンプト |
Implementation Reference
- src/handlers.js:146-160 (handler)The core handler function for the 'miyabi__analyze_task_intent' tool. It uses helper functions to classify the input prompt as development, article writing, or general task and returns a JSON-structured response.case "miyabi__analyze_task_intent": { const isDev = isDevelopmentTask(args.prompt); const isArticle = isArticleWritingTask(args.prompt); return { content: [{ type: "text", text: JSON.stringify({ isDevelopmentTask: isDev, isArticleWritingTask: isArticle, taskType: isArticle ? "article" : (isDev ? "development" : "general"), prompt: args.prompt }, null, 2) }] }; }
- src/handlers.js:50-59 (schema)Input schema defining the expected parameters for the tool: a 'prompt' string.inputSchema: { type: "object", properties: { prompt: { type: "string", description: "分析するユーザーのプロンプト" } }, required: ["prompt"] }
- src/handlers.js:47-60 (registration)Tool registration within the listToolsHandler function, defining name, description, and input schema.{ name: "miyabi__analyze_task_intent", description: "ユーザーのタスクを分析し、開発関連か一般タスクかを判定します", inputSchema: { type: "object", properties: { prompt: { type: "string", description: "分析するユーザーのプロンプト" } }, required: ["prompt"] } },
- src/handlers.js:11-23 (helper)Helper function to detect if the prompt is related to development tasks by checking for specific keywords.export function isDevelopmentTask(prompt) { const devKeywords = [ 'コード', 'プログラム', 'バグ', 'デバッグ', 'テスト', 'デプロイ', 'API', 'データベース', 'フロントエンド', 'バックエンド', 'リファクタリング', '実装', '開発', 'アプリ', 'ウェブサイト', 'システム', 'モジュール', 'code', 'program', 'bug', 'debug', 'test', 'deploy', 'api', 'database', 'frontend', 'backend', 'refactor', 'implement', 'develop', 'app', 'website', 'system', 'module' ]; const lowerPrompt = prompt.toLowerCase(); return devKeywords.some(keyword => lowerPrompt.includes(keyword.toLowerCase())); }
- src/handlers.js:30-39 (helper)Helper function to detect if the prompt is related to article writing tasks by checking for specific keywords.export function isArticleWritingTask(prompt) { const articleKeywords = [ '記事', '論文', 'note', 'ブログ', '執筆', '書いて', '作成', 'article', 'paper', 'blog', 'write', 'create', 'post', '医療AI', '医療', 'AI', 'LLMO', 'サムネイル', 'ハッシュタグ' ]; const lowerPrompt = prompt.toLowerCase(); return articleKeywords.some(keyword => lowerPrompt.includes(keyword.toLowerCase())); }