skills/analytics-check/SKILL.md
Check PostHog analytics — DAU report across all projects or a single project. Use when the user asks about DAU, traffic, pageviews, analytics, or says 'DAU report'. Covers both portfolio-wide summaries and per-project deep dives.
npx skillsauth add razbakov/skills skills/analytics-checkInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Query PostHog analytics for DAU (Daily Active Users) across all tracked projects or a single project.
PostHog has two instances. API keys are in ~/.zshrc:
| Instance | Env Var | Host |
|----------|---------|------|
| EU | POSTHOG_READ_API_KEY | eu.i.posthog.com |
| US | POSTHOG_READ_US_API_KEY | us.i.posthog.com |
The project registry (PostHog IDs, instances, URLs) lives in the project's CLAUDE.md under "PostHog Analytics". Read it to get the current list — don't hardcode project IDs in this skill.
PostHog MCP (mcp__posthog__*) is scoped to a single project (WeDance US). For cross-project queries, always use the curl API.
source ~/.zshrc 2>/dev/null
Read the PostHog Analytics table from the project CLAUDE.md to get project names, IDs, and instances. Skip projects with - as PostHog ID (no tracking set up).
Use the PostHog Query API (/api/projects/<id>/query/) with a TrendsQuery. The legacy /insights/trend/ endpoint is deprecated and returns 403.
curl -s --max-time 20 "https://${instance}.i.posthog.com/api/projects/${project_id}/query/" \
-H "Authorization: Bearer ${api_key}" \
-H "Content-Type: application/json" \
-d '{"query":{"kind":"TrendsQuery","series":[{"event":"$pageview","math":"dau"}],"dateRange":{"date_from":"-7d"}}}'
Response structure: results[0].labels (date strings) and results[0].data (DAU counts).
EU PostHog can be flaky (503 "no healthy upstream"). If a project fails, retry once after a short pause. If it still fails, mark as UNAVAILABLE and continue — don't block the whole report.
Query projects sequentially (not in parallel) to avoid overwhelming the API. Use --max-time 20 to avoid hanging on unresponsive endpoints.
Format all projects in a single table sorted by 7-day average DAU (highest first):
| Project | Apr 2 | Apr 3 | ... | Apr 9 | 7d Avg | |---------|-------|-------|-----|-------|--------| | WeDance v3 | 20 | 21 | ... | 39 | 23 |
After the table, surface signals — not just observations, but routable findings. The point of this step is that a list of numbers is barely useful; what's useful is a short interpretation that someone could act on tomorrow.
End the report with a small action list — one bullet per non-trivial signal, with a clear owner. Owners come from the project/org context (read the project's CLAUDE.md for the agent team or roles); don't hardcode names. Typical mappings:
If the project has no agent team defined, leave the owner as "TBD" or address it to the user.
If the user said "save", or this skill was invoked from a daily/weekly review, persist the full report so other agents can reference it later. Read the project's CLAUDE.md to find the conventional sessions/snapshots directory (commonly ops/sessions/ or sessions/). Filename:
<sessions-dir>/YYYY-MM-DD-portfolio-dau-snapshot.md
Use today's date. Include the per-day matrix, per-project averages, signals, and action items.
When the user asks about a specific project:
/insights/trend/ endpoint. Switch to /query/ with TrendsQuery.--max-time.tools
--- name: handoff description: Get an agent past a browser/UI wall it can't (or must not) cross on its own — a login-gated dashboard, a CAPTCHA, a 2FA prompt, an API that keeps rejecting the write, or an irreversible click that policy says a human must make. This skill is an ESCALATION LADDER, not a first move: it tells you to try the automated browser surfaces FIRST (Chrome-in-Claude, computer-use, an autonomous browser sub-agent) and only fall back to the Handoff app — a wrapper browser that h
documentation
Summarize one or more YouTube videos from their links. Use this whenever the user pastes a youtube.com or youtu.be URL (or several) and wants to know what it's about — phrasings like "summarize to telegram", "tldr these videos", "what do these say", "summary of this talk", or just dropping links with no instruction at all. Fetches each video's real transcript via yt-dlp (not the page text, which never contains the transcript), cleans the captions, and writes a per-video summary. Default delivery is Telegram; honor any other surface the user names ("to my notes", "just here in chat", "email it"). Trigger even when the user only pastes bare links — bare YouTube links almost always mean "tell me what's in these".
data-ai
Daily Digest — Chief-of-Staff role consolidates the six top-managers into one Telegram message to the Commander, instead of six. Implements the protocol from agent-proactivity.md.
development
Seed a new or empty Instagram account with a 9-post grid (3×3) so the profile looks established the moment a new visitor lands. Designed for festivals, new businesses, product launches, conferences, communities — any time an empty IG profile would hurt conversion from external traffic (QR scans, flyer drops, cross-promo). Generates assets via /image-from-gemini (per content-publishing rules — never HTML), writes captions with hashtag sets, and outputs a posting order + cadence plan. Trigger generously: phrases like '9 posts for instagram', 'fill my IG', 'starter grid', 'launch grid', 'instagram seed', '9-post grid', 'IG account not to look empty', 'first instagram posts', 'feed bootstrap', '3x3 grid', 'instagram launch content'. Even if the user mentions only one piece (just the images, just the captions, just the order), use this skill — the grid only works as an integrated bundle.