{"_id":"@ai-analytics-hub/cohort-analysis-skill","_rev":"2-bc7f71a8d6e0333fa42439edf1bb7795","name":"@ai-analytics-hub/cohort-analysis-skill","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@ai-analytics-hub/cohort-analysis-skill","version":"1.0.0","keywords":["cursor","skill","analytics","cohort","retention","ai-analytics-hub"],"author":{"name":"AI Analytics Hub"},"license":"MIT","_id":"@ai-analytics-hub/cohort-analysis-skill@1.0.0","maintainers":[{"name":"ai-analytics-hub","email":"nimrod@ai-analytics-hub.com"}],"bin":{"cohort-analysis-skill":"bin/install.js"},"dist":{"shasum":"90825b35b8defb5662595fe2e767179bae4a89ba","tarball":"https://registry.npmjs.org/@ai-analytics-hub/cohort-analysis-skill/-/cohort-analysis-skill-1.0.0.tgz","fileCount":6,"integrity":"sha512-RgHObLJBK4bxV5XFvBB4cRu5oAY5EkIUMtkFLo/iLWNuvCrIHhvFVRLktgp1tDI9F0i040A8nym8OrmfrEHN2g==","signatures":[{"sig":"MEUCIFXLbWaiUtk1S/vrmveeev17SYgzl62Zqf+LXDr1lyloAiEAisrCFi27DF6SnI/lmqw3ezhRT/aYIoVyYQPBxBL9FrM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70016},"engines":{"node":">=14"},"gitHead":"21f97cb81e1e8919ee644e1a9438a0182649e319","_npmUser":{"name":"ai-analytics-hub","email":"nimrod@ai-analytics-hub.com"},"_npmVersion":"10.8.2","description":"Install the AI Analytics Hub cohort retention analysis skill into your Cursor environment","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cohort-analysis-skill_1.0.0_1771676660059_0.5281966357988692","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@ai-analytics-hub/cohort-analysis-skill","version":"1.0.1","description":"Install the AI Analytics Hub cohort retention analysis skill into your Cursor environment","keywords":["cursor","skill","analytics","cohort","retention","ai-analytics-hub"],"author":{"name":"AI Analytics Hub"},"license":"MIT","bin":{"cohort-analysis-skill":"bin/install.js"},"engines":{"node":">=14"},"_id":"@ai-analytics-hub/cohort-analysis-skill@1.0.1","gitHead":"21f97cb81e1e8919ee644e1a9438a0182649e319","_nodeVersion":"22.16.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-P1Tt3Cc73fYKcDv5pn0tKZXzZtmRBQvXPqsiou8HpcwOZt/gDPTMweh9wcna2cjV19qi4NMexPYZeOiX++lHng==","shasum":"9199bdb4691148dacf9c2522c646ec1e3918c3a7","tarball":"https://registry.npmjs.org/@ai-analytics-hub/cohort-analysis-skill/-/cohort-analysis-skill-1.0.1.tgz","fileCount":6,"unpackedSize":70017,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD9GKwm9pkMh6Ar1vE2W9qsYZRJPOqHs078qZfNOQFTZAIhAIvqcOIecQKfdg3yHq/BN5q/cpYXq8mcHOA1XQGI3JWZ"}]},"_npmUser":{"name":"ai-analytics-hub","email":"nimrod@ai-analytics-hub.com"},"directories":{},"maintainers":[{"name":"ai-analytics-hub","email":"nimrod@ai-analytics-hub.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cohort-analysis-skill_1.0.1_1771677452505_0.6146444071868664"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-21T12:24:19.970Z","modified":"2026-02-21T12:37:32.763Z","1.0.0":"2026-02-21T12:24:20.220Z","1.0.1":"2026-02-21T12:37:32.678Z"},"author":{"name":"AI Analytics Hub"},"license":"MIT","keywords":["cursor","skill","analytics","cohort","retention","ai-analytics-hub"],"description":"Install the AI Analytics Hub cohort retention analysis skill into your Cursor environment","maintainers":[{"name":"ai-analytics-hub","email":"nimrod@ai-analytics-hub.com"}],"readme":"# cohort-analysis-skill\n\n> Install the AI Analytics Hub **Cohort Retention Analysis** skill into your Cursor environment with one command.\n\n## Install\n\nNavigate to your Cursor project root, then run:\n\n```bash\nnpx @ai-analytics-hub/cohort-analysis-skill\n```\n\nThat's it. The skill is installed at `.cursor/skills/cohort-analysis/`.\n\n## What gets installed\n\n```\n.cursor/skills/cohort-analysis/\n├── SKILL.md               # Skill instructions for Claude\n├── cohort_analysis.py     # Canonical computation script\n└── cohort_dashboard.html  # Interactive dashboard template\n```\n\n## Usage\n\nOnce installed, open your project in Cursor and ask Claude:\n\n> \"Run a cohort retention analysis on my data\"\n\nClaude will guide you through:\n\n1. **Connecting your data** — CSV file, Supabase MCP, or direct SQL connection\n2. **Clarifying the analysis** — segments, cohort definition, retention method\n3. **Running the computation** — via `cohort_analysis.py`\n4. **Reviewing the results** — with an explicit checkpoint before generating the dashboard\n5. **Building the dashboard** — an interactive HTML file with retention curves, segment breakdowns, and a cohort heatmap\n\n## Data sources supported\n\n| Source | How |\n|--------|-----|\n| CSV file | Upload or provide a file path |\n| Supabase MCP | Claude queries directly — no credentials needed |\n| PostgreSQL | SQLAlchemy connection string |\n| Snowflake | SQLAlchemy connection string |\n| BigQuery | SQLAlchemy connection string |\n| MySQL | SQLAlchemy connection string |\n\n## Requirements\n\n- [Cursor](https://cursor.sh) with Claude enabled\n- Python 3.8+ (for the computation script)\n- For SQL sources: `pip install sqlalchemy` + the relevant DB driver\n- For MCP sources: MCP server configured in Cursor — no extra packages needed\n\n## Update\n\nRe-run the same command to overwrite with the latest version:\n\n```bash\nnpx @ai-analytics-hub/cohort-analysis-skill@latest\n```\n\n## About\n\nBuilt by [AI Analytics Hub](https://ai-analytics-hub.com) — helping data teams build systematic AI workflows.\n","readmeFilename":"README.md"}