Synthetic Monitoring
Skill files6 files

references/

scripts/

templates/

SKILL.md97 lines
1
---
2
name: synthetic-monitoring
3
description: >
4
Implement synthetic monitoring and automated testing to simulate user behavior
5
and detect issues before users. Use when creating end-to-end test scenarios,
6
monitoring API flows, or validating user workflows.
7
---
8
9
# Synthetic Monitoring
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Set up synthetic monitoring to automatically simulate real user journeys, API workflows, and critical business transactions to detect issues and validate performance.
22
23
## When to Use
24
25
- End-to-end workflow validation
26
- API flow testing
27
- User journey simulation
28
- Transaction monitoring
29
- Critical path validation
30
31
## Quick Start
32
33
Minimal working example:
34
35
```javascript
36
// synthetic-tests.js
37
const { chromium } = require("playwright");
38
39
class SyntheticMonitor {
40
constructor(config = {}) {
41
this.baseUrl = config.baseUrl || "https://app.example.com";
42
this.timeout = config.timeout || 30000;
43
}
44
45
async testUserFlow() {
46
const browser = await chromium.launch();
47
const page = await browser.newPage();
48
const metrics = { steps: {} };
49
const startTime = Date.now();
50
51
try {
52
// Step 1: Navigate to login
53
let stepStart = Date.now();
54
await page.goto(`${this.baseUrl}/login`, { waitUntil: "networkidle" });
55
metrics.steps.navigation = Date.now() - stepStart;
56
57
// Step 2: Perform login
58
stepStart = Date.now();
59
await page.fill('input[name="email"]', "test@example.com");
60
await page.fill('input[name="password"]', "password123");
61
// ... (see reference guides for full implementation)
62
```
63
64
## Reference Guides
65
66
Detailed implementations in the `references/` directory:
67
68
| Guide | Contents |
69
|---|---|
70
| [Synthetic Tests with Playwright](references/synthetic-tests-with-playwright.md) | Synthetic Tests with Playwright |
71
| [API Synthetic Tests](references/api-synthetic-tests.md) | API Synthetic Tests |
72
| [Scheduled Synthetic Monitoring](references/scheduled-synthetic-monitoring.md) | Scheduled Synthetic Monitoring |
73
74
## Best Practices
75
76
### ✅ DO
77
78
- Test critical user journeys
79
- Simulate real browser conditions
80
- Monitor from multiple locations
81
- Track response times
82
- Alert on test failures
83
- Rotate test data
84
- Test mobile and desktop
85
- Include error scenarios
86
87
### ❌ DON'T
88
89
- Test with production data
90
- Reuse test accounts
91
- Skip timeout configurations
92
- Ignore test maintenance
93
- Test too frequently
94
- Hard-code credentials
95
- Ignore geographic variations
96
- Test only happy paths
97

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 12,896 prompts

More by @OpenSourceBuffGuy

See all
Pixel-art idle sprite sheet from a reference character prompt image

Pixel-art idle sprite sheet from a reference character

Turns an uploaded reference character into a 16-frame chibi pixel-art idle animation, delivered as a sprite sheet, GIF and frame files.

image-prompt, gpt-image, pixel-art, reference-image, game-assets, character-design, chibi, seamless-loop, transparent-background, character-consistency, multi-panel, game-development, square-format, negative-prompt, structured-output, for-artists, for-developers, limited-palette, long-form, advanced, animation, sprite-sheet

Create Architectural Decision Record prompt image

Create Architectural Decision Record

Creates an Architectural Decision Record from a decision's context, choice, alternatives and stakeholders, saved with a numbered filename and a fixed structure.

agent-skill, software-architecture, documentation, technical-spec, template, placeholders, guided-interview, markdown, structured-output, decision-making, for-developers, pros-and-cons, coding, adr

Schedule Development Expert prompt image

Schedule Development Expert

Acts as a project scheduling specialist that builds work breakdowns, dependency maps, critical path analysis, resource leveling and risk buffers into a realistic project schedule.

system-prompt, act-as, planner, project-management, scheduling, risk-management, estimation, for-project-managers, roadmap, timeline, report, task-decomposition, xml-tags, structured-output, expert-advice, advanced, agile, construction, technical-spec, guardrails

Reviews

Loading reviews…

Discussion

Loading comments…