skills/analytics-setup/SKILL.md
분석 환경 세팅 — PostHog 설치 + 이벤트 추적 추천. 분석 세팅, 이벤트 추적 설정 시 사용.
npx skillsauth add october-academy/agnt analytics-setupInstall 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.
분석 환경 세팅. 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 참조)tools
도구 비교 가이드 — 결제, 마케팅, 분석, 광고 도구. 도구 비교, 결제 솔루션 선택 시 사용.
testing
구독 전략 설계 — niche, paywall, pricing, trial, 플랫폼, 웹 병행 전략을 정한다. 앱/구독형 제품 monetization 설계 시 사용.
tools
현재 상태 대시보드 — 진행 현황, 시그널, 도구, 리더보드. 진행 상태 확인 시 사용.
data-ai
Agentic30 온보딩 + 상태 초기화. 시작하기, 프로젝트 시작 시 사용.