skills$openclaw/user-cognitive-profiles
sebastianffx6.1kā˜…

by sebastianffx

user-cognitive-profiles – OpenClaw Skill

user-cognitive-profiles is an OpenClaw Skills integration for communication workflows. Analyze ChatGPT conversation exports to discover cognitive archetypes and optimize AI-human communication patterns. Enables personalized agent interactions based on detected user profiles.

6.1k stars5.4k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026communication

Skill Snapshot

nameuser-cognitive-profiles
descriptionAnalyze ChatGPT conversation exports to discover cognitive archetypes and optimize AI-human communication patterns. Enables personalized agent interactions based on detected user profiles. OpenClaw Skills integration.
ownersebastianffx
repositorysebastianffx/user-cognitive-profiles
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @sebastianffx/user-cognitive-profiles
last updatedFeb 7, 2026

Maintainer

sebastianffx

sebastianffx

Maintains user-cognitive-profiles in the OpenClaw Skills directory.

View GitHub profile
File Explorer
15 files
.
examples
custom-archetypes.yaml
3.1 KB
sample-profile.json
3.0 KB
references
methodology.md
8.2 KB
scripts
analyze_profile.py
32.6 KB
compare_profiles.py
5.6 KB
_meta.json
323 B
PACKAGE_SUMMARY.md
4.1 KB
README.md
1.0 KB
requirements-test.txt
273 B
requirements.txt
155 B
SKILL.md
10.0 KB
test_wildchat.py
13.0 KB
SKILL.md

name: user-cognitive-profiles description: "Analyze ChatGPT conversation exports to discover cognitive archetypes and optimize AI-human communication patterns. Enables personalized agent interactions based on detected user profiles." homepage: https://github.com/openclaw/user-cognitive-profiles metadata: { "openclaw": { "emoji": "šŸ¤–šŸ¤šŸ§ ", "requires": { "bins": ["python3"] }, "tags": ["communication", "persona", "user-research", "optimization", "nlp"], }, }

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.


Why This Matters

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:

  • Default AI behavior assumes a generic user
  • Your communication style varies dramatically by context (professional vs. personal)
  • Misaligned AI responses feel inefficient or frustrating

The Solution:

  • Analyze your actual conversation patterns
  • Identify your dominant cognitive archetypes
  • Configure your agent to match your communication style

Quick Start

1. Export Your ChatGPT Data

  1. Go to ChatGPT → Settings → Data Controls → Export Data
  2. Click "Export" and confirm
  3. Wait for the email (usually arrives within 24 hours)
  4. Download the ZIP file from the email link
  5. Extract it — you'll find conversations.json

2. Run the Analysis

cd /path/to/user-cognitive-profiles
python3 scripts/analyze_profile.py \
  --input ~/Downloads/chatgpt-export/conversations.json \
  --output ~/.openclaw/my-cognitive-profile.json \
  --archetypes 3

3. Apply to Your Agent

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

Cognitive Archetypes

The analysis identifies archetypes based on four dimensions:

DimensionLowHigh
Message LengthBrief commandsExtended analysis
StructureOrganic flowSystematic breakdown
DepthPractical focusTheoretical exploration
ToneTransactionalCollaborative

Common Archetypes

šŸ”§ Efficiency Optimizer
  • Messages: Short, direct, action-oriented
  • Wants: Quick answers, minimal explanation
  • AI Role: Tool to get things done
  • Example: "Set up email. Use pass. Go."
šŸ—ļø Systems Architect
  • Messages: Long, structured, comprehensive
  • Wants: Deep analysis, trade-offs, strategic thinking
  • AI Role: Collaborative partner for complex problems
  • Example: 300-word technical breakdown with multiple considerations
🧭 Philosophical Explorer
  • Messages: Varies widely, questions assumptions
  • Wants: Meaning, patterns, cross-domain connections
  • AI Role: Socratic partner for insight generation
  • Example: "How does this relate to [completely different domain]?"
