원클릭으로
gk-analytics
Setup product analytics integration and define event tracking schemas for user behavior measurement
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Setup product analytics integration and define event tracking schemas for user behavior measurement
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Generate precise visual component specs or review implemented UI for design quality and accessibility compliance.
Execute Markdown-based implementation plans by parsing, executing tasks, and updating status.
Validate framework compliance across all agents and skills.
Generate agent and skill files following Gemini Kit templates. Use when creating a new skill or /gk-* command. Use for building agent definitions or extending Gemini Kit.
Audit UI components for WCAG 2.2 AA compliance and generate actionable accessibility fixes
Analyze code or system structure and report findings on complexity, dependencies, and risks.
SOC 직업 분류 기준
| name | gk-analytics |
| agent | developer |
| version | 1.0.0 |
| description | Setup product analytics integration and define event tracking schemas for user behavior measurement |
| tier | optional |
| Flag | Description | Reference |
|---|---|---|
| --setup | Install and configure provider for stack; requires stack; generates client wrapper file, consent snippet, and env var list | (base skill rules) |
| --events | Generate event taxonomy from feature_description; requires feature_description; returns event_taxonomy with names, properties, and fire triggers | (base skill rules) |
| --audit | Validate existing_events for object_action naming, snake_case, length, and required properties; requires existing_events list | (base skill rules) |
| (default) | Review current analytics implementation for coverage gaps, missing consent, and GDPR compliance | (base skill rules) |
Senior Product Engineer — expert in PostHog, Mixpanel, GA4, Plausible, and event taxonomy design.
Scaffold analytics providers, generate event tracking schemas, or audit existing event implementations for naming consistency, GDPR compliance, and coverage gaps.
{
"provider": "string (optional, default: 'posthog') — posthog | mixpanel | ga4 | plausible",
"stack": "string[] (required for --setup) — e.g. ['nextjs', 'react']",
"feature_description": "string (optional, for --events) — describe the feature to generate events for",
"existing_events": "string[] (optional, for --audit) — list of event names to audit"
}
<mandatory_steps>
blocked with missing_fields if absentobject_action convention, snake_case, ≤50 charsMISSING_CONSENT if no consent mechanism detectedprocess.env.NEXT_PUBLIC_POSTHOG_KEY).object_action naming convention for events (e.g. button_clicked, page_viewed, checkout_completed).SCHEMA_INVALID if not.MISSING_CONSENT if no consent mechanism is detected in the stack during --setup.UNSUPPORTED_PROVIDER if provider is not in the supported list.blocked with missing_fields: ["stack"] if --setup is invoked without stack.blocked with missing_fields: ["feature_description"] if --events is invoked without feature_description.blocked with missing_fields: ["existing_events"] if --audit is invoked without existing_events.Internal data contract — consumed by the invoking agent, not displayed to users. Agent formats user-facing output per
04_output.md.
{
"status": "completed | failed | blocked",
"format": "json | markdown",
"result": {
"provider": "string — selected provider",
"generated_files": [
{
"path": "string — relative file path",
"purpose": "string — what this file does"
}
],
"install_command": "string — e.g. 'pnpm add posthog-js'",
"env_vars_required": [
"string — e.g. 'NEXT_PUBLIC_POSTHOG_KEY'"
],
"event_taxonomy": [
{
"event_name": "string — snake_case event name",
"properties": { "key": "type description" },
"trigger": "string — when this event fires"
}
],
"setup_steps": [
"string — ordered action step"
],
"compliance_notes": [
"string — GDPR/consent related note or action required"
]
},
"summary": "one sentence describing the analytics setup or audit findings",
"confidence": "high | medium | low"
}
Example (completed):
{
"status": "completed",
"format": "json",
"result": {
"provider": "posthog",
"coverage_gaps": [],
"generated_files": [
{ "path": "src/lib/analytics.ts", "purpose": "PostHog client init with user identification" }
],
"install_command": "pnpm add posthog-js",
"env_vars_required": ["NEXT_PUBLIC_POSTHOG_KEY", "NEXT_PUBLIC_POSTHOG_HOST"],
"event_taxonomy": [
{ "event_name": "user_signed_up", "properties": { "plan": "string", "referral": "string" }, "trigger": "After successful registration" }
],
"setup_steps": ["Add env vars to .env.local", "Wrap layout.tsx with PostHogProvider"],
"compliance_notes": ["Add cookie consent banner — PostHog cookies require GDPR opt-in in EU"]
},
"summary": "PostHog analytics scaffolded with 1 event defined; GDPR consent banner required.",
"confidence": "high"
}