Install
openclaw skills install user-cognitive-profilesAnalyze ChatGPT conversation exports to discover cognitive archetypes and optimize AI-human communication patterns. Enables personalized agent interactions based on detected user profiles.
openclaw skills install user-cognitive-profilesπ€π€π§ Discover how you communicate with AI and optimize your agent interactions.
This skill analyzes your ChatGPT conversation history to identify cognitive archetypes β recurring patterns in how you think, communicate, and collaborate. Use these insights to calibrate your OpenClaw agent for more effective, personalized interactions.
Human-AI communication is not one-size-fits-all. Just as you adapt your communication style between contexts (work meeting vs. casual chat), effective AI assistance requires matching your cognitive architecture.
The Problem:
The Solution:
conversations.jsoncd /path/to/user-cognitive-profiles
python3 scripts/analyze_profile.py \
--input ~/Downloads/chatgpt-export/conversations.json \
--output ~/.openclaw/my-cognitive-profile.json \
--archetypes 3
Add to your SOUL.md or AGENTS.md:
## User Cognitive Profile
<!-- Source: generated by user-cognitive-profiles skill -->
- **Primary Archetype:** Efficiency Optimizer
- **Avg Message Length:** 47 words
- **Context Switching:** High (professional vs. personal modes)
- **Key Patterns:** Prefers direct answers, values examples over theory
### Communication Calibration
- Default to concise responses
- Provide examples + theory + hands-on steps
- Watch for professional/personal mode shifts
The analysis identifies archetypes based on four dimensions:
| Dimension | Low | High |
|---|---|---|
| Message Length | Brief commands | Extended analysis |
| Structure | Organic flow | Systematic breakdown |
| Depth | Practical focus | Theoretical exploration |
| Tone | Transactional | Collaborative |
Create ~/.openclaw/my-archetypes.yaml:
archetypes:
- name: "Research Mode"
keywords:
- "research"
- "analyze"
- "compare"
- "trade-off"
patterns:
- long_messages
- multiple_questions
- citation_requests
- name: "Quick Mode"
keywords:
- "quick"
- "brief"
- "simple"
- "just"
patterns:
- short_messages
- imperative_tone
- minimal_context
Run with custom archetypes:
python3 scripts/analyze_profile.py \
--input conversations.json \
--archetypes-config ~/.openclaw/my-archetypes.yaml
More archetypes = finer granularity, but harder to act on:
# Simple: 2-3 archetypes
python3 scripts/analyze_profile.py --archetypes 2
# Detailed: 5-7 archetypes
python3 scripts/analyze_profile.py --archetypes 5
# Complex: 10+ (for power users)
python3 scripts/analyze_profile.py --archetypes 10
{
"metadata": {
"total_conversations": 3784,
"date_range": "2024-01-01 to 2025-01-31",
"analysis_date": "2026-02-02"
},
"archetypes": [
{
"id": 0,
"name": "Systems Architect",
"confidence": 0.87,
"metrics": {
"avg_message_length": 382,
"avg_response_length": 450,
"question_ratio": 0.23,
"code_block_ratio": 0.45
},
"keywords": ["architecture", "design", "trade-off", "system"],
"sample_conversations": ["uuid-1", "uuid-2"],
"recommendations": {
"ai_role": "Senior Architect",
"communication_style": "Detailed, systematic, collaborative",
"response_length": "long",
"structure": "hierarchical"
}
}
],
"context_shifts": [
{
"trigger": "technical_keywords",
"from_archetype": "Efficiency Optimizer",
"to_archetype": "Systems Architect"
}
],
"insights": {
"primary_mode": "Systems Architect",
"context_switching": "high",
"communication_preferences": [
"Examples before theory",
"Hands-on application",
"Cross-domain analogies"
]
}
}
| Metric | Description | Why It Matters |
|---|---|---|
avg_message_length | Average words per user message | Short = efficiency mode, Long = exploration mode |
question_ratio | % of turns that are questions | High = collaborative, Low = directive |
code_block_ratio | % of messages with code | Technical vs. conceptual focus |
context_shifts | Detected mode transitions | Indicates multiple archetypes at play |
confidence | Cluster cohesion score | Higher = more distinct pattern |
All processing is local. The script:
Recommended workflow:
my-cognitive-profile.jsonSOUL.mdTrack how your communication evolves:
# January analysis
python3 scripts/analyze_profile.py \
--input conversations_jan.json \
--output profile_jan.json
# June analysis
python3 scripts/analyze_profile.py \
--input conversations_jun.json \
--output profile_jun.json
# Compare
python3 scripts/compare_profiles.py profile_jan.json profile_jun.json
Generate a prompt snippet for Claude, GPT, or other agents:
python3 scripts/analyze_profile.py \
--input conversations.json \
--format prompt-snippet \
--output agent-prompt.txt
Output:
## User Communication Profile
- Primary style: Systems Architect (detailed, analytical)
- Secondary style: Efficiency Optimizer (brief, pragmatic)
- Context switching: High (watch for mode shifts)
- Preferences: Examples + theory + hands-on steps
- Treat as: Senior technical partner, not assistant
The export ZIP contains multiple files. Make sure you're pointing to:
chatgpt-export/
βββ conversations.json <-- This one
βββ user.json
βββ ...
Your export might be empty or corrupted. Check:
head -20 conversations.json
Should show: [{"title": "...", "messages": [...]}, ...]
Try adjusting the cluster count:
# Too granular
python3 scripts/analyze_profile.py --archetypes 10
# Try simpler
python3 scripts/analyze_profile.py --archetypes 3
For large conversation histories (10k+ messages):
# Sample for faster analysis
python3 scripts/analyze_profile.py \
--input conversations.json \
--sample 1000 # Analyze random 1000 conversations
Add to your OpenClaw workspace AGENTS.md:
## On Session Start
1. Read `~/.openclaw/my-cognitive-profile.json` if exists
2. Adapt communication style to primary archetype
3. Watch for context shift indicators
For agents that can switch modes mid-conversation:
# Pseudocode for agent integration
def detect_mode_shift(current_message, profile):
for shift in profile["context_shifts"]:
if shift["trigger"] in current_message:
return shift["to_archetype"]
return profile["insights"]["primary_mode"]
Have a new archetype that works well? Submit a PR with:
examples/references/methodology.md β Technical details on clustering algorithmreferences/archetype-taxonomy.md β Full archetype definitionsexamples/ β Sample profiles and configurationsBuilt for humans who want their AI to truly understand them. π€π€π§