Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 CustomerMind

Version Modules Research Sources License Engine

Turn raw community conversations into validated customer intelligence.

CustomerMind is a production-ready, three-stage reasoning pipeline engineered to ingest raw, unstructured customer conversationsβ€”Reddit threads, Discord chat logs, App Store review dumps, and support ticketsβ€”and transform them into structured, evidence-anchored product and marketing assets.


πŸ—ΊοΈ Architectural Pipeline

CustomerMind is structured around three sequential reasoning modules supported by a permanent Knowledge Layer containing customer psychology and direct-response copywriting frameworks, a Reasoning Layer ensuring strict evidence-anchoring, and a Decision Layer executing confidence calibration.

graph TD
    %% Input Node
    Input[/"Raw Community Data <br> (Reddit, Reviews, Support Tickets)"/] --> Prep["Data Pre-processor <br> (Text Normalization & Sarcasm Filter)"]
    
    %% Module 1
    subgraph M1 ["Module 1: Sentiment Extractor"]
        Prep --> Noise["Noise Filter <br> (Strip Spam / Bots)"]
        Noise --> Sentiment["Sentiment Tagging <br> (Frustrated, Negative, Aspirational, Positive, Neutral)"]
        Sentiment --> Clustering["Topic Clustering <br> (>60% Keyword Overlap Merging)"]
    end
    
    %% Module 2
    subgraph M2 ["Module 2: Pain Intelligence Engine"]
        Clustering --> Pains["Root-Cause Analysis <br> (Friction, Hidden Costs, Workarounds)"]
        Pains --> JTBD["Jobs-To-Be-Done Mapping <br> (Functional, Emotional, Social Jobs)"]
        JTBD --> Rank["Pain Weighting <br> (Frequency Γ— Intensity)"]
    end

    %% Module 3
    subgraph M3 ["Module 3: Voice & Messaging Generator"]
        Rank --> Glossary["Vocab Extractor <br> (Voice of the Customer Glossary)"]
        Glossary --> CopyGen["Copywriting Synthesis <br> (PAS Headlines, Hooks, Value Prop)"]
        CopyGen --> Recs["Strategic Recommendations <br> (Product, Marketing, Competitive)"]
    end

    %% Layers and Audits
    Knowledge[("Knowledge Layer <br> (15 Master Frameworks)")] -.-> |Inject Rules| M2
    Knowledge -.-> |Inject Rules| M3
    
    Recs --> Audit{"Self-Review Protocol <br> (Rubric Score >= 4/5?)"}
    
    %% Output
    Audit -->|Pass| OutputReport[\"Structured Markdown Report <br> + Interactive HTML Dashboard + PDF\"\]
    Audit -->|Fail| Prep
    
    %% Styling
    style Input fill:#e1f5fe,stroke:#03a9f4,stroke-width:2px;
    style M1 fill:#efebe9,stroke:#8d6e63,stroke-width:2px;
    style M2 fill:#fff8e1,stroke:#ffb300,stroke-width:2px;
    style M3 fill:#e8f5e9,stroke:#4caf50,stroke-width:2px;
    style Knowledge fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px;
    style Audit fill:#ffebee,stroke:#e91e63,stroke-width:2px;
    style OutputReport fill:#e0f2f1,stroke:#009688,stroke-width:3px;
Loading

πŸ”¬ Scientific Research & Academic Foundation

The CustomerMind Claude Skill and CLI installer were designed, calibrated, and validated using a structured database of 199 distinct academic, product engineering, and linguistic sources across 5 research modules.

                                  199 RESEARCH SOURCES
                                           β”‚
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β–Ό                  β–Ό                     β–Ό                     β–Ό                  β–Ό
[Mod 1]           [Mod 2]               [Mod 3]               [Mod 4]            [Mod 5]
Claude Skills     EDA Product           Psychology &          Natural Language   Linguistic Brain
Architecture      Blueprints            JTBD Frameworks       Engineering        (AI-Dev Slang)
 39 Sources        42 Sources            21 Sources            30 Sources         67 Sources

Reference Databases Summary

Research Area Source Count Core Methodology Integrated Key Focus Areas
1. Architecture & Knowledge Design 39 Progressive disclosure, cognitive routing, agentic subagent orchestration, and memory context limit management. Model Context Protocol (MCP), Claude Code workflows, .claude folder structures, and LLM reasoning benchmarks.
2. Enterprise Deliverable Architect (EDA) 42 Modular capability design for structured programmatic outputs (PDF, DOCX, XLSX, PPTX). Secure enterprise MCP servers, API gateway security, and Salesforce/Recruitly GTM automation integrations.
3. Customer Psychology & JTBD 21 The Jobs-To-Be-Done (JTBD) matrix, buying trances theory, and consumer psychology. Mapping functional, emotional, and social dimensions of customer intent from raw text.
4. Natural Language Generation (NLG) 30 Syntax diversity algorithms, active voice enforcement, and AI cliche identification. The Forbidden Language Database designed to eradicate synthetic LLM cliches ("delve", "tapestry", "skyrocket").
5. The Customer Language Brain 67 Exhaustive linguistic and sentiment analysis of modern AI-assisted engineering communities. Tracking real-world developer frictions, token wastes, vibe coding pitfalls, and editor migrations (bolt.new, Cursor Composer, Claude Code).

πŸ› οΈ Repository Organization

CustomerMind/
β”œβ”€β”€ README.md                      ← You are here
β”œβ”€β”€ LICENSE                        ← MIT License
β”œβ”€β”€ CHANGELOG.md                   ← Version history tracking
β”œβ”€β”€ CONTRIBUTING.md                ← Development rules
β”œβ”€β”€ .customermind.json             ← Integrity config manifest
β”‚
β”œβ”€β”€ skill/                         ← The Claude Skill Brain
β”‚   β”œβ”€β”€ system_prompt.md           ← 1108-line complete production system prompt
β”‚   β”œβ”€β”€ architecture.md            ← Pipeline routing & dependency specifications
β”‚   β”œβ”€β”€ module_reference.md        ← Module I/O specifications
β”‚   β”œβ”€β”€ reasoning_rules.md         ← Evidence-anchoring and opportunity scoring rules
β”‚   β”œβ”€β”€ output_contract.md         ← Standardized 10-section layout template
β”‚   └── guardrails.md              ← Forbidden language & edge case protocols
β”‚
β”œβ”€β”€ knowledge/                     ← Permanent Skill Knowledge Base
β”‚   β”œβ”€β”€ 01_customer_psychology.md  ← Buying trances and cognitive biases
β”‚   β”œβ”€β”€ 02_pain_intelligence.md    ← Root cause extraction models
β”‚   β”œβ”€β”€ 03_customer_language.md    ← Linguistic markers of intense friction
β”‚   β”œβ”€β”€ 04_ai_cliches.md           ← Syntactic patterns of AI slop
β”‚   β”œβ”€β”€ 05_brand_voice.md          ← Conversational voice guidelines
β”‚   β”œβ”€β”€ ...                        ← Additional framework documentation
β”‚   └── 15_glossary.md             ← Customer vocabulary baseline glossary
β”‚
β”œβ”€β”€ packages/                      ← Monorepo Workspace Packages
β”‚   β”œβ”€β”€ cli/                       ← Node.js CLI & Interactive Installer
β”‚   β”‚   β”œβ”€β”€ src/commands/analyze/  ← Analyze command (Reddit API + LLM pipeline)
β”‚   β”‚   β”œβ”€β”€ src/utils/filesystem/  ← Transactional filesystem manager (with rollback)
β”‚   β”‚   └── tests/                 ← Test suite for installer, parser, and command actions
β”‚   └── dashboard/                 ← Next.js Dashboard Web App
β”‚       β”œβ”€β”€ app/                   ← React/Tailwind frontend layout
β”‚       └── public/                ← Static charts and dashboard assets
β”‚
β”œβ”€β”€ research/                      ← Analysis Workspaces
β”‚   β”œβ”€β”€ raw/                       ← Raw community inputs (pasted comments, Reddit exports)
β”‚   └── reports/                   ← Validated markdown reports
β”‚
β”œβ”€β”€ scripts/                       ← Python Validation & Utility scripts
β”‚   β”œβ”€β”€ validate_outputs.py        ← Validates markdown reports against output contract
β”‚   β”œβ”€β”€ score_quality.py           ← Applies the 7-dimension evaluation rubric
β”‚   └── generate_reports.py        ← Batch prepares analysis files
β”‚
└── tests/                         ← Benchmark & Evaluation Suites
    β”œβ”€β”€ benchmark_cases/           ← Reference evaluation cases
    β”œβ”€β”€ edge_cases/                ← anomalous datasets (spam, sarcasm heavy)
    └── regression_tests/          ← Core regression suites

πŸš€ Quick Start Guide

Option A: Manual Use (Paste into Claude)

  1. Open skill/system_prompt.md and copy its entire content.
  2. Paste it as a System Prompt inside a Claude Project or as the initial instruction in a chat thread.
  3. Paste your raw, unstructured text (Reddit threads, App Store reviews, customer chats).
  4. CustomerMind will execute and return a verified Markdown report.

Option B: Automatic Programmatic Pipeline (CLI & Dashboard)

1. Setup & Installation

Navigate to the CLI workspace and install dependencies:

cd packages/cli
npm install
npm run build

Link the package globally to access the executable:

npm link

2. Run the Interactive Installer

Install CustomerMind configurations, directories, and knowledge files into any workspace:

npx create-customermind

The installer automatically detects your operating system, Node environment, and copies the permanent skill assets into your workspace with full transactional rollback safety.

3. Analyze Community Data

Query Reddit discussions programmatically and trigger the LLM analysis pipeline:

customermind analyze "Cursor AI" --posts 100 --time month

This single command:

  1. Crawls Reddit for conversations about the specified topic.
  2. Saves the raw dataset to research/raw/cursor_ai_input.txt.
  3. Runs the raw text through the Claude/Gemini API using the system prompt.
  4. Generates a fully formatted markdown report at research/reports/cursor_ai_report.md.
  5. Compiles a PDF copy at reports/dashboard/report.pdf.
  6. Generates an interactive, visual HTML dashboard at reports/dashboard/index.html.

⚑ Safety & Guardrails

To ensure professional-grade, human-sounding deliverables, CustomerMind applies rigid guardrails:

Important

No Hallucinations: Every customer pain point, quote, or phrase featured in the reports must map to a verbatim snippet in the raw text database. If no quote exists, the claim is rejected.

Warning

AI Slop Eradication: All generated copy is verified against the Forbidden Language Database containing 50+ banned words ("delve", "tapestry", "revolutionize") and structural rules (e.g. sentence length variation, active voice).

Tip

Data Quality Protocols: When raw input is sparse (<5 comments) or consists mostly of noise, CustomerMind skips the report generation step and activates the Elicitation Protocol, warning you of insufficient data quality.


πŸ§ͺ Pipeline Verification

You can verify the integrity of any generated Markdown report using the provided Python scripts:

Run Output Contract Validation:

python scripts/validate_outputs.py research/reports/scenario1_report.md

Run Rubric Quality Scorer:

python scripts/score_quality.py research/reports/scenario1_report.md

Run the CLI unit/integration tests:

cd packages/cli
npm test

About

Turn raw community conversations into validated customer intelligence using a three-stage Claude Skill reasoning pipeline.

Topics

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages