competitive-intellisted
Install: claude install-skill Aditya923-c/xpoz-agent-skills
# Competitive Intelligence
## Overview
Compare multiple brands or products side by side across Twitter/X, Reddit, and Instagram. Measure share of voice, compare sentiment, identify positioning differences, and discover competitive advantages from real social conversations.
## When to Use
Activate when the user asks:
- "Compare [BRAND A] vs [BRAND B] on social media"
- "Share of voice: [BRAND] vs competitors"
- "Competitive analysis for [PRODUCT]"
- "How does [BRAND A] sentiment compare to [BRAND B]?"
- "What are people saying about [BRAND] vs [COMPETITOR]?"
## Setup & Authentication
Before fetching data, ensure Xpoz access is configured. Follow these checks in order.
### Check 1: Already authenticated?
**If you have MCP tools**, try calling any Xpoz tool (e.g., `checkAccessKeyStatus`). If it works → skip to Step 1.
**If you have the SDK**, try:
```python
from xpoz import XpozClient
client = XpozClient() # reads XPOZ_API_KEY env var
```
If this succeeds without error → skip to Step 1.
If neither works, you need to authenticate. Choose the path that fits your environment:
---
### Path A: MCP via mcporter (OpenClaw agents)
If `mcporter` is available:
```bash
mcporter call xpoz.checkAccessKeyStatus
```
If `hasAccessKey: true` → ready. If not:
```bash
mcporter config add xpoz https://mcp.xpoz.ai/mcp --auth oauth
```
Then authenticate — generate the OAuth URL and send it to the user:
**Step 1: Generate authorization URL**
```python
import secrets, hashlib, base64