Skip to main content
Back to Prompt Library
implementation

Build the application

Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.

Linked challenge: Build a Solar Tracker High-Wind and Dust-Stow Event Dispatcher

Format
Code-aware
Lines
66
Sections
11
Linked challenge
Build a Solar Tracker High-Wind and Dust-Stow Event Dispatcher

Prompt source

Original prompt text with formatting preserved for inspection.

66 lines
11 sections
No variables
1 code block
## Build
Correlate desert wind gust forecasts and dust sensor thresholds to schedule automated solar tracking stow modes. Minimize structural wind damage and soiling while maximizing morning generation recovery.

## User
Solar photovoltaic field operations managers and balance-of-system SCADA engineers

## Workflow
1. Ingest field anemometer data, dust storm alerts, and PV tracker current tilt angles.
2. Model aerodynamic uplift loads and potential soiling rates across array tables using PVLib routines.
3. Synthesize emergency tracker stow orientations balancing mechanical wind safety against dust accumulation.
4. Compile a SCADA tracker dispatch sequence and field crew alert notice for operations review.

## Interface
Field wind hazard radar with tracker block tilt indicators and manual stow override buttons.

## Data
Use PVLib tracking and irradiance example modules fed with normalized synthetic anemometer gust data.
Starter examples below are synthetic. They are not downloaded records.

## Source
[PVLib solar modeling](https://raw.githubusercontent.com/pvlib/pvlib-python/main/README.md)
Applies PVLib solar tracking position algorithms and irradiance angles to evaluate generation loss during stow.

## Tools
mastra-ai, pydantic-ai, pvlib, pandas.
mastra-ai coordinates multi-step operational workflows and integrates event-driven telemetry triggers cleanly.
Local or hosted LLM for structuring weather alert narratives and engineering sign-off sheets.

## Deliverables
Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.

## Acceptance
- Triggers automatic stow commands when wind gusts exceed structural safety thresholds.
- Selects optimal stow tilt angle to minimize particulate deposition during severe dust storms.
- Calculates expected generation loss in megawatt-hours during the non-optimal stow tracking period.
- Requires solar operations director verification before confirming automated tracker position changes.

## Starter Examples
```json
[
  {
    "input": {
      "block_id": "BLK-01",
      "wind_gust_mps": 14.5,
      "dust_pm10_ug_m3": 120,
      "current_tracker_tilt_deg": 35,
      "wind_direction_deg": 180
    },
    "expected_output": {
      "stow_required": false,
      "recommended_tilt_deg": 35,
      "mode": "STANDARD_TRACKING",
      "projected_loss_mwh": 0
    }
  },
  {
    "input": {
      "block_id": "BLK-02",
      "wind_gust_mps": 26.2,
      "dust_pm10_ug_m3": 850,
      "current_tracker_tilt_deg": 48,
      "wind_direction_deg": 270
    },
    "expected_output": {
      "stow_required": true,
      "recommended_tilt_deg": 0,
      "mode": "HIGH_WIND_DEFENSE_STOW",
      "projected_loss_mwh": 14.2
    }
  }
]
```

## Safety
All tracker repositioning instructions are generated in simulation; field physical overrides take precedence.
Use mock external writes. Require human review before any real deployment.

Adaptation plan

Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.

Keep stable

Hold the task contract and output shape stable so generated implementations remain comparable.

Tune next

Update libraries, interfaces, and environment assumptions to match the stack you actually run.

Verify after

Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.