agentleFS
MicrosoftKnown publishermicrosoft/GHCP-Lab/.github/skills/generate-alerts/SKILL.md

generate-alerts

Skill45 starsChanged 14 months agoMITView on GitHub

Generates randomized alert test data for the alert management system. Use this when asked to create sample alerts, mock data, or populate the system with test events for development and testing.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when you need to:

    line 13
  2. Distinctive:

    Create edge-case alerts for specific testing scenarios

    line 16
  3. Distinctive:

    Location variety: Use at least 5 different locations

    line 35
  4. Distinctive:

    Descriptions: Use realistic security/safety scenarios (not generic placeholder text)

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Generate Alert Test Data

This skill generates randomized alert events that match the project's AlarmEvent / Alert data model.

When to use this skill

Use this skill when you need to:

  • Generate sample alert data for testing
  • Populate the system with realistic mock events
  • Create edge-case alerts for specific testing scenarios

Alert Schema

Each generated alert must include:

  • id: Unique identifier (UUID or incrementing number)
  • name: Descriptive alert name (e.g., "Motion detected in warehouse")
  • description: Detailed description of the event
  • time / createdDate: ISO 8601 timestamp in UTC
  • severity: One of Info, Warning, Error, Critical
  • status: One of Active, Acknowledged, Resolved
  • location: Human-readable location name
  • latitude / longitude: Valid coordinates
  • source: Device type (Camera, Microphone, Sensor, MotionDetector, SmartPhone, Tablet)

Generation Rules

  1. Realistic distribution: ~40% Info, ~30% Warning, ~20% Error, ~10% Critical
  2. Time spread: Generate alerts across the last 30 days with realistic clustering
  3. Location variety: Use at least 5 different locations
  4. Source diversity: Distribute across all device types
  5. Status mix: ~50% Active, ~30% Acknowledged, ~20% Resolved
  6. Descriptions: Use realistic security/safety scenarios (not generic placeholder text)

Output Format

Generate data matching the track's language:

  • TypeScript: Array of AlarmEvent objects matching models.ts
  • C#: List of Alert objects matching Alert.cs
  • C++: Vector of Alert structs matching Alert.h

Example Usage

/generate-alerts 20
/generate-alerts 5 Critical
/generate-alerts 50 for load testing

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.