# Profile Explorer

> Interactive profile exploration combining lookup, segments, and event history. Use when the user wants to explore a user profile, view segment memberships, or browse event history for an identity.

- Skill: `lytics/profile-explorer` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lytics/profile-explorer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lytics/profile-explorer/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: lytics (https://skillmd.com/u/lytics)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/lytics/profile-explorer

---


# Profile Explorer

## Purpose
Interactive profile exploration that combines identity lookup, segment membership analysis, and event history browsing. Provides a comprehensive view of an individual user profile.

## Environment
Requires authenticated API access. See `../references/auth.md` for credential resolution.

## Inputs
- Identity field and value (e.g., `email`, `user@example.com`)
- Or: exploration query (e.g., "find a user in the high-value segment")

## Exploration Flow

### Step 1: Look Up Profile
Use `entity-lookup skill`:
```bash
curl -s "${LYTICS_API_URL:-https://api.lytics.io}/api/entity/user/${FIELD}/${VALUE}" \
  -H "Authorization: ${LYTICS_API_TOKEN}"
```

### Step 2: Get Segment Memberships
```bash
curl -s "${LYTICS_API_URL:-https://api.lytics.io}/api/entity/user/segments/${FIELD}/${VALUE}" \
  -H "Authorization: ${LYTICS_API_TOKEN}"
```

### Step 3: Present Profile Summary
Display a structured profile view:

```
## Profile: user@example.com

### Identity
- email: user@example.com
- user_id: 12345
- _uid: abc-def-ghi

### Key Attributes
- Name: Jane Smith
- Country: US
- City: Portland, OR
- Created: 2024-01-15
- Last Active: 2025-03-18

### Engagement
- Visit Count: 47
- Avg Visit Time: 3.2 min
- Content Affinity: Technology, Marketing

### Segment Memberships
- High Value Customers (segment)
- Email Subscribers (aspect)
- Q1 Campaign Target (list)

### Recent Events
[Summary from stream data if available]
```

### Step 4: Interactive Exploration
After presenting the summary, the user can:
- "What segments is this user in?" -> Show detailed segment list
- "Show me their purchase history" -> Look up relevant fields
- "Compare with another user" -> Look up second profile
- "Why are they in segment X?" -> Cross-reference segment FilterQL with profile data

## Finding Users

If the user doesn't have a specific identity:
1. Ask what they're looking for
2. Suggest searching by segment: list segment members using segment scan
3. Help them identify the right profile

## Error Handling
- **Profile not found**: Try alternative identity fields, suggest checking spelling
- **Multiple identities**: Show all linked identities, confirm which profile
- **Large profile**: Summarize key fields, offer to show full details on request

## Dependencies
- Composes: `entity-lookup skill`, `segment-manager skill`, `stream-inspector skill`
- References: `../references/auth.md`

