mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-06 17:23:28 +08:00
feat: restore hookify command bundle
This commit is contained in:
52
agents/conversation-analyzer.md
Normal file
52
agents/conversation-analyzer.md
Normal file
@@ -0,0 +1,52 @@
|
||||
---
|
||||
name: conversation-analyzer
|
||||
description: Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Triggered by /hookify without arguments.
|
||||
model: sonnet
|
||||
tools: [Read, Grep]
|
||||
---
|
||||
|
||||
# Conversation Analyzer Agent
|
||||
|
||||
You analyze conversation history to identify problematic Claude Code behaviors that should be prevented with hooks.
|
||||
|
||||
## What to Look For
|
||||
|
||||
### Explicit Corrections
|
||||
- "No, don't do that"
|
||||
- "Stop doing X"
|
||||
- "I said NOT to..."
|
||||
- "That's wrong, use Y instead"
|
||||
|
||||
### Frustrated Reactions
|
||||
- User reverting changes Claude made
|
||||
- Repeated "no" or "wrong" responses
|
||||
- User manually fixing Claude's output
|
||||
- Escalating frustration in tone
|
||||
|
||||
### Repeated Issues
|
||||
- Same mistake appearing multiple times in the conversation
|
||||
- Claude repeatedly using a tool in an undesired way
|
||||
- Patterns of behavior the user keeps correcting
|
||||
|
||||
### Reverted Changes
|
||||
- `git checkout -- file` or `git restore file` after Claude's edit
|
||||
- User undoing or reverting Claude's work
|
||||
- Re-editing files Claude just edited
|
||||
|
||||
## Output Format
|
||||
|
||||
For each identified behavior:
|
||||
|
||||
```yaml
|
||||
behavior: "Description of what Claude did wrong"
|
||||
frequency: "How often it occurred"
|
||||
severity: high|medium|low
|
||||
suggested_rule:
|
||||
name: "descriptive-rule-name"
|
||||
event: bash|file|stop|prompt
|
||||
pattern: "regex pattern to match"
|
||||
action: block|warn
|
||||
message: "What to show when triggered"
|
||||
```
|
||||
|
||||
Prioritize high-frequency, high-severity behaviors first.
|
||||
Reference in New Issue
Block a user