bobo-ai-cli 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +216 -0
  3. package/dist/agent.d.ts +9 -0
  4. package/dist/agent.js +144 -0
  5. package/dist/agent.js.map +1 -0
  6. package/dist/config.d.ts +15 -0
  7. package/dist/config.js +76 -0
  8. package/dist/config.js.map +1 -0
  9. package/dist/index.d.ts +2 -0
  10. package/dist/index.js +366 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/knowledge-commands.d.ts +2 -0
  13. package/dist/knowledge-commands.js +40 -0
  14. package/dist/knowledge-commands.js.map +1 -0
  15. package/dist/knowledge.d.ts +17 -0
  16. package/dist/knowledge.js +112 -0
  17. package/dist/knowledge.js.map +1 -0
  18. package/dist/memory.d.ts +17 -0
  19. package/dist/memory.js +215 -0
  20. package/dist/memory.js.map +1 -0
  21. package/dist/planner.d.ts +22 -0
  22. package/dist/planner.js +130 -0
  23. package/dist/planner.js.map +1 -0
  24. package/dist/project.d.ts +25 -0
  25. package/dist/project.js +117 -0
  26. package/dist/project.js.map +1 -0
  27. package/dist/rules-commands.d.ts +2 -0
  28. package/dist/rules-commands.js +51 -0
  29. package/dist/rules-commands.js.map +1 -0
  30. package/dist/skills.d.ts +28 -0
  31. package/dist/skills.js +349 -0
  32. package/dist/skills.js.map +1 -0
  33. package/dist/structured/loader.d.ts +19 -0
  34. package/dist/structured/loader.js +147 -0
  35. package/dist/structured/loader.js.map +1 -0
  36. package/dist/structured/paths.d.ts +2 -0
  37. package/dist/structured/paths.js +14 -0
  38. package/dist/structured/paths.js.map +1 -0
  39. package/dist/structured/project-scaffold.d.ts +7 -0
  40. package/dist/structured/project-scaffold.js +60 -0
  41. package/dist/structured/project-scaffold.js.map +1 -0
  42. package/dist/structured/render-markdown.d.ts +37 -0
  43. package/dist/structured/render-markdown.js +47 -0
  44. package/dist/structured/render-markdown.js.map +1 -0
  45. package/dist/structured/render-table.d.ts +1 -0
  46. package/dist/structured/render-table.js +15 -0
  47. package/dist/structured/render-table.js.map +1 -0
  48. package/dist/structured/search.d.ts +10 -0
  49. package/dist/structured/search.js +104 -0
  50. package/dist/structured/search.js.map +1 -0
  51. package/dist/structured/skill-runner.d.ts +15 -0
  52. package/dist/structured/skill-runner.js +60 -0
  53. package/dist/structured/skill-runner.js.map +1 -0
  54. package/dist/structured/types.d.ts +212 -0
  55. package/dist/structured/types.js +97 -0
  56. package/dist/structured/types.js.map +1 -0
  57. package/dist/structured-skills-commands.d.ts +3 -0
  58. package/dist/structured-skills-commands.js +126 -0
  59. package/dist/structured-skills-commands.js.map +1 -0
  60. package/dist/structured-template-commands.d.ts +2 -0
  61. package/dist/structured-template-commands.js +34 -0
  62. package/dist/structured-template-commands.js.map +1 -0
  63. package/dist/tools/index.d.ts +3 -0
  64. package/dist/tools/index.js +450 -0
  65. package/dist/tools/index.js.map +1 -0
  66. package/dist/ui.d.ts +19 -0
  67. package/dist/ui.js +72 -0
  68. package/dist/ui.js.map +1 -0
  69. package/dist/web.d.ts +4 -0
  70. package/dist/web.js +124 -0
  71. package/dist/web.js.map +1 -0
  72. package/knowledge/advanced-patterns.md +70 -0
  73. package/knowledge/agent-directives.md +74 -0
  74. package/knowledge/dream.md +36 -0
  75. package/knowledge/engineering.md +46 -0
  76. package/knowledge/error-catalog.md +33 -0
  77. package/knowledge/index.json +170 -0
  78. package/knowledge/memory/cache-optimization-and-skill-integration.md +102 -0
  79. package/knowledge/memory/engineering-patterns.md +134 -0
  80. package/knowledge/memory/feedback_root_structure.md +16 -0
  81. package/knowledge/memory/project-contexts.md +69 -0
  82. package/knowledge/memory/tools-and-services.md +85 -0
  83. package/knowledge/rules/agents.md +62 -0
  84. package/knowledge/rules/blocking-rules.md +323 -0
  85. package/knowledge/rules/cache-management.md +379 -0
  86. package/knowledge/rules/capability-evolution.md +132 -0
  87. package/knowledge/rules/coding.md +126 -0
  88. package/knowledge/rules/engineering-workflows.md +225 -0
  89. package/knowledge/rules/evomap-content-guidelines.md +354 -0
  90. package/knowledge/rules/evomap-guide.md +224 -0
  91. package/knowledge/rules/git.md +31 -0
  92. package/knowledge/rules/hooks.md +106 -0
  93. package/knowledge/rules/performance.md +101 -0
  94. package/knowledge/rules/remotion-auto-production.md +1120 -0
  95. package/knowledge/rules/security.md +46 -0
  96. package/knowledge/rules/testing.md +32 -0
  97. package/knowledge/rules/work-mode.md +208 -0
  98. package/knowledge/rules.md +62 -0
  99. package/knowledge/skills/Skill_Seekers.md +1722 -0
  100. package/knowledge/skills/ab-test-setup.md +557 -0
  101. package/knowledge/skills/agent-sdk-dev.md +238 -0
  102. package/knowledge/skills/agent-tools.md +136 -0
  103. package/knowledge/skills/analytics-tracking.md +597 -0
  104. package/knowledge/skills/artifacts-builder.md +89 -0
  105. package/knowledge/skills/asana.md +13 -0
  106. package/knowledge/skills/backend-expert.md +97 -0
  107. package/knowledge/skills/brand-voice.md +481 -0
  108. package/knowledge/skills/browser-use.md +419 -0
  109. package/knowledge/skills/cache-optimization-skill.md +179 -0
  110. package/knowledge/skills/canvas-design.md +147 -0
  111. package/knowledge/skills/citation-validator.md +203 -0
  112. package/knowledge/skills/clangd-lsp.md +52 -0
  113. package/knowledge/skills/code-review-expert.md +85 -0
  114. package/knowledge/skills/code-review.md +280 -0
  115. package/knowledge/skills/code-simplifier.md +13 -0
  116. package/knowledge/skills/commit-commands.md +258 -0
  117. package/knowledge/skills/competitor-alternatives.md +795 -0
  118. package/knowledge/skills/content-atomizer.md +910 -0
  119. package/knowledge/skills/content-research-writer.md +605 -0
  120. package/knowledge/skills/context-optimization-suite.md +162 -0
  121. package/knowledge/skills/context7.md +13 -0
  122. package/knowledge/skills/copy-editing.md +494 -0
  123. package/knowledge/skills/copywriting.md +510 -0
  124. package/knowledge/skills/csharp-lsp.md +40 -0
  125. package/knowledge/skills/decision-making-framework.md +154 -0
  126. package/knowledge/skills/developer-growth-analysis.md +335 -0
  127. package/knowledge/skills/direct-response-copy.md +2336 -0
  128. package/knowledge/skills/docker-expert.md +229 -0
  129. package/knowledge/skills/document-skills.md +13 -0
  130. package/knowledge/skills/documentation-expert.md +126 -0
  131. package/knowledge/skills/email-sequence.md +1061 -0
  132. package/knowledge/skills/email-sequences.md +910 -0
  133. package/knowledge/skills/example-plugin.md +72 -0
  134. package/knowledge/skills/explanatory-output-style.md +82 -0
  135. package/knowledge/skills/feature-dev.md +458 -0
  136. package/knowledge/skills/file-organizer.md +466 -0
  137. package/knowledge/skills/firebase.disabled.md +13 -0
  138. package/knowledge/skills/form-cro.md +488 -0
  139. package/knowledge/skills/free-tool-strategy.md +636 -0
  140. package/knowledge/skills/frontend-design-offical.md +55 -0
  141. package/knowledge/skills/frontend-design.md +41 -0
  142. package/knowledge/skills/frontend-expert.md +93 -0
  143. package/knowledge/skills/github.md +13 -0
  144. package/knowledge/skills/gitlab.md +13 -0
  145. package/knowledge/skills/gopls-lsp.md +32 -0
  146. package/knowledge/skills/got-controller.md +218 -0
  147. package/knowledge/skills/greptile.md +72 -0
  148. package/knowledge/skills/hookify.md +376 -0
  149. package/knowledge/skills/image-editor.md +189 -0
  150. package/knowledge/skills/image-enhancer.md +109 -0
  151. package/knowledge/skills/jdtls-lsp.md +49 -0
  152. package/knowledge/skills/json-canvas.md +654 -0
  153. package/knowledge/skills/keyword-research.md +559 -0
  154. package/knowledge/skills/kotlin-lsp.md +28 -0
  155. package/knowledge/skills/laravel-boost.md +13 -0
  156. package/knowledge/skills/launch-strategy.md +394 -0
  157. package/knowledge/skills/lead-magnet.md +393 -0
  158. package/knowledge/skills/learning-output-style.md +106 -0
  159. package/knowledge/skills/linear.md +13 -0
  160. package/knowledge/skills/lua-lsp.md +47 -0
  161. package/knowledge/skills/marketing-ideas.md +720 -0
  162. package/knowledge/skills/marketing-psychology.md +534 -0
  163. package/knowledge/skills/mcp-builder.md +369 -0
  164. package/knowledge/skills/meeting-insights-analyzer.md +347 -0
  165. package/knowledge/skills/memory-evolution-system.md +172 -0
  166. package/knowledge/skills/multi-lens-thinking.md +407 -0
  167. package/knowledge/skills/nano-banana-pro.md +116 -0
  168. package/knowledge/skills/newsletter.md +736 -0
  169. package/knowledge/skills/notebooklm.md +296 -0
  170. package/knowledge/skills/obsidian-bases.md +634 -0
  171. package/knowledge/skills/obsidian-markdown.md +651 -0
  172. package/knowledge/skills/onboarding-cro.md +494 -0
  173. package/knowledge/skills/orchestrator.md +681 -0
  174. package/knowledge/skills/page-cro.md +379 -0
  175. package/knowledge/skills/paid-ads.md +624 -0
  176. package/knowledge/skills/paywall-upgrade-cro.md +651 -0
  177. package/knowledge/skills/php-lsp.md +36 -0
  178. package/knowledge/skills/planning-with-files.md +193 -0
  179. package/knowledge/skills/playwright.md +13 -0
  180. package/knowledge/skills/plugin-dev.md +434 -0
  181. package/knowledge/skills/popup-cro.md +520 -0
  182. package/knowledge/skills/positioning-angles.md +330 -0
  183. package/knowledge/skills/pr-review-toolkit.md +359 -0
  184. package/knowledge/skills/pricing-strategy.md +777 -0
  185. package/knowledge/skills/programmatic-seo.md +714 -0
  186. package/knowledge/skills/pyright-lsp.md +43 -0
  187. package/knowledge/skills/quality-assurance-framework.md +168 -0
  188. package/knowledge/skills/question-refiner.md +160 -0
  189. package/knowledge/skills/ralph-loop.md +205 -0
  190. package/knowledge/skills/refactoring-expert.md +103 -0
  191. package/knowledge/skills/referral-program.md +668 -0
  192. package/knowledge/skills/research-executor.md +164 -0
  193. package/knowledge/skills/review-with-security.md +12 -0
  194. package/knowledge/skills/rust-analyzer-lsp.md +50 -0
  195. package/knowledge/skills/schema-markup.md +647 -0
  196. package/knowledge/skills/security-audit-expert.md +124 -0
  197. package/knowledge/skills/security-expert.md +140 -0
  198. package/knowledge/skills/security-guidance.md +13 -0
  199. package/knowledge/skills/seedance-prompt.md +139 -0
  200. package/knowledge/skills/self-evolution.md +1160 -0
  201. package/knowledge/skills/seo-audit.md +432 -0
  202. package/knowledge/skills/seo-content.md +787 -0
  203. package/knowledge/skills/serena.md +13 -0
  204. package/knowledge/skills/signup-flow-cro.md +409 -0
  205. package/knowledge/skills/skill-creator.md +220 -0
  206. package/knowledge/skills/skill-manager.md +226 -0
  207. package/knowledge/skills/skill-share.md +98 -0
  208. package/knowledge/skills/slack.md +13 -0
  209. package/knowledge/skills/social-content.md +878 -0
  210. package/knowledge/skills/spec-flow-skill.md +124 -0
  211. package/knowledge/skills/stripe.md +13 -0
  212. package/knowledge/skills/supabase.md +13 -0
  213. package/knowledge/skills/swift-lsp.md +40 -0
  214. package/knowledge/skills/synthesizer.md +236 -0
  215. package/knowledge/skills/template-skill.md +16 -0
  216. package/knowledge/skills/testing-expert.md +99 -0
  217. package/knowledge/skills/theme-factory.md +72 -0
  218. package/knowledge/skills/tiktok-research.md +208 -0
  219. package/knowledge/skills/typescript-lsp.md +36 -0
  220. package/knowledge/skills/ui-ux-pro-max.md +247 -0
  221. package/knowledge/skills/verify.md +15 -0
  222. package/knowledge/skills/visual-prompt-engineer.md +102 -0
  223. package/knowledge/skills/webapp-testing.md +111 -0
  224. package/knowledge/skills/wide-research.md +191 -0
  225. package/knowledge/system.md +93 -0
  226. package/knowledge/task-router.md +37 -0
  227. package/knowledge/verification.md +38 -0
  228. package/knowledge/workflows/3d-viz.md +47 -0
  229. package/knowledge/workflows/data-pipeline.md +47 -0
  230. package/knowledge/workflows/db-migration.md +51 -0
  231. package/knowledge/workflows/feature-dev.md +41 -0
  232. package/knowledge/workflows/tdd-flow.md +52 -0
  233. package/knowledge/workflows/ui-verify.md +51 -0
  234. package/package.json +60 -0
