AgentSkillsCN

Create Scenario

创建场景

SKILL.md

Create Scenario Skill

Description

Creates a new sandbox scenario with mock data and expected diagnosis for testing agent capabilities.

Usage

/create-scenario <scenario-name> <failure-type>

Example: /create-scenario database-deadlock performance

Failure Types

  • availability: Service down, pod crashes, networking issues
  • performance: High latency, slow responses, timeouts
  • errors: High error rates, exceptions, failed requests
  • capacity: Resource exhaustion (CPU, memory, disk)

What This Skill Does

  1. Creates sandbox/scenarios/<scenario-name>.scenario.ts with template
  2. Prompts user for:
    • Service name and namespace
    • Specific symptoms (error messages, metrics)
    • Expected root cause
    • Confidence threshold
  3. Generates realistic mock data for:
    • Service health
    • Logs with appropriate errors
    • Metrics showing degradation
    • Deployment history
  4. Defines expected diagnosis criteria
  5. Updates sandbox/validation/test-runner.ts to include new scenario
  6. Provides guidance on running: npm run sandbox:test <scenario-name>