Agent skill
tracking-schema
Use when the user wants schema preparation, event design, selector validation, schema review, or event-spec generation.
Install this agent skill to your Project
npx add-skill https://github.com/jtrackingai/event-tracking-skill/tree/main/skills/tracking-schema
SKILL.md
Tracking Schema
Use this skill for Step 3 work only.
Inputs
One of:
- confirmed
<artifact-dir>/site-analysis.json - existing
<artifact-dir>/event-schema.json
Workflow
If schema context is not prepared yet:
./event-tracking prepare-schema <artifact-dir>/site-analysis.json
If the site has a live GTM container installed, make sure tracking-live-gtm has already produced <artifact-dir>/live-gtm-analysis.json before running prepare-schema.
Then:
Run validate-schema --check-selectors outside sandboxed environments by default. Do not first attempt the Playwright selector check inside the sandbox and then retry after it is intercepted.
./event-tracking validate-schema <artifact-dir>/event-schema.json --check-selectors
./event-tracking generate-spec <artifact-dir>/event-schema.json
./event-tracking confirm-schema <artifact-dir>/event-schema.json
During review:
- explain what live tracking problems the schema fixes when
live-gtm-analysis.jsonis present - explain what benefits the new schema brings compared with the current live baseline
- show the event list
- show grouped parameter tables per event
- stop for user approval before GTM generation
Required Output
Produce and share:
<artifact-dir>/event-schema.json- optional
<artifact-dir>/event-spec.md - optional
<artifact-dir>/tracking-plan-comparison.mdwhenlive-gtm-analysis.jsonis present <artifact-dir>/schema-decisions.jsonlafter schema confirmation<artifact-dir>/schema-restore/restore snapshots after schema confirmation- updated
<artifact-dir>/workflow-state.json
Stop Boundary
Stop after schema approval.
Default next phase:
./event-tracking generate-gtm <artifact-dir>/event-schema.json --measurement-id <G-XXXXXXXXXX>
References
- ../../references/event-schema-guide.md
- ../../references/ga4-event-guidelines.md
- ../../references/output-contract.md
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
tracking-live-gtm
Use when the user wants to inspect the real live GTM runtime before schema generation or compare multiple live GTM containers.
tracking-discover
Use when the user wants crawl coverage, platform detection, dataLayer discovery, or a fresh artifact directory before grouping and schema work.
tracking-shopify
Use when the platform is Shopify or the run needs the Shopify-specific schema, sync, install, or verification branch.
tracking-group
Use when the work starts from `site-analysis.json` and the user wants page-group authoring, grouping adjustments, or page-group approval.
tracking-verify
Use when the user wants preview QA, failure interpretation, release readiness, or an explicit publish handoff.
tracking-sync
Use when the user wants GTM-ready config generation, GTM workspace sync, or container selection from an approved schema.
Didn't find tool you were looking for?