@@ -0,0 +1,597 @@
1
+ ---
2
+ id: "analytics-tracking"
3
+ title: "Analytics Tracking"
4
+ category: "marketing"
5
+ tags: ["analytics tracking", "initial assessment", "core principles", "tracking plan framework", "event naming conventions", "essential events to track", "event properties (parameters)", "ga4 implementation", "utm parameter strategy", "debugging and validation"]
6
+ triggers: []
7
+ dependencies: []
8
+ source: "E:/Bobo's Coding cache/.claude/skills/analytics-tracking"
9
+ ---
10
+
11
+ ---
12
+ name: analytics-tracking
13
+ description: When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," or "tracking plan." For A/B test measurement, see ab-test-setup.
14
+ ---
15
+
16
+ # Analytics Tracking
17
+
18
+ You are an expert in analytics implementation and measurement. Your goal is to help set up tracking that provides actionable insights for marketing and product decisions.
19
+
20
+ ## Initial Assessment
21
+
22
+ Before implementing tracking, understand:
23
+
24
+ 1. **Business Context**
25
+ - What decisions will this data inform?
26
+ - What are the key conversion actions?
27
+ - What questions need answering?
28
+
29
+ 2. **Current State**
30
+ - What tracking exists?
31
+ - What tools are in use (GA4, Mixpanel, Amplitude, etc.)?
32
+ - What's working/not working?
33
+
34
+ 3. **Technical Context**
35
+ - What's the tech stack?
36
+ - Who will implement and maintain?
37
+ - Any privacy/compliance requirements?
38
+
39
+ ---
40
+
41
+ ## Core Principles
42
+
43
+ ### 1. Track for Decisions, Not Data
44
+
45
+ - Every event should inform a decision
46
+ - Avoid vanity metrics
47
+ - Quality > quantity of events
48
+
49
+ ### 2. Start with the Questions
50
+
51
+ - What do you need to know?
52
+ - What actions will you take based on this data?
53
+ - Work backwards to what you need to track
54
+
55
+ ### 3. Name Things Consistently
56
+
57
+ - Naming conventions matter
58
+ - Establish patterns before implementing
59
+ - Document everything
60
+
61
+ ### 4. Maintain Data Quality
62
+
63
+ - Validate implementation
64
+ - Monitor for issues
65
+ - Clean data > more data
66
+
67
+ ---
68
+
69
+ ## Tracking Plan Framework
70
+
71
+ ### Structure
72
+
73
+ ```
74
+ Event Name | Event Category | Properties | Trigger | Notes
75
+ ---------- | ------------- | ---------- | ------- | -----
76
+ ```
77
+
78
+ ### Event Types
79
+
80
+ **Pageviews**
81
+
82
+ - Automatic in most tools
83
+ - Enhanced with page metadata
84
+
85
+ **User Actions**
86
+
87
+ - Button clicks
88
+ - Form submissions
89
+ - Feature usage
90
+ - Content interactions
91
+
92
+ **System Events**
93
+
94
+ - Signup completed
95
+ - Purchase completed
96
+ - Subscription changed
97
+ - Errors occurred
98
+
99
+ **Custom Conversions**
100
+
101
+ - Goal completions
102
+ - Funnel stages
103
+ - Business-specific milestones
104
+
105
+ ---
106
+
107
+ ## Event Naming Conventions
108
+
109
+ ### Format Options
110
+
111
+ **Object-Action (Recommended)**
112
+
113
+ ```
114
+ signup_completed
115
+ button_clicked
116
+ form_submitted
117
+ article_read
118
+ ```
119
+
120
+ **Action-Object**
121
+
122
+ ```
123
+ click_button
124
+ submit_form
125
+ complete_signup
126
+ ```
127
+
128
+ **Category_Object_Action**
129
+
130
+ ```
131
+ checkout_payment_completed
132
+ blog_article_viewed
133
+ onboarding_step_completed
134
+ ```
135
+
136
+ ### Best Practices
137
+
138
+ - Lowercase with underscores
139
+ - Be specific: `cta_hero_clicked` vs. `button_clicked`
140
+ - Include context in properties, not event name
141
+ - Avoid spaces and special characters
142
+ - Document decisions
143
+
144
+ ---
145
+
146
+ ## Essential Events to Track
147
+
148
+ ### Marketing Site
149
+
150
+ **Navigation**
151
+
152
+ - page_view (enhanced)
153
+ - outbound_link_clicked
154
+ - scroll_depth (25%, 50%, 75%, 100%)
155
+
156
+ **Engagement**
157
+
158
+ - cta_clicked (button_text, location)
159
+ - video_played (video_id, duration)
160
+ - form_started
161
+ - form_submitted (form_type)
162
+ - resource_downloaded (resource_name)
163
+
164
+ **Conversion**
165
+
166
+ - signup_started
167
+ - signup_completed
168
+ - demo_requested
169
+ - contact_submitted
170
+
171
+ ### Product/App
172
+
173
+ **Onboarding**
174
+
175
+ - signup_completed
176
+ - onboarding_step_completed (step_number, step_name)
177
+ - onboarding_completed
178
+ - first_key_action_completed
179
+
180
+ **Core Usage**
181
+
182
+ - feature_used (feature_name)
183
+ - action_completed (action_type)
184
+ - session_started
185
+ - session_ended
186
+
187
+ **Monetization**
188
+
189
+ - trial_started
190
+ - pricing_viewed
191
+ - checkout_started
192
+ - purchase_completed (plan, value)
193
+ - subscription_cancelled
194
+
195
+ ### E-commerce
196
+
197
+ **Browsing**
198
+
199
+ - product_viewed (product_id, category, price)
200
+ - product_list_viewed (list_name, products)
201
+ - product_searched (query, results_count)
202
+
203
+ **Cart**
204
+
205
+ - product_added_to_cart
206
+ - product_removed_from_cart
207
+ - cart_viewed
208
+
209
+ **Checkout**
210
+
211
+ - checkout_started
212
+ - checkout_step_completed (step)
213
+ - payment_info_entered
214
+ - purchase_completed (order_id, value, products)
215
+
216
+ ---
217
+
218
+ ## Event Properties (Parameters)
219
+
220
+ ### Standard Properties to Consider
221
+
222
+ **Page/Screen**
223
+
224
+ - page_title
225
+ - page_location (URL)
226
+ - page_referrer
227
+ - content_group
228
+
229
+ **User**
230
+
231
+ - user_id (if logged in)
232
+ - user_type (free, paid, admin)
233
+ - account_id (B2B)
234
+ - plan_type
235
+
236
+ **Campaign**
237
+
238
+ - source
239
+ - medium
240
+ - campaign
241
+ - content
242
+ - term
243
+
244
+ **Product** (e-commerce)
245
+
246
+ - product_id
247
+ - product_name
248
+ - category
249
+ - price
250
+ - quantity
251
+ - currency
252
+
253
+ **Timing**
254
+
255
+ - timestamp
256
+ - session_duration
257
+ - time_on_page
258
+
259
+ ### Best Practices
260
+
261
+ - Use consistent property names
262
+ - Include relevant context
263
+ - Don't duplicate GA4 automatic properties
264
+ - Avoid PII in properties
265
+ - Document expected values
266
+
267
+ ---
268
+
269
+ ## GA4 Implementation
270
+
271
+ ### Configuration
272
+
273
+ **Data Streams**
274
+
275
+ - One stream per platform (web, iOS, Android)
276
+ - Enable enhanced measurement
277
+
278
+ **Enhanced Measurement Events**
279
+
280
+ - page_view (automatic)
281
+ - scroll (90% depth)
282
+ - outbound_click
283
+ - site_search
284
+ - video_engagement
285
+ - file_download
286
+
287
+ **Recommended Events**
288
+
289
+ - Use Google's predefined events when possible
290
+ - Correct naming for enhanced reporting
291
+ - See: https://support.google.com/analytics/answer/9267735
292
+
293
+ ### Custom Events (GA4)
294
+
295
+ ```javascript
296
+ // gtag.js
297
+ gtag('event', 'signup_completed', {
298
+ method: 'email',
299
+ plan: 'free',
300
+ });
301
+
302
+ // Google Tag Manager (dataLayer)
303
+ dataLayer.push({
304
+ event: 'signup_completed',
305
+ method: 'email',
306
+ plan: 'free',
307
+ });
308
+ ```
309
+
310
+ ### Conversions Setup
311
+
312
+ 1. Collect event in GA4
313
+ 2. Mark as conversion in Admin > Events
314
+ 3. Set conversion counting (once per session or every time)
315
+ 4. Import to Google Ads if needed
316
+
317
+ ### Custom Dimensions and Metrics
318
+
319
+ **When to use:**
320
+
321
+ - Properties you want to segment by
322
+ - Metrics you want to aggregate
323
+ - Beyond standard parameters
324
+
325
+ **Setup:**
326
+
327
+ 1. Create in Admin > Custom definitions
328
+ 2. Scope: Event, User, or Item
329
+ 3. Parameter name must match
330
+
331
+ ---
332
+
333
+ ## Google Tag Manager Implementation
334
+
335
+ ### Container Structure
336
+
337
+ **Tags**
338
+
339
+ - GA4 Configuration (base)
340
+ - GA4 Event tags (one per event or grouped)
341
+ - Conversion pixels (Facebook, LinkedIn, etc.)
342
+
343
+ **Triggers**
344
+
345
+ - Page View (DOM Ready, Window Loaded)
346
+ - Click - All Elements / Just Links
347
+ - Form Submission
348
+ - Custom Events
349
+
350
+ **Variables**
351
+
352
+ - Built-in: Click Text, Click URL, Page Path, etc.
353
+ - Data Layer variables
354
+ - JavaScript variables
355
+ - Lookup tables
356
+
357
+ ### Best Practices
358
+
359
+ - Use folders to organize
360
+ - Consistent naming (Tag_Type_Description)
361
+ - Version notes on every publish
362
+ - Preview mode for testing
363
+ - Workspaces for team collaboration
364
+
365
+ ### Data Layer Pattern
366
+
367
+ ```javascript
368
+ // Push custom event
369
+ dataLayer.push({
370
+ event: 'form_submitted',
371
+ form_name: 'contact',
372
+ form_location: 'footer',
373
+ });
374
+
375
+ // Set user properties
376
+ dataLayer.push({
377
+ user_id: '12345',
378
+ user_type: 'premium',
379
+ });
380
+
381
+ // E-commerce event
382
+ dataLayer.push({
383
+ event: 'purchase',
384
+ ecommerce: {
385
+ transaction_id: 'T12345',
386
+ value: 99.99,
387
+ currency: 'USD',
388
+ items: [
389
+ {
390
+ item_id: 'SKU123',
391
+ item_name: 'Product Name',
392
+ price: 99.99,
393
+ },
394
+ ],
395
+ },
396
+ });
397
+ ```
398
+
399
+ ---
400
+
401
+ ## UTM Parameter Strategy
402
+
403
+ ### Standard Parameters
404
+
405
+ | Parameter | Purpose | Example |
406
+ | ------------ | ------------------------ | ---------------------------- |
407
+ | utm_source | Where traffic comes from | google, facebook, newsletter |
408
+ | utm_medium | Marketing medium | cpc, email, social, referral |
409
+ | utm_campaign | Campaign name | spring_sale, product_launch |
410
+ | utm_content | Differentiate versions | hero_cta, sidebar_link |
411
+ | utm_term | Paid search keywords | running+shoes |
412
+
413
+ ### Naming Conventions
414
+
415
+ **Lowercase everything**
416
+
417
+ - google, not Google
418
+ - email, not Email
419
+
420
+ **Use underscores or hyphens consistently**
421
+
422
+ - product_launch or product-launch
423
+ - Pick one, stick with it
424
+
425
+ **Be specific but concise**
426
+
427
+ - blog_footer_cta, not cta1
428
+ - 2024_q1_promo, not promo
429
+
430
+ ### UTM Documentation
431
+
432
+ Track all UTMs in a spreadsheet or tool:
433
+
434
+ | Campaign | Source | Medium | Content | Full URL | Owner | Date |
435
+ | -------- | ------ | ------ | ------- | -------- | ----- | ---- |
436
+ | ... | ... | ... | ... | ... | ... | ... |
437
+
438
+ ### UTM Builder
439
+
440
+ Provide a consistent UTM builder link to team:
441
+
442
+ - Google's URL builder
443
+ - Internal tool
444
+ - Spreadsheet formula
445
+
446
+ ---
447
+
448
+ ## Debugging and Validation
449
+
450
+ ### Testing Tools
451
+
452
+ **GA4 DebugView**
453
+
454
+ - Real-time event monitoring
455
+ - Enable with ?debug_mode=true
456
+ - Or via Chrome extension
457
+
458
+ **GTM Preview Mode**
459
+
460
+ - Test triggers and tags
461
+ - See data layer state
462
+ - Validate before publish
463
+
464
+ **Browser Extensions**
465
+
466
+ - GA Debugger
467
+ - Tag Assistant
468
+ - dataLayer Inspector
469
+
470
+ ### Validation Checklist
471
+
472
+ - [ ] Events firing on correct triggers
473
+ - [ ] Property values populating correctly
474
+ - [ ] No duplicate events
475
+ - [ ] Works across browsers
476
+ - [ ] Works on mobile
477
+ - [ ] Conversions recorded correctly
478
+ - [ ] User ID passing when logged in
479
+ - [ ] No PII leaking
480
+
481
+ ### Common Issues
482
+
483
+ **Events not firing**
484
+
485
+ - Trigger misconfigured
486
+ - Tag paused
487
+ - GTM not loaded on page
488
+
489
+ **Wrong values**
490
+
491
+ - Variable not configured
492
+ - Data layer not pushing correctly
493
+ - Timing issues (fire before data ready)
494
+
495
+ **Duplicate events**
496
+
497
+ - Multiple GTM containers
498
+ - Multiple tag instances
499
+ - Trigger firing multiple times
500
+
501
+ ---
502
+
503
+ ## Privacy and Compliance
504
+
505
+ ### Considerations
506
+
507
+ - Cookie consent required in EU/UK/CA
508
+ - No PII in analytics properties
509
+ - Data retention settings
510
+ - User deletion capabilities
511
+ - Cross-device tracking consent
512
+
513
+ ### Implementation
514
+
515
+ **Consent Mode (GA4)**
516
+
517
+ - Wait for consent before tracking
518
+ - Use consent mode for partial tracking
519
+ - Integrate with consent management platform
520
+
521
+ **Data Minimization**
522
+
523
+ - Only collect what you need
524
+ - IP anonymization
525
+ - No PII in custom dimensions
526
+
527
+ ---
528
+
529
+ ## Output Format
530
+
531
+ ### Tracking Plan Document
532
+
533
+ ```
534
+ # [Site/Product] Tracking Plan
535
+
536
+ ## Overview
537
+ - Tools: GA4, GTM
538
+ - Last updated: [Date]
539
+ - Owner: [Name]
540
+
541
+ ## Events
542
+
543
+ ### Marketing Events
544
+
545
+ | Event Name | Description | Properties | Trigger |
546
+ |------------|-------------|------------|---------|
547
+ | signup_started | User initiates signup | source, page | Click signup CTA |
548
+ | signup_completed | User completes signup | method, plan | Signup success page |
549
+
550
+ ### Product Events
551
+ [Similar table]
552
+
553
+ ## Custom Dimensions
554
+
555
+ | Name | Scope | Parameter | Description |
556
+ |------|-------|-----------|-------------|
557
+ | user_type | User | user_type | Free, trial, paid |
558
+
559
+ ## Conversions
560
+
561
+ | Conversion | Event | Counting | Google Ads |
562
+ |------------|-------|----------|------------|
563
+ | Signup | signup_completed | Once per session | Yes |
564
+
565
+ ## UTM Convention
566
+
567
+ [Guidelines]
568
+ ```
569
+
570
+ ### Implementation Code
571
+
572
+ Provide ready-to-use code snippets
573
+
574
+ ### Testing Checklist
575
+
576
+ Specific validation steps
577
+
578
+ ---
579
+
580
+ ## Questions to Ask
581
+
582
+ If you need more context:
583
+
584
+ 1. What tools are you using (GA4, Mixpanel, etc.)?
585
+ 2. What key actions do you want to track?
586
+ 3. What decisions will this data inform?
587
+ 4. Who implements - dev team or marketing?
588
+ 5. Are there privacy/consent requirements?
589
+ 6. What's already tracked?
590
+
591
+ ---
592
+
593
+ ## Related Skills
594
+
595
+ - **ab-test-setup**: For experiment tracking
596
+ - **seo-audit**: For organic traffic analysis
597
+ - **page-cro**: For conversion optimization (uses this data)
@@ -0,0 +1,89 @@
1
+ ---
2
+ id: "artifacts-builder"
3
+ title: "Artifacts Builder"
4
+ category: "design"
5
+ tags: ["artifacts builder", "design & style guidelines", "quick start", "reference"]
6
+ triggers: []
7
+ dependencies: []
8
+ source: "E:/Bobo's Coding cache/.claude/skills/artifacts-builder"
9
+ ---
10
+
11
+ ---
12
+ name: artifacts-builder
13
+ description: Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
14
+ license: Complete terms in LICENSE.txt
15
+ ---
16
+
17
+ # Artifacts Builder
18
+
19
+ To build powerful frontend claude.ai artifacts, follow these steps:
20
+
21
+ 1. Initialize the frontend repo using `scripts/init-artifact.sh`
22
+ 2. Develop your artifact by editing the generated code
23
+ 3. Bundle all code into a single HTML file using `scripts/bundle-artifact.sh`
24
+ 4. Display artifact to user
25
+ 5. (Optional) Test the artifact
26
+
27
+ **Stack**: React 18 + TypeScript + Vite + Parcel (bundling) + Tailwind CSS + shadcn/ui
28
+
29
+ ## Design & Style Guidelines
30
+
31
+ VERY IMPORTANT: To avoid what is often referred to as "AI slop", avoid using excessive centered layouts, purple gradients, uniform rounded corners, and Inter font.
32
+
33
+ ## Quick Start
34
+
35
+ ### Step 1: Initialize Project
36
+
37
+ Run the initialization script to create a new React project:
38
+
39
+ ```bash
40
+ bash scripts/init-artifact.sh <project-name>
41
+ cd <project-name>
42
+ ```
43
+
44
+ This creates a fully configured project with:
45
+
46
+ - ✅ React + TypeScript (via Vite)
47
+ - ✅ Tailwind CSS 3.4.1 with shadcn/ui theming system
48
+ - ✅ Path aliases (`@/`) configured
49
+ - ✅ 40+ shadcn/ui components pre-installed
50
+ - ✅ All Radix UI dependencies included
51
+ - ✅ Parcel configured for bundling (via .parcelrc)
52
+ - ✅ Node 18+ compatibility (auto-detects and pins Vite version)
53
+
54
+ ### Step 2: Develop Your Artifact
55
+
56
+ To build the artifact, edit the generated files. See **Common Development Tasks** below for guidance.
57
+
58
+ ### Step 3: Bundle to Single HTML File
59
+
60
+ To bundle the React app into a single HTML artifact:
61
+
62
+ ```bash
63
+ bash scripts/bundle-artifact.sh
64
+ ```
65
+
66
+ This creates `bundle.html` - a self-contained artifact with all JavaScript, CSS, and dependencies inlined. This file can be directly shared in Claude conversations as an artifact.
67
+
68
+ **Requirements**: Your project must have an `index.html` in the root directory.
69
+
70
+ **What the script does**:
71
+
72
+ - Installs bundling dependencies (parcel, @parcel/config-default, parcel-resolver-tspaths, html-inline)
73
+ - Creates `.parcelrc` config with path alias support
74
+ - Builds with Parcel (no source maps)
75
+ - Inlines all assets into single HTML using html-inline
76
+
77
+ ### Step 4: Share Artifact with User
78
+
79
+ Finally, share the bundled HTML file in conversation with the user so they can view it as an artifact.
80
+
81
+ ### Step 5: Testing/Visualizing the Artifact (Optional)
82
+
83
+ Note: This is a completely optional step. Only perform if necessary or requested.
84
+
85
+ To test/visualize the artifact, use available tools (including other Skills or built-in tools like Playwright or Puppeteer). In general, avoid testing the artifact upfront as it adds latency between the request and when the finished artifact can be seen. Test later, after presenting the artifact, if requested or if issues arise.
86
+
87
+ ## Reference
88
+
89
+ - **shadcn/ui components**: https://ui.shadcn.com/docs/components
@@ -0,0 +1,13 @@
1
+ ---
2
+ id: "asana"
3
+ title: "asana"
4
+ category: "knowledge"
5
+ tags: ["asana"]
6
+ triggers: []
7
+ dependencies: []
8
+ source: "E:/Bobo's Coding cache/.claude/skills/asana"
9
+ ---
10
+
11
+ # asana
12
+
13
+ Skill directory: asana