Extract questions and open items from documents to JSON
Extracts questions and open items from documents into a structured JSON file with topics and context
/plugin marketplace add davistroy/claude-marketplace/plugin install personal-plugin@troys-pluginsAnalyze the document specified by the user and extract all questions, open items, areas needing clarification, and incomplete sections into a comprehensive, downloadable JSON file.
Read the specified document - The user will provide a document path or name after the /define-questions command (e.g., /define-questions PRD.md). Read and analyze that document thoroughly.
Identify all questions and open items - Look for:
?)Create a JSON file with the following structure for each question/open item:
{
"questions": [
{
"id": 1,
"topic": "Best guess at the topic area (e.g., 'User Authentication', 'Data Model', 'Integration')",
"sections": ["Section name or header where this question is relevant"],
"question": "The actual question or open item that needs clarification",
"context": "Any relevant information, background, or details needed to understand and properly answer this question"
}
],
"metadata": {
"source_document": "Name of the analyzed document",
"total_questions": 0,
"generated_date": "ISO date string",
"topics_summary": ["List of unique topics identified"]
}
}
Assign sequential IDs starting from 1 for each question.
Categorize by topic - Group related questions under logical topic areas based on the content (e.g., "Technical Architecture", "User Experience", "Business Logic", "Data Management", "Integration", "Security", "Performance", etc.).
Reference relevant sections - For each question, note which section(s) of the document it relates to. Use the exact section headers/titles from the document.
Provide rich context - For each question, include enough context so that someone unfamiliar with the document could understand:
Save the output - Write the JSON file to a new file named questions-[document-name]-[timestamp].json in the repository root. Use a timestamp format like YYYYMMDD-HHMMSS.
Report the results - After creating the file, provide a summary to the user including:
{
"questions": [
{
"id": 1,
"topic": "Board Role Definitions",
"sections": ["3.1 AI Board Members", "4.2 Governance Sessions"],
"question": "What specific expertise and personality traits should each of the 5 AI board member roles embody?",
"context": "The PRD mentions a 5-role AI board for career governance but does not define the specific roles, their areas of expertise, how they should interact with each other, or their individual decision-making styles. This is critical for implementing the governance session logic and ensuring diverse perspectives."
},
{
"id": 2,
"topic": "LLM Integration",
"sections": ["5.1 Technical Architecture"],
"question": "Which LLM provider(s) will be used for the AI board members and transcription services?",
"context": "The document references LLM services for voice transcription and AI board member responses but does not specify whether to use OpenAI, Anthropic, or other providers. This affects API integration, cost modeling, and capability constraints."
}
],
"metadata": {
"source_document": "PRD.md",
"total_questions": 2,
"generated_date": "2026-01-10T14:30:00Z",
"topics_summary": ["Board Role Definitions", "LLM Integration"]
}
}