Conversation Analysis
Signal extraction → pattern detection → behavioral insights.
- User requests conversation analysis
- Identifying frustration, success, or workflow patterns
- Extracting user preferences and requirements
- Understanding task evolution and iterations
NOT for: real-time monitoring, content generation, single message analysis
| Type |
Subtype |
Indicators |
| Success |
Explicit Praise |
"Perfect!", "Exactly what I needed", exclamation marks |
| Success |
Continuation |
"Now do the same for...", building on prior work |
| Success |
Adoption |
User implements suggestion without modification |
| Success |
Acceptance |
"Looks good", "Ship it", "Merge this" |
| Frustration |
Correction |
"No, I meant...", "That's wrong", "Do X instead" |
| Frustration |
Reversion |
User undoes agent changes, "Go back" |
| Frustration |
Repetition |
Same request 2+ times, escalating specificity |
| Frustration |
Explicit |
"This isn't working", "Why did you...", accusatory tone |
| Workflow |
Sequence |
"First...", "Then...", "Finally...", numbered lists |
| Workflow |
Transition |
"Now that X is done, let's Y", stage changes |
| Workflow |
Tool Chain |
Recurring tool usage patterns (Read → Edit → Bash) |
| Workflow |
Context Switch |
Abrupt topic changes, no transition language |
| Request |
Prohibition |
"Don't use X", "Never do Y", "Avoid Z" |
| Request |
Requirement |
"Always check...", "Make sure to...", "You must..." |
| Request |
Preference |
"I prefer...", "It's better to...", comparative language |
| Request |
Conditional |
"If X then Y", "When A, do B", situational rules |
Confidence levels:
- High (0.8–1.0): Explicit keywords match taxonomy, no ambiguity, strong context
- Medium (0.5–0.79): Implicit signal, partial context, minor ambiguity
- Low (0.2–0.49): Ambiguous language, weak context, borderline classification
Load the maintain-tasks skill for stage tracking. Stages advance only, never regress.
| Stage |
Trigger |
activeForm |
| Parse Input |
Session start |
"Parsing input" |
| Extract Signals |
Scope validated |
"Extracting signals" |
| Detect Patterns |
Signals extracted |
"Detecting patterns" |
| Synthesize Report |
Patterns detected |
"Synthesizing report" |
Task format:
- Parse Input { scope description }
- Extract Signals { from N messages }
- Detect Patterns { category focus }
- Synthesize Report { output format }
Edge cases:
- Small scope (<5 messages): Skip Extract Signals, jump to Synthesize
- Re-analysis: Resume at Detect Patterns
- Narrow focus (single signal type): Skip Detect Patterns
Workflow:
- Start: Create Parse Input
in_progress
- Transition: Mark current
completed, add next in_progress
- After delivery: Mark Synthesize Report
completed
Define Scope
- Message range (all, recent N, date range)
- Actors (user only, agent only, both)
- Exclusions (system messages, tool outputs, code blocks)
- Mark Parse Input
completed, create Extract Signals in_progress
Extract Signals
- Scan messages for signal keywords
- Match against taxonomy
- Assign confidence (high/medium/low)
- Record: type, subtype, message_id, timestamp, quote, context
- Mark Extract Signals
completed, create Detect Patterns in_progress
Detect Patterns
- Group signals by type/subtype
- Find clusters (3+ related signals)
- Identify evolution (signal changes over time)
- Track repetition (recurring themes)
- Spot correlations (tool chains, workflows)
- Mark Detect Patterns
completed, create Synthesize Report in_progress
Output
- Generate JSON with signals, patterns, summary
- Include confidence, recommendations, action items
- Append
△ Caveats if gaps exist
- Mark Synthesize Report
completed
Behavioral patterns from signal clusters:
| Pattern |
Detection |
Confidence |
| Repetition |
Same signal 3+ times |
Strong: 5+ signals |
| Evolution |
Signal type changes over time |
Moderate: 3-4 signals |
| Preferences |
Consistent request signals |
Strong: across sessions |
| Tool Chains |
Recurring tool sequences (5+ times) |
High: frequent use |
| Problem Areas |
Clustered frustration signals |
Strong: 3+ in same topic |
Temporal patterns:
- Escalation: Increasing frustration/stronger requirements
- De-escalation: Frustration → success transition
- Cyclical: Same issue recurs across sessions
JSON structure:
{
"analysis": {
"scope": {
"message_count": N,
"date_range": "YYYY-MM-DD to YYYY-MM-DD",
"actors": ["user", "agent"]
},
"signals": [
{
"type": "success|frustration|workflow|request",
"subtype": "specific_subtype",
"message_id": "msg_123",
"timestamp": "ISO8601",
"quote": "exact text",
"confidence": "high|medium|low",
"context": "brief explanation"
}
],
"patterns": [
{
"pattern_type": "repetition|evolution|preference|tool_chain",
"category": "success|frustration|workflow|request",
"description": "pattern summary",
"occurrences": N,
"confidence": "strong|moderate|weak",
"first_seen": "ISO8601",
"last_seen": "ISO8601",
"recommendation": "actionable next step"
}
],
"summary": {
"total_signals": N,
"by_type": { "success": N, "frustration": N, ... },
"key_insights": ["insight 1", "insight 2"],
"action_items": ["item 1", "item 2"]
}
}
}
ALWAYS:
- Create Parse Input at session start
- Update todos at stage transitions
- Include confidence levels for all signals
- Support patterns with 2+ signals minimum
- Mark Synthesize Report
completed after delivery
- Apply recency weighting (recent overrides old)
NEVER:
- Skip stage transitions
- Extract low-confidence signals without marking them
- Claim patterns from single occurrences
- Regress stages
- Deliver without marking final stage complete
- Over-interpret neutral language
- signal-patterns.md — extended taxonomy, edge cases
- extraction-techniques.md — regex, heuristics
- sample-analysis.md — complete walkthrough
1---2name: session-analysis-23description: This skill should be used when analyzing conversation patterns, identifying frustration or success signals, or when analyze conversation, what went wrong, or patterns are mentioned.4---56# Conversation Analysis78Signal extraction → pattern detection → behavioral insights.910<when_to_use>1112- User requests conversation analysis13- Identifying frustration, success, or workflow patterns14- Extracting user preferences and requirements15- Understanding task evolution and iterations1617NOT for: real-time monitoring, content generation, single message analysis1819</when_to_use>2021<signal_taxonomy>2223| Type | Subtype | Indicators |24| ----------- | --------------- | -------------------------------------------------------- |25| Success | Explicit Praise | "Perfect!", "Exactly what I needed", exclamation marks |26| Success | Continuation | "Now do the same for...", building on prior work |27| Success | Adoption | User implements suggestion without modification |28| Success | Acceptance | "Looks good", "Ship it", "Merge this" |29| Frustration | Correction | "No, I meant...", "That's wrong", "Do X instead" |30| Frustration | Reversion | User undoes agent changes, "Go back" |31| Frustration | Repetition | Same request 2+ times, escalating specificity |32| Frustration | Explicit | "This isn't working", "Why did you...", accusatory tone |33| Workflow | Sequence | "First...", "Then...", "Finally...", numbered lists |34| Workflow | Transition | "Now that X is done, let's Y", stage changes |35| Workflow | Tool Chain | Recurring tool usage patterns (Read → Edit → Bash) |36| Workflow | Context Switch | Abrupt topic changes, no transition language |37| Request | Prohibition | "Don't use X", "Never do Y", "Avoid Z" |38| Request | Requirement | "Always check...", "Make sure to...", "You must..." |39| Request | Preference | "I prefer...", "It's better to...", comparative language |40| Request | Conditional | "If X then Y", "When A, do B", situational rules |4142Confidence levels:4344- High (0.8–1.0): Explicit keywords match taxonomy, no ambiguity, strong context45- Medium (0.5–0.79): Implicit signal, partial context, minor ambiguity46- Low (0.2–0.49): Ambiguous language, weak context, borderline classification4748</signal_taxonomy>4950<stages>5152Load the `maintain-tasks` skill for stage tracking. Stages advance only, never regress.5354| Stage | Trigger | activeForm |55| ----------------- | ----------------- | --------------------- |56| Parse Input | Session start | "Parsing input" |57| Extract Signals | Scope validated | "Extracting signals" |58| Detect Patterns | Signals extracted | "Detecting patterns" |59| Synthesize Report | Patterns detected | "Synthesizing report" |6061Task format:6263```text64- Parse Input { scope description }65- Extract Signals { from N messages }66- Detect Patterns { category focus }67- Synthesize Report { output format }68```6970Edge cases:7172- Small scope (<5 messages): Skip Extract Signals, jump to Synthesize73- Re-analysis: Resume at Detect Patterns74- Narrow focus (single signal type): Skip Detect Patterns7576Workflow:7778- Start: Create Parse Input `in_progress`79- Transition: Mark current `completed`, add next `in_progress`80- After delivery: Mark Synthesize Report `completed`8182</stages>8384<workflow>85861. Define Scope87 - Message range (all, recent N, date range)88 - Actors (user only, agent only, both)89 - Exclusions (system messages, tool outputs, code blocks)90 - Mark Parse Input `completed`, create Extract Signals `in_progress`91922. Extract Signals93 - Scan messages for signal keywords94 - Match against taxonomy95 - Assign confidence (high/medium/low)96 - Record: type, subtype, message_id, timestamp, quote, context97 - Mark Extract Signals `completed`, create Detect Patterns `in_progress`98993. Detect Patterns100 - Group signals by type/subtype101 - Find clusters (3+ related signals)102 - Identify evolution (signal changes over time)103 - Track repetition (recurring themes)104 - Spot correlations (tool chains, workflows)105 - Mark Detect Patterns `completed`, create Synthesize Report `in_progress`1061074. Output108 - Generate JSON with signals, patterns, summary109 - Include confidence, recommendations, action items110 - Append `△ Caveats` if gaps exist111 - Mark Synthesize Report `completed`112113</workflow>114115<pattern_detection>116117Behavioral patterns from signal clusters:118119| Pattern | Detection | Confidence |120| ------------- | ----------------------------------- | ------------------------ |121| Repetition | Same signal 3+ times | Strong: 5+ signals |122| Evolution | Signal type changes over time | Moderate: 3-4 signals |123| Preferences | Consistent request signals | Strong: across sessions |124| Tool Chains | Recurring tool sequences (5+ times) | High: frequent use |125| Problem Areas | Clustered frustration signals | Strong: 3+ in same topic |126127Temporal patterns:128129- Escalation: Increasing frustration/stronger requirements130- De-escalation: Frustration → success transition131- Cyclical: Same issue recurs across sessions132133</pattern_detection>134135<output_format>136137JSON structure:138139```json140{141 "analysis": {142 "scope": {143 "message_count": N,144 "date_range": "YYYY-MM-DD to YYYY-MM-DD",145 "actors": ["user", "agent"]146 },147 "signals": [148 {149 "type": "success|frustration|workflow|request",150 "subtype": "specific_subtype",151 "message_id": "msg_123",152 "timestamp": "ISO8601",153 "quote": "exact text",154 "confidence": "high|medium|low",155 "context": "brief explanation"156 }157 ],158 "patterns": [159 {160 "pattern_type": "repetition|evolution|preference|tool_chain",161 "category": "success|frustration|workflow|request",162 "description": "pattern summary",163 "occurrences": N,164 "confidence": "strong|moderate|weak",165 "first_seen": "ISO8601",166 "last_seen": "ISO8601",167 "recommendation": "actionable next step"168 }169 ],170 "summary": {171 "total_signals": N,172 "by_type": { "success": N, "frustration": N, ... },173 "key_insights": ["insight 1", "insight 2"],174 "action_items": ["item 1", "item 2"]175 }176 }177}178```179180</output_format>181182<rules>183184ALWAYS:185186- Create Parse Input at session start187- Update todos at stage transitions188- Include confidence levels for all signals189- Support patterns with 2+ signals minimum190- Mark Synthesize Report `completed` after delivery191- Apply recency weighting (recent overrides old)192193NEVER:194195- Skip stage transitions196- Extract low-confidence signals without marking them197- Claim patterns from single occurrences198- Regress stages199- Deliver without marking final stage complete200- Over-interpret neutral language201202</rules>203204<references>205206- [signal-patterns.md](references/signal-patterns.md) — extended taxonomy, edge cases207- [extraction-techniques.md](references/extraction-techniques.md) — regex, heuristics208- [sample-analysis.md](examples/sample-analysis.md) — complete walkthrough209210</references>