← Zurück zu Entwickler interner Systeme

Skill · Version 1.0.0

Workflow-Simulationsdaten

Erkundet Ablaufzweige mit kontrollierten Testdaten und trennt simulierte Ergebnisse von echter Ausführung.

workflow-simulation-test-fixtures

Teammitglieder mit diesem Skill

Entdecke, wie der Skill hilft

Wann ist der Skill hilfreich?

Nutze dies für Tests von Prozessen mit Nachrichten oder kostenpflichtigen Aktionen.

Wobei hilft er dir?

  • Ersetzt externe Effekte durch ausdrückliche Simulationsbehandlung.
  • Fixiert ausgewählte Schrittergebnisse für seltene Zweige.
  • Kennzeichnet Simulationen und prüft ihre Grenzen ehrlich.

Das könntest du fragen

Simuliere Freigabe, Ablehnung und Anbietertimeout ohne Rechnungsversand oder Kontobelastung. Erzeuge nach simulierter Anbieterannahme einen Timeout und bewege die virtuelle Uhr. Markiere alle Effekte als simuliert und belege fehlende echte Zahlungs- oder Rechnungsaufrufe.

Ausführliche Dokumentation

Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.

Details…Weniger anzeigen

Workflow Simulation & Test Fixtures

Use this skill when implementing workflow dry-run / test-run modes, step output mocking, interactive "Test this workflow" previews in the builder, and automated workflow test suites.

Strict Separation Between Simulation and Live Execution

  1. Never Trigger Unintended Live External Side Effects During Simulation:
    • In simulation / dry_run mode, external mutating steps (charging cards, sending customer emails/SMS, mutating production ERP/CRM records, firing live webhooks) must be intercepted by sandbox adapters or explicit step mocks unless the user has explicitly authorized a live test against a designated test credential.
  2. Never Present a Simulated Run as a Real Production Run:
    • Tag simulated runs unmistakably in the database and UI (mode: 'simulation', distinct "Simulated test run" banner/badge, excluded from production business metrics and billing ledgers).

Step Pinning, Mock Fixtures & Branch Exploration

  • Sample Input Payloads & Pinned Step Outputs:
    • Allow users and automated tests to supply fixture trigger payloads and optionally pin/mock the output of specific steps (e.g., mocking an external HTTP step or AI step response) to test downstream conditions, joins, and error paths quickly and deterministically.
  • Virtual Clock & Instant Wait Forwarding in Tests:
    • In simulation and automated tests, advance durable timers (Wait 3 days, Approval expires in 24h) via a controlled virtual clock or instant step-forward action rather than waiting on wall-clock time.
  • Fault-Injection Fixtures:
    • Provide built-in simulation scenarios for step outcomes: success, transient_error_then_succeed (testing retry backoff), permanent_error (testing failure/compensation branches), timeout, and approval_rejected / approval_expired.

Checklist

  • Does simulation / dry_run mode block live external side effects (payments, external emails, live webhook mutations) by default?
  • Are simulated runs clearly badged as simulation in the UI and excluded from production analytics and ledgers?
  • Can individual step outputs and failure modes (timeout, error, rejected) be mocked to test every branch?
  • Can durable timers and approval expirations be fast-forwarded deterministically in simulation and test suites?

Enthaltene Dateien 1

  • SKILL.md