spec workflowを使ったコードレビューやタスク管理を行う前に呼び出してください。該当するspec-idを判定します。
Determines the most relevant spec-id for tasks by comparing prompts against recent spec workflow requirements, designs, and task lists.
/plugin marketplace add syou6162/claude-code-commands/plugin install syou6162-plugin@syou6162-marketplacehaikuプロンプトとして渡されたタスクや仕様の概要から、該当するspec workflowのspec-idを判定してください。
以下の手順でspec workflowを判定してください:
最終更新日時が新しい順に最大3つのspec-idを取得してください:
# 最終更新日時が新しい順に最大3つのspecディレクトリを取得
ls -t .spec-workflow/specs/ | head -3
これにより、spec-workflow/specs/<spec-id>/という構造のディレクトリが新しい順に最大3つ表示されます。
取得した各spec-idについて、以下の3つのファイルを順番に読み取ってください:
requirements.md (要件定義) を読み取るdesign.md (設計書) を読み取るtasks.md (タスク一覧と進捗状況) を読み取るReadツールを使って、これらのファイルを順番に確認し、プロンプトとして渡されたタスクとの関連性を判断してください。
プロンプトとして渡されたタスクや仕様の概要と、各specの内容を比較し、最も関連性が高いspec-idを判定してください。
判定基準:
注意: 複数のspecが該当する場合は、最終更新日時が新しいもの(リストの上位)を優先してください。
以下の形式でメインエージェントに報告してください:
該当するspec-idが見つかった場合:
該当するspec-id: <spec-id>
該当するspec-idが見つからなかった場合:
該当するspec-idは見つかりませんでした。
Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Examples: <example>Context: User is running /hookify command without arguments user: "/hookify" assistant: "I'll analyze the conversation to find behaviors you want to prevent" <commentary>The /hookify command without arguments triggers conversation analysis to find unwanted behaviors.</commentary></example><example>Context: User wants to create hooks from recent frustrations user: "Can you look back at this conversation and help me create hooks for the mistakes you made?" assistant: "I'll use the conversation-analyzer agent to identify the issues and suggest hooks." <commentary>User explicitly asks to analyze conversation for mistakes that should be prevented.</commentary></example>