tracking-schema
Skill142 starsChanged 8 months agoApache-2.0View on GitHub
Use when the user wants schema preparation, event design, selector validation, schema review, or event-spec generation.
In this repository7 other files it gives its agents.
- analytics-tracking-automationSkill
- tracking-discoverSkill
- tracking-groupSkill
- tracking-live-gtmSkill
- tracking-shopifySkill
- tracking-syncSkill
- tracking-verifySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 10 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill for Step 3 work only.
- Distinctive: line 32
Do not preserve weak legacy patterns just for continuity.
- Distinctive: line 33
Do not inflate the schema with events that add little reporting or decision value.
- Distinctive: line 35
If the telemetry consent prompt appears and no prior choice is recorded, stop and follow ../../references/telemetry-consent.md before …
- Distinctive: line 37
If schema context is not prepared yet:
- Very specific: line 43
If the site has a live GTM container installed, make sure tracking-live-gtm has already produced <artifact-dir>/live-gtm-analysis.json …
- Very specific: line 59
default to a compact tracking-plan summary in this order: Event Table, Common Properties, Event-specific Properties
- Distinctive: line 60
keep long parameter inventories out of the main event table
- Distinctive: line 61
stop for user approval before GTM generation
- Very specific: line 63
do not run ./event-tracking confirm-schema <artifact-dir>/event-schema.json --yes on the user's behalf unless the user explicitly confirms …
- Distinctive: line 78
default to a decision-ready tracking-plan summary before listing files
- Very specific: line 79
keep the chat structure in this order: Event Table, Common Properties, Event-specific Properties
- Distinctive: line 80
if a live baseline comparison exists, keep it as a compact appendix rather than replacing the tracking-plan structure
- Distinctive: line 85
Stop after schema approval.
- Very specific: line 87
Do not continue into generate-gtm from a broad workflow request alone.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
Role And Quality Bar
During schema work, act as an expert in event tracking design.
Your job is not to list generic events. Your job is to produce a tracking plan that is:
- aligned with common GA4 / GTM industry standards
- comprehensive enough to cover the site's meaningful business journeys
- accurate enough to be implemented and verified without guesswork
- disciplined enough to avoid noisy, redundant, or low-signal events
- easy for the user to review, approve, QA, and maintain
Favor event definitions that are business-meaningful, implementation-ready, and analytically useful. Do not preserve weak legacy patterns just for continuity. Do not inflate the schema with events that add little reporting or decision value.
If the telemetry consent prompt appears and no prior choice is recorded, stop and follow ../../references/telemetry-consent.md before continuing.
If schema context is not prepared yet:
./event-tracking prepare-schema <artifact-dir>/site-analysis.jsonIf 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:
validate-schema --check-selectors launches a real Chromium via Playwright to test each schema selector against the live site. Run it in an environment that permits outbound network and local browser execution; environments that restrict either tend to cause Playwright to hang or fail silently rather than return a clean error.
./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.jsonDuring 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
- default to a compact tracking-plan summary in this order:
Event Table,Common Properties,Event-specific Properties - keep long parameter inventories out of the main event table
- stop for user approval before GTM generation
- a broad request such as "full workflow" or "全流程" does not count as schema approval
- do not run
./event-tracking confirm-schema <artifact-dir>/event-schema.json --yeson the user's behalf unless the user explicitly confirms the schema and parameters in the current turn
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
Closeout Style
- default to a decision-ready tracking-plan summary before listing files
- keep the chat structure in this order:
Event Table,Common Properties,Event-specific Properties - if a live baseline comparison exists, keep it as a compact appendix rather than replacing the tracking-plan structure
- list files and next steps only after the summary
Stop Boundary
Stop after schema approval.
Do not continue into generate-gtm from a broad workflow request alone. The user must explicitly approve the current event-schema.json and its parameters first.
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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

