Initial commit
This commit is contained in:
15
.claude-plugin/plugin.json
Normal file
15
.claude-plugin/plugin.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "real-user-monitoring",
|
||||||
|
"description": "Implement Real User Monitoring for actual performance data",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"author": {
|
||||||
|
"name": "Claude Code Plugins",
|
||||||
|
"email": "[email protected]"
|
||||||
|
},
|
||||||
|
"skills": [
|
||||||
|
"./skills"
|
||||||
|
],
|
||||||
|
"commands": [
|
||||||
|
"./commands"
|
||||||
|
]
|
||||||
|
}
|
||||||
3
README.md
Normal file
3
README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# real-user-monitoring
|
||||||
|
|
||||||
|
Implement Real User Monitoring for actual performance data
|
||||||
35
commands/setup-rum.md
Normal file
35
commands/setup-rum.md
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
description: Set up Real User Monitoring
|
||||||
|
---
|
||||||
|
|
||||||
|
# Real User Monitoring Setup
|
||||||
|
|
||||||
|
Implement RUM to capture actual user performance experiences.
|
||||||
|
|
||||||
|
## Monitoring Metrics
|
||||||
|
|
||||||
|
1. **Core Web Vitals**: LCP, FID, CLS
|
||||||
|
2. **Page Load Metrics**: FCP, TTI, TTFB
|
||||||
|
3. **Custom Metrics**: Business-specific timing markers
|
||||||
|
4. **User Context**: Browser, device, geography, network
|
||||||
|
5. **Error Tracking**: Client-side errors and exceptions
|
||||||
|
|
||||||
|
## Process
|
||||||
|
|
||||||
|
1. Choose RUM platform (Google Analytics, Datadog RUM, New Relic, etc.)
|
||||||
|
2. Design instrumentation strategy
|
||||||
|
3. Implement tracking code
|
||||||
|
4. Configure data collection and sampling
|
||||||
|
5. Create analysis dashboards
|
||||||
|
6. Set up alerting for degraded experiences
|
||||||
|
|
||||||
|
## Output
|
||||||
|
|
||||||
|
Provide:
|
||||||
|
- RUM integration code for frontend
|
||||||
|
- Configuration for chosen platform
|
||||||
|
- Custom metric definitions
|
||||||
|
- Dashboard setup for Core Web Vitals
|
||||||
|
- Segmentation strategy (device, browser, geography)
|
||||||
|
- Alert rules for poor user experiences
|
||||||
|
- Privacy and compliance considerations
|
||||||
61
plugin.lock.json
Normal file
61
plugin.lock.json
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"$schema": "internal://schemas/plugin.lock.v1.json",
|
||||||
|
"pluginId": "gh:jeremylongshore/claude-code-plugins-plus:plugins/performance/real-user-monitoring",
|
||||||
|
"normalized": {
|
||||||
|
"repo": null,
|
||||||
|
"ref": "refs/tags/v20251128.0",
|
||||||
|
"commit": "1ec477085d2fc8b8514212a78bf4ad3d0d741880",
|
||||||
|
"treeHash": "2bf1dc9431e9ec490ccfc3036ec89e886d774d1d84929162b1c5512c0b6e5027",
|
||||||
|
"generatedAt": "2025-11-28T10:18:41.002754Z",
|
||||||
|
"toolVersion": "publish_plugins.py@0.2.0"
|
||||||
|
},
|
||||||
|
"origin": {
|
||||||
|
"remote": "git@github.com:zhongweili/42plugin-data.git",
|
||||||
|
"branch": "master",
|
||||||
|
"commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390",
|
||||||
|
"repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data"
|
||||||
|
},
|
||||||
|
"manifest": {
|
||||||
|
"name": "real-user-monitoring",
|
||||||
|
"description": "Implement Real User Monitoring for actual performance data",
|
||||||
|
"version": "1.0.0"
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "README.md",
|
||||||
|
"sha256": "b5a5a6e7c78411ceb656f5e2b31098b79437203e36fe93c352d496ad2c232078"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": ".claude-plugin/plugin.json",
|
||||||
|
"sha256": "f28b17d3b6dd0537d15be5b1361897247f8221445aa9e350eeffc91372231005"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/setup-rum.md",
|
||||||
|
"sha256": "38cee38bc0441f5978084e0a6d1a519083e6f8a9284de9a13c4295f24e7c9207"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/real-user-monitoring/SKILL.md",
|
||||||
|
"sha256": "1ca0626e3e691b282cd3c759ebdc92412be02e3871d45917eed1597cd5b35a9c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/real-user-monitoring/references/README.md",
|
||||||
|
"sha256": "74d2f13e803dc585910068fd073ffe4274d68095d3c4cc5d1cb37f4489f55a1c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/real-user-monitoring/scripts/README.md",
|
||||||
|
"sha256": "7ba66ccf005d161f63246aa45ba818ec6d11057bcec9eb6d48602e51a11fa9af"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "skills/real-user-monitoring/assets/README.md",
|
||||||
|
"sha256": "5969297e1cbb5a7847a067d1ba41ccfed914311419a52c32358bd310bb5282ff"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"dirSha256": "2bf1dc9431e9ec490ccfc3036ec89e886d774d1d84929162b1c5512c0b6e5027"
|
||||||
|
},
|
||||||
|
"security": {
|
||||||
|
"scannedAt": null,
|
||||||
|
"scannerVersion": null,
|
||||||
|
"flags": []
|
||||||
|
}
|
||||||
|
}
|
||||||
52
skills/real-user-monitoring/SKILL.md
Normal file
52
skills/real-user-monitoring/SKILL.md
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
---
|
||||||
|
name: implementing-real-user-monitoring
|
||||||
|
description: |
|
||||||
|
This skill assists in implementing Real User Monitoring (RUM) to capture and analyze actual user performance data. It helps set up tracking for key metrics like Core Web Vitals, page load times, and custom performance events. Use this skill when the user asks to "setup RUM", "implement real user monitoring", "track user experience", or needs assistance with "performance monitoring". It guides the user through choosing a RUM platform, designing an instrumentation strategy, and implementing the necessary tracking code.
|
||||||
|
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
|
||||||
|
version: 1.0.0
|
||||||
|
---
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
This skill streamlines the process of setting up Real User Monitoring (RUM) for web applications. It guides you through the essential steps of choosing a platform, defining metrics, and implementing the tracking code to capture valuable user experience data.
|
||||||
|
|
||||||
|
## How It Works
|
||||||
|
|
||||||
|
1. **Platform Selection**: Helps you consider available RUM platforms (e.g., Google Analytics, Datadog RUM, New Relic).
|
||||||
|
2. **Instrumentation Design**: Guides you in defining the key performance metrics to track, including Core Web Vitals and custom events.
|
||||||
|
3. **Tracking Code Implementation**: Assists in implementing the necessary JavaScript code to collect and transmit performance data.
|
||||||
|
|
||||||
|
## When to Use This Skill
|
||||||
|
|
||||||
|
This skill activates when you need to:
|
||||||
|
- Implement Real User Monitoring on a website or web application.
|
||||||
|
- Track Core Web Vitals (LCP, FID, CLS) to improve user experience.
|
||||||
|
- Monitor page load times (FCP, TTI, TTFB) for performance optimization.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
### Example 1: Setting up RUM for a new website
|
||||||
|
|
||||||
|
User request: "setup RUM for my new website"
|
||||||
|
|
||||||
|
The skill will:
|
||||||
|
1. Guide the user through selecting a RUM platform.
|
||||||
|
2. Provide code snippets for implementing basic tracking.
|
||||||
|
|
||||||
|
### Example 2: Tracking custom performance metrics
|
||||||
|
|
||||||
|
User request: "I want to track how long it takes users to complete a purchase"
|
||||||
|
|
||||||
|
The skill will:
|
||||||
|
1. Help define a custom performance metric for purchase completion time.
|
||||||
|
2. Generate JavaScript code to track the metric.
|
||||||
|
|
||||||
|
## Best Practices
|
||||||
|
|
||||||
|
- **Privacy Compliance**: Ensure compliance with privacy regulations (e.g., GDPR, CCPA) when collecting user data.
|
||||||
|
- **Sampling**: Implement sampling to reduce data volume and impact on performance.
|
||||||
|
- **Error Handling**: Implement robust error handling to prevent tracking code from breaking the website.
|
||||||
|
|
||||||
|
## Integration
|
||||||
|
|
||||||
|
This skill can be used in conjunction with other monitoring and analytics tools to provide a comprehensive view of application performance.
|
||||||
7
skills/real-user-monitoring/assets/README.md
Normal file
7
skills/real-user-monitoring/assets/README.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Assets
|
||||||
|
|
||||||
|
Bundled resources for real-user-monitoring skill
|
||||||
|
|
||||||
|
- [ ] rum_dashboard_template.json: A template for creating a RUM dashboard in a popular visualization tool.
|
||||||
|
- [ ] rum_alert_configuration.json: A sample configuration for setting up alerts based on RUM data.
|
||||||
|
- [ ] example_rum_snippet.html: An example HTML file demonstrating how to integrate the RUM tracking snippet.
|
||||||
8
skills/real-user-monitoring/references/README.md
Normal file
8
skills/real-user-monitoring/references/README.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# References
|
||||||
|
|
||||||
|
Bundled resources for real-user-monitoring skill
|
||||||
|
|
||||||
|
- [ ] rum_platform_comparison.md: A detailed comparison of popular RUM platforms, including features, pricing, and ease of integration.
|
||||||
|
- [ ] core_web_vitals_guide.md: A comprehensive guide to Core Web Vitals, explaining their importance and how to optimize them.
|
||||||
|
- [ ] rum_api_documentation.md: API documentation for interacting with the chosen RUM platform programmatically.
|
||||||
|
- [ ] privacy_compliance_best_practices.md: Best practices for ensuring privacy compliance when implementing RUM.
|
||||||
7
skills/real-user-monitoring/scripts/README.md
Normal file
7
skills/real-user-monitoring/scripts/README.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Scripts
|
||||||
|
|
||||||
|
Bundled resources for real-user-monitoring skill
|
||||||
|
|
||||||
|
- [ ] setup_rum.py: Automates the RUM platform setup process, including API key configuration and initial script deployment.
|
||||||
|
- [ ] validate_rum_config.py: Checks the RUM configuration for common errors and provides recommendations for improvement.
|
||||||
|
- [ ] deploy_rum_snippet.sh: Deploys the RUM tracking snippet to the target website or application.
|
||||||
Reference in New Issue
Block a user