Automated summary
This skill states Supabase Studio's PostHog tracking conventions: event naming, property rules, the useTrack hook, and TypeScript event declarations in telemetry-constants.ts.
Strengths
- Canonical list of approved verbs with before/after fixes for common mistakes
- Review rules ranked as required changes (naming, properties, deprecated hook) that apply directly to PRs
- Complete TypeScript interface template with @group and @source annotations plus the TelemetryEvent union step
- Explicit guidance on what not to track, including the _exposed experiment exception and the no-PII rule
Limitations
- Tightly coupled to the Supabase monorepo (apps/studio, packages/common) and not reusable as-is elsewhere
- Does not cover PostHog setup itself, such as initialization, feature flags, or environments
- Assumes familiarity with the existing product events and their established property conventions
Reach for it when adding a track() call, defining a new event, or reviewing a PR that touches PostHog tracking in Supabase Studio.
Skip it when instrumenting a different product or analytics vendor whose naming rules and hooks differ.
Security analysis
SafeThis is a pure documentation/standards file for PostHog telemetry conventions in Supabase Studio. It declares no tools and contains no executable instructions, shell commands, network calls, credential handling, or destructive operations. The only sensitive topic is telemetry, but all guidance is toward privacy (explicitly 'Never track PII'), so there is no meaningful execution risk.
No concerns found
How this analysis is madeExamples
I'm adding a 'duplicate table' action to the Studio table editor. Add a useTrack() call following the telemetry standards and declare the event interface in packages/common/telemetry-constants.ts.Review the tracking changes in this diff against the telemetry-standards skill and flag naming, property, or deprecated-hook violations as required changes.Our code fires track('click_backup_button', { label: 'backup' }). Rewrite it to comply with the telemetry standards and explain each change.name: telemetry-standards description: PostHog event tracking standards for Supabase Studio. Use when adding useTrack() calls, defining events in packages/common/telemetry-constants.ts, implementing tracking for a new feature, or reviewing PRs for telemetry compliance. Covers event naming, property conventions, approved patterns, and implementation guide.
Telemetry Standards for Supabase Studio
Standards for PostHog event tracking in apps/studio/. Apply these when
reviewing PRs that touch tracking or when implementing new tracking.
Event Naming
Format: [object]_[verb] in snake_case
Approved verbs only (canonical list — derived from packages/common/telemetry-constants.ts):
opened, clicked, submitted, created, removed, updated, intended, evaluated, added,
enabled, disabled, copied, exposed, failed, converted, closed, completed, applied, sent, moved
Flag these:
- Unapproved verbs (saved, viewed, seen, pressed, etc.)
- Wrong order:
click_product_card→ should beproduct_card_clicked - Wrong casing:
productCardClicked→ should beproduct_card_clicked
Good examples:
product_card_clickedbackup_button_clickedsql_query_submitted
Common mistakes with corrections:
database_saved→save_button_clickedordatabase_updated(unapproved verb)click_backup_button→backup_button_clicked(wrong order)dashboardViewed→ don't track passive views on page loadcomponent_rendered→ don't track — no user interaction
Property Standards
Casing: camelCase preferred for new events. The codebase has existing snake_case properties (e.g., schema_name, table_name) — when adding properties to an existing event, match its established convention.
Names must be self-explanatory:
{ productType: 'database', planTier: 'pro' }{ assistantType: 'sql', suggestionType: 'optimization' }
Flag these:
- Generic names:
label,value,name,data - PascalCase properties
- Inconsistent names across similar events (e.g.,
assistantTypein one event,aiTypein a related event) - Mixing camelCase and snake_case within the same event
What NOT to Track
- Passive views/renders on page load (
dashboard_viewed,sidebar_appeared,page_loaded) - Component appearances without user interaction
- Generic "viewed" or "seen" events — already captured by pageview events
DO track: user clicks, form submissions, explicit opens/closes, user-initiated actions.
Exception: _exposed events for A/B experiment exposure tracking are valid even though they fire on render.
Never track PII (emails, names, IPs, etc.) in event properties.
Required Pattern
Import useTrack from lib/telemetry/track (within apps/studio/). Never use useSendEventMutation (deprecated).
import { useTrack } from 'lib/telemetry/track'
const MyComponent = () => {
const track = useTrack()
const handleClick = () => {
track('product_card_clicked', {
productType: 'database',
planTier: 'pro',
source: 'dashboard',
})
}
return <button onClick={handleClick}>Click me</button>
}
Event Definitions
All events must be defined as TypeScript interfaces in packages/common/telemetry-constants.ts:
/**
* [Event description]
*
* @group Events
* @source [what triggers this event]
*/
export interface MyFeatureClickedEvent {
action: 'my_feature_clicked'
properties: {
/** Description of property */
featureType: string
}
groups: TelemetryGroups
}
Add the new interface to the TelemetryEvent union type so useTrack picks it up.
@group Events and @source must be accurate.
Review Rules
When reviewing a PR, flag these as required changes:
- Naming violations — event not following
[object]_[verb]snake_case, or using an unapproved verb - Property violations — not camelCase, generic names, or inconsistent with similar events
- Deprecated hook — any usage of
useSendEventMutationinstead ofuseTrack - Unnecessary view tracking — events that fire on page load without user interaction
- Inaccurate docs —
@page/@sourcedescriptions that don't match the actual implementation
When a PR adds user-facing interactions (buttons, forms, toggles, modals) without tracking, suggest:
- "This adds a user interaction that may benefit from tracking."
- Propose the event name following
[object]_[verb]convention - Propose the
useTrack()call with suggested properties
When checking property consistency, search packages/common/telemetry-constants.ts for similar events and verify property names match.
Well-Formed Event Examples
From the actual codebase:
// User copies a connection string
track('connection_string_copied', {
connectionType: 'psql',
connectionMethod: 'transaction_pooler',
connectionTab: 'Connection String',
})
// User enables a feature preview
track('feature_preview_enabled', {
feature: 'realtime_inspector',
})
// User clicks a banner CTA
track('index_advisor_banner_dismiss_button_clicked')
// Experiment exposure (fires on render — valid exception)
track('home_new_experiment_exposed', {
variant: 'treatment',
})
Implementing New Tracking
To add tracking for a user action:
- Name the event —
[object]_[verb]using approved verbs only - Choose properties — camelCase preferred for new events; check
packages/common/telemetry-constants.tsfor similar events and match their property names and casing - Add interface to telemetry-constants.ts — with
@group Eventsand@sourceJSDoc, add to theTelemetryEventunion type - Add to component —
import { useTrack } from 'lib/telemetry/track', calltrack('event_name', { properties })
Verification checklist
- [ ] Event name follows
[object]_[verb]with approved verb - [ ] Event name is snake_case
- [ ] Properties are camelCase and self-explanatory
- [ ] Event defined in telemetry-constants.ts with accurate
@page/@source - [ ] Using
useTrackhook (notuseSendEventMutation) - [ ] Not tracking passive views/appearances
- [ ] No PII in event properties (emails, names, IPs, etc.)
- [ ] Property names consistent with similar events
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/telemetry-standards-for-supabase-studio-mte1lfu0/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/telemetry-standards-for-supabase-studio-mte1lfu0' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/telemetry-standards-for-supabase-studio-mte1lfu0/download' --output '.skill-downloads/telemetry-standards-for-supabase-studio-mte1lfu0/SKILL.md.part' && mv '.skill-downloads/telemetry-standards-for-supabase-studio-mte1lfu0/SKILL.md.part' '.skill-downloads/telemetry-standards-for-supabase-studio-mte1lfu0/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/telemetry-standards-for-supabase-studio-mte1lfu0/SKILL.md' && test -s '.skill-downloads/telemetry-standards-for-supabase-studio-mte1lfu0/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/telemetry-standards' && cp -R '.skill-downloads/telemetry-standards-for-supabase-studio-mte1lfu0' '.claude/skills/telemetry-standards'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/telemetry-standards-for-supabase-studio-mte1lfu0'openskills read 'telemetry-standards-for-supabase-studio-mte1lfu0'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/telemetry-standards-for-supabase-studio-mte1lfu0/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.