šŸŽØ Creative Synthesizer
  • Messages: Connects disparate ideas, uses analogies
  • Wants: Novel combinations, pattern recognition
  • AI Role: Ideation partner and pattern mirror
  • Example: "This is like jazz improvisation..."

Customization

Define Your Own Archetypes

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

Adjust Cluster Count

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

Understanding the Output

Profile JSON Structure

{
  "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"
    ]
  }
}

Key Metrics Explained

MetricDescriptionWhy It Matters
avg_message_lengthAverage words per user messageShort = efficiency mode, Long = exploration mode
question_ratio% of turns that are questionsHigh = collaborative, Low = directive
code_block_ratio% of messages with codeTechnical vs. conceptual focus
context_shiftsDetected mode transitionsIndicates multiple archetypes at play
confidenceCluster cohesion scoreHigher = more distinct pattern

Privacy & Security

All processing is local. The script:

  • āœ… Runs entirely on your machine
  • āœ… Never uploads data to external services
  • āœ… Stores results in your local OpenClaw workspace
  • āœ… You control what gets shared (if anything)

Recommended workflow:

  1. Export ChatGPT data
  2. Run analysis locally
  3. Review my-cognitive-profile.json
  4. Manually add relevant insights to SOUL.md
  5. (Optional) Delete the export and raw profile

Advanced Usage

Compare Profiles Over Time

Track 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

Export for Other Agents

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

Troubleshooting

"conversations.json not found"

The export ZIP contains multiple files. Make sure you're pointing to:

chatgpt-export/
ā”œā”€ā”€ conversations.json  <-- This one
ā”œā”€ā”€ user.json
└── ...

"No conversations detected"

Your export might be empty or corrupted. Check:

head -20 conversations.json

Should show: [{"title": "...", "messages": [...]}, ...]

"All archetypes have similar confidence"

Try adjusting the cluster count:

# Too granular
python3 scripts/analyze_profile.py --archetypes 10

# Try simpler
python3 scripts/analyze_profile.py --archetypes 3

"Analysis takes too long"

For large conversation histories (10k+ messages):

# Sample for faster analysis
python3 scripts/analyze_profile.py \
  --input conversations.json \
  --sample 1000  # Analyze random 1000 conversations

Integration with OpenClaw

Automatic Profile Loading

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

Dynamic Mode Detection

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"]

Contributing

Have a new archetype that works well? Submit a PR with:

  1. Archetype definition in examples/
  2. Sample data (anonymized)
  3. Validation that it clusters distinctly

References

  • references/methodology.md — Technical details on clustering algorithm
  • references/archetype-taxonomy.md — Full archetype definitions
  • examples/ — Sample profiles and configurations

Built for humans who want their AI to truly understand them. šŸ¤–šŸ¤šŸ§ 

README.md

User Cognitive Profiles

šŸ¤–šŸ¤šŸ§  Discover your communication patterns with AI

Overview

This OpenClaw skill analyzes your ChatGPT conversation history to identify cognitive archetypes — recurring patterns in how you think, communicate, and collaborate with AI.

Quick Start

  1. Export your ChatGPT data:

    • ChatGPT → Settings → Data Controls → Export Data
    • Download the ZIP from your email
    • Extract to get conversations.json
  2. Install dependencies:

    pip3 install -r requirements.txt
    
  3. Run analysis:

    python3 scripts/analyze_profile.py \
      --input conversations.json \
      --output my-profile.json \
      --archetypes 3
    
  4. Apply insights:

    • Review my-profile.json
    • Add relevant insights to your SOUL.md or AGENTS.md

Files

  • SKILL.md — Full documentation
  • scripts/analyze_profile.py — Analysis tool
  • examples/ — Sample profiles and configurations
  • references/ — Technical methodology

License

MIT

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install user-cognitive-profiles?

Run openclaw add @sebastianffx/user-cognitive-profiles in your terminal. This installs user-cognitive-profiles into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/sebastianffx/user-cognitive-profiles. Review commits and README documentation before installing.