CommunityCoding & Developmentgithub.com

bjmhe/track-to-spm

Generates SPM SDK calls in Vue Single File Components (SFC) from a tracking plan document. Designed for Cursor / Agent Skills: when you @ the plan and target .vue in a conversation, it follows a fixed workflow to parse the plan, discover project conventions, select mount points, and generate minimal diffs.

What is track-to-spm?

This skill automates the conversion of tracking plan documents (e.g., event schemas or analytics requirements) into actual SDK invocation code inside Vue SFCs. When you reference a tracking plan and a target .vue file in a Cursor or AI agent conversation, it executes a deterministic workflow: first parsing the plan to extract event definitions and attributes, then discovering the project's existing SPM SDK conventions (like component naming, prop usage, or lifecycle hooks), selecting the appropriate mount points within the component, and finally generating the minimal code diff to integrate the tracking calls. This ensures consistent, standards-compliant tracking code with minimal manual effort. The skill supports platforms like Cursor, Claude Code, and Codex, and is especially useful for teams maintaining large Vue codebases with centralized analytics requirements.

Works with~Claude Code~Codex CLI✓Cursor
npx skills add bjmhe/track-to-spm

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does track-to-spm do?

Converts a tracking plan document into SPM SDK calls within Vue Single File Components (SFC). Designed for Cursor / Agent Skills: when you @ the plan and target .vue in a conversation, it follows a fixed workflow to parse, discover project conventions, select mount points, and generate minimal diffs.

Source: https://github.com/bjmhe/track-to-spm

Pushed: 2026-06-02T10:17:44Z

Related Skills