How this skill is triggered — by the user, by Claude, or both
Slash command
/agnt:analytics-setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
분석 환경 세팅. PostHog 설치 안내와 제품 유형별 핵심 이벤트를 추천합니다.
분석 환경 세팅. PostHog 설치 안내와 제품 유형별 핵심 이벤트를 추천합니다.
.claude/agnt/state.json을 Read 시도 → 성공하면 AGNT_DIR = .claude/agnt~/.claude/agnt/state.json Read 시도 → 성공하면 AGNT_DIR = ~/.claude/agnt.codex/agnt/state.json Read 시도 → 성공하면 AGNT_DIR = .codex/agnt~/.codex/agnt/state.json Read 시도 → 성공하면 AGNT_DIR = ~/.codex/agnt/agnt:start로 시작하세요." 출력 후 종료{AGNT_DIR}/references/shared/navigator-engine.md 존재 여부로 탐색.
내부 로직 무음 처리.
{AGNT_DIR}/state.json Read.
meta.schema_version != 3 → /agnt:start로 안내 후 종료기본값 보증:
artifacts.analytics_setup가 undefined면 false로 처리출력:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
분석 환경 세팅
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
제품에 PostHog를 연결하고 핵심 이벤트를 설정하자.
📦 설치 방법 2가지:
1️⃣ 자동 설치 (추천):
npx @posthog/wizard
→ 프레임워크 감지 + 설정 파일 자동 생성
2️⃣ 수동 설치:
npm install posthog-js (또는 bun add posthog-js)
→ posthog.init('phc_YOUR_KEY', { api_host: 'https://us.i.posthog.com' })
AskUserQuestion: "PostHog 설치 상태는?"
{REFS_DIR}/analytics/posthog-events.md Read.
AskUserQuestion: "제품 유형은?"
선택한 유형에 맞는 핵심 이벤트를 posthog-events.md에서 로드하여 출력한다.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
{유형} 핵심 이벤트
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
{이벤트 테이블 — posthog-events.md 기반}
📝 코드 예시:
{해당 유형의 코드 스니펫}
+ 공통 이벤트:
• $pageview (자동)
• cta_clicked
• error_occurred
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📡 MCP 연결하면 PostHog 데이터를 자동 동기화할 수 있어.
ToolSearch로 +agentic30 검색.
도구 발견 시:
MCP 연결됨. connect_posthog_project로 API key를 연결해줘:
→ PostHog 프로젝트 설정 → Project API Key 복사
도구 없으면:
MCP 미연결 — /agnt:connect로 연결하면 PostHog 데이터 동기화 가능.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
분석 환경 세팅 완료
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
설정한 것:
• PostHog: {설치됨/보류}
• 추천 이벤트: {유형}별 {N}개
이벤트를 심으면 유저 행동 데이터가 쌓이기 시작해.
1주일 후 /agnt:analyze에서 실제 데이터를 분석할 수 있어.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
state.json 업데이트:
artifacts.analytics_setup = truetools.analytics = "posthog"meta.last_action = "analytics-setup"meta.total_actions++ToolSearch로 +agentic30 검색.
도구 발견 시:
submit_practice 호출: quest_id = "wf-analytics-setup"도구 없으면 (identity.mode != "synced" 또는 ToolSearch 실패):
sync.pending_events에 추가 (50건 초과 시 가장 오래된 이벤트 제거):
{ "type": "submit_practice", "args": { "quest_id": "wf-analytics-setup" }, "created_at": "<now()>" }
/agnt:tools C 참조)npx claudepluginhub october-academy/agnt --plugin agntGuides SaaS analytics setup: event tracking, key metrics by growth stage, funnels, naming conventions, data quality, and tools like PostHog, Plausible, Mixpanel.
Implements product analytics with event tracking, funnel analysis, A/B testing using Segment, Amplitude, Mixpanel, PostHog. Designs privacy-compliant event schemas and instrumentation.
Generates minimal PostHog examples for event capture, identify, and feature flags using posthog-js (browser/React) and posthog-node (Node.js). For quick starts, testing, or learning SDK patterns.