Docsbook
← Back to catalog
observabilitypro_plusrequires Docsbook MCP

docs-visitor-cohort

Drills into the top-N most active anonymous visitors and clusters them by behavior pattern — "buyer-blocker" (visits pricing, leaves negative feedback), "tire-kicker" (browses but never reaches CTA), "deep-reader" (long engagement, positive signals). Surfaces cohort-level findings that page-level analytics miss. Produces an insight JSON report consumable by downstream actor agents. Requires PRO+ plan.

Install & use this skill

Pick your AI client — install this single skill and call it.

1. Install
npx skills add Docsbook-io/docs-skills --skill docs-visitor-cohort -a claude-code
2. Use
/docs-visitor-cohort

Invoke as a slash command in chat.

Or: runtime discovery via Docsbook MCP

Already connected to the Docsbook MCP server? Skip install — ask your agent to load this skill on demand.

@docsbook find_skill "docs-visitor-cohort"

docs-visitor-cohort — Find the behavioral cohorts behind aggregate numbers

Page-level analytics tell you which page is doing badly. Cohort analysis tells you which kind of user is failing — and that's often what marketing/product actually need to know.

This skill takes the top ~20 most active anonymous visitors (get_top_visitors), pulls their full activity timeline (get_visitor_activity), and uses the LLM to cluster them into 3–6 named behavioral cohorts (e.g. buyer-blocker, mcp-debugger, tire-kicker). Each cohort becomes a finding with severity tied to how blocking the pattern is.

When to run#

Workflow#

Standard four-stage docs-insights pipeline. Slice = cohort. The collector fans out: get_top_visitors then one get_visitor_activity per returned visitor_id (5 parallel).

What this skill catches#

Cohort label (example) Pattern Action
buyer-blocker landing → quick-start → billing → 👎 on billing, no Upgrade click add_to_todo + notify_slack — this is a sales-critical pattern
mcp-debugger repeated visits to mcp.md and webhooks.md, no CTA hits invoke_skill: docs-editor — likely missing examples
deep-reader wide path coverage, long dwell, no negative signals info — replicate what they read in onboarding
tire-kicker many pages, 0 CTA, never returns info — context, not problem

Guardrails#

Output for downstream consumption#

Each cohort finding's suggested_actions[] is mapped to:

Acceptance criteria#

Same shape as docs-utm-analyzer. Cohort labels are present in findings[].title.

Arguments#

Argument Type Default Description
workspace string required id or owner/repo
period string 30d 30d is the working default
cohort_size number 20 How many top visitors to drill into
View source on GitHub →Browse full catalog repo →
Keywords
cohortvisitorbehaviorsegmentationtop-usersbuyerblockerretention
MCP tools used
get_top_visitorsget_visitor_activityget_workspace