Analyze all interview transcripts in a directory, extract themes, rank insights, and generate a comprehensive report.
Analyzes interview transcripts to extract themes, rank insights, and generate comprehensive reports.
/plugin marketplace add animalzinc/claude-plugins/plugin install interview-transcript-analyzer@animalz-pluginsAnalyze all interview transcripts in a directory, extract themes, rank insights, and generate a comprehensive report.
Scan the transcripts directory ($2):
Look for context file ($3):
icp.md or ideal-customer-profile.mdresearch-goals.md or objectives.mdmethodology.mdcustomer-profile.md or persona.mdReport to user:
## š Transcripts Discovered
**Directory:** $2
**Transcripts found:** [number] files
**Total size:** [size in MB]
**Estimated tokens:** ~[number]k tokens
**Files:**
- [filename 1] ([size])
- [filename 2] ([size])
- [etc.]
**Context documents found:**
- [ICP/research goals/methodology if found, or "None"]
Would you like to proceed with analysis?
Wait for user confirmation.
Based on workload, intelligently determine how many parallel agents to use:
Agent Scaling Logic:
If 1-3 transcripts:
ā Use 1 agent (sequential analysis is fine)
If 4-8 transcripts:
ā Use 3 parallel agents
ā Divide transcripts evenly (e.g., Agent 1: transcripts 1-3, Agent 2: 4-6, Agent 3: 7-8)
If 9-15 transcripts:
ā Use 5 parallel agents
ā Divide transcripts evenly
If 16+ transcripts:
ā Use 8 parallel agents (optimal for most systems)
ā Divide transcripts evenly
ALSO consider total token count:
If total tokens > 150k:
ā Increase agent count by 1-2
ā Example: 6 transcripts but 200k tokens ā use 5 agents instead of 3
If total tokens < 30k:
ā Decrease agent count
ā Example: 10 short transcripts with 25k tokens ā use 3 agents instead of 5
Present strategy to user:
## š¤ Agent Strategy
Based on [number] transcripts totaling ~[number]k tokens, I recommend using **[number] parallel agents** for efficient analysis.
**How it works:**
- Each agent will analyze [number] transcripts
- Agents work simultaneously (faster than sequential)
- All findings will be synthesized into final report
**Agent assignments:**
- Agent 1: [transcript names]
- Agent 2: [transcript names]
- [etc.]
**Estimated time:** [minutes] minutes
Would you like to:
1. ā
Proceed with this strategy
2. š Adjust agent count (tell me your preference)
3. ā Cancel
Wait for user approval or adjustment.
For each agent, use the Task tool with the theme-extractor agent:
Provide each agent with:
Track progress:
## š Extracting Themes
- ā
Agent 1: Complete (found 4 themes)
- ā
Agent 2: Complete (found 5 themes)
- š Agent 3: In progress
- ā³ Agent 4: Pending
- ā³ Agent 5: Pending
Once all agents complete, collect results:
Use the insight-ranker agent to:
Consolidate themes:
Rank themes by:
Present ranked themes to user:
## šÆ Top Themes Identified
### Theme 1: [Theme Name]
**Mentioned in:** [X] of [Y] transcripts ([percentage]%)
**Relevance:** [High/Medium/Low based on ICP]
**Key insight:** [One sentence summary]
**Representative quote:**
> "[Quote from transcript]"
> ā Participant [number/name]
---
### Theme 2: [Theme Name]
[Same format...]
---
[Continue for top 5-7 themes]
---
**Would you like me to:**
1. ā
Proceed with final report generation
2. š Deep dive into specific themes (tell me which ones)
3. š Re-rank themes with different criteria
Wait for user feedback.
Create a structured markdown report with:
# Interview Analysis Report: [Output Name]
**Analysis date:** [Date]
**Transcripts analyzed:** [Number]
**Context:** [ICP/research goals summary if available]
---
## Executive Summary
[2-3 paragraph overview of most important findings]
---
## Methodology
**Transcripts:**
- [List of transcripts with dates if available]
**Analysis approach:**
- [Number] parallel agents
- Theme extraction and consolidation
- Ranking by frequency and relevance
**Context documents:**
- [List context files if used]
---
## Key Themes
### 1. [Theme Name] ([frequency]% of interviews)
**Summary:** [Detailed explanation of this theme]
**Why it matters:** [Relevance to ICP/business goals]
**Supporting quotes:**
1. "[Quote]" ā Participant [ID]
2. "[Quote]" ā Participant [ID]
3. "[Quote]" ā Participant [ID]
**Recommendations:**
- [Actionable insight 1]
- [Actionable insight 2]
---
[Repeat for each major theme]
---
## Cross-Cutting Insights
[Patterns that span multiple themes]
---
## Recommendations
1. **[Priority]** [Recommendation based on findings]
2. **[Priority]** [Recommendation based on findings]
[etc.]
---
## Appendix: All Themes
[Comprehensive list of all themes found, including lower-frequency ones]
---
**Analysis performed by:** Interview Transcript Analyzer plugin for Claude Code
**Generated:** [Timestamp]
Save report to: analysis/$1-analysis.md
Report to user:
## ā
Analysis Complete!
**Report location:** analysis/$1-analysis.md
**Transcripts analyzed:** [number]
**Themes identified:** [number] major themes, [number] total
**Top insights:** [number]
**Report sections:**
- Executive Summary
- Methodology
- [Number] Key Themes (with quotes and recommendations)
- Cross-cutting insights
- Actionable recommendations
**Next steps:**
1. Review the full report
2. Use `/extract-quotes [theme]` to find more quotes on specific themes
3. Use `/rank-insights` to re-rank with different criteria
If no transcripts found:
ā No transcripts found in directory: $2
Please ensure:
- Directory path is correct
- Transcripts are in supported formats (.txt, .md, .doc, .docx)
- Files are readable
Expected structure:
interviews/
āāā interview-1.txt
āāā interview-2.txt
āāā context/
āāā icp.md
If context file specified but not found:
ā ļø Warning: Context file not found: $3
Would you like to:
1. Proceed without context (insights won't be ranked by ICP relevance)
2. Specify a different context file
3. Cancel and add context file first
If agent fails during analysis:
# Basic analysis
/analyze-interviews customer-feedback ./interviews/
# With ICP context for relevance ranking
/analyze-interviews product-research ./research/transcripts/ --context-file ./research/icp.md
# Large-scale analysis (automatically uses more agents)
/analyze-interviews enterprise-study ./enterprise-interviews/
Organize transcripts clearly:
interview-customer-name.txt)2024-01-15-interview-acme-corp.txt)Provide context:
For large datasets: