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 an OPC UA Equipment Acceptance Checklist Reconciler
Format
Code-aware
Lines
98
Sections
11
Linked challenge
Build an OPC UA Equipment Acceptance Checklist Reconciler
Prompt source
Original prompt text with formatting preserved for inspection.
98 lines
11 sections
No variables
1 code block
## Build
Process simulated open62541 server telemetry to audit factory equipment against site acceptance specifications. Flag missing telemetry nodes and compile acceptance sign-off packets.
## User
Factory Integration Specialist
## Workflow
1. Parse node ID structures and value definitions from simulated open62541 server snapshots.
2. Compare exposed node definitions against contract equipment acceptance checklists.
3. Evaluate telemetry sampling jitter and sensor error flags across commissioning tests.
4. Construct a standardized acceptance packet highlighting missing or out-of-spec node definitions.
## Interface
Browser-based commissioning checklist view with node discovery statuses and sign-off export controls.
## Data
Construct mock JSON node dumps mimicking open62541 information models with status codes and engineering units.
Starter examples below are synthetic. They are not downloaded records.
## Source
[open62541 OPC UA](https://raw.githubusercontent.com/open62541/open62541/master/README.md)
Uses open62541 architecture principles where OPC UA nodes and server information models define equipment capabilities.
## Tools
mastra-ai, typescript, zod.
Mastra AI provides deterministic workflow orchestration to walk complex hierarchical information models.
Fast reasoning API capable of reconciling tabular schema checklists against observed telemetry nodes.
## 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
- Flags missing mandatory nodes according to the site acceptance checklist.
- Detects invalid OPC UA StatusCode values during test runs.
- Generates a verified acceptance packet with sign-off recommendations.
## Starter Examples
```json
[
{
"input": {
"equipment_tag": "PUMP-SKID-04",
"mandated_nodes": [
"ns=2;s=InletPressure",
"ns=2;s=DischargeFlow",
"ns=2;s=MotorAmps"
],
"observed_nodes": [
{
"node_id": "ns=2;s=InletPressure",
"status": "Good",
"value": 4.2,
"unit": "bar"
},
{
"node_id": "ns=2;s=DischargeFlow",
"status": "Good",
"value": 110,
"unit": "m3/h"
},
{
"node_id": "ns=2;s=MotorAmps",
"status": "Good",
"value": 24.1,
"unit": "A"
}
]
},
"expected_output": {
"equipment_tag": "PUMP-SKID-04",
"checklist_conformance": true,
"missing_nodes": [],
"handover_recommendation": "SIGN_OFF"
}
},
{
"input": {
"equipment_tag": "PUMP-SKID-05",
"mandated_nodes": [
"ns=2;s=InletPressure",
"ns=2;s=DischargeFlow",
"ns=2;s=MotorAmps"
],
"observed_nodes": [
{
"node_id": "ns=2;s=InletPressure",
"status": "BadSensorFailure",
"value": 0,
"unit": "bar"
}
]
},
"expected_output": {
"equipment_tag": "PUMP-SKID-05",
"checklist_conformance": false,
"missing_nodes": [
"ns=2;s=DischargeFlow",
"ns=2;s=MotorAmps"
],
"handover_recommendation": "REMEDIAL_ACTION_REQUIRED"
}
}
]
```
## Safety
Read-only inspection of static node dumps; no live OPC UA method invocations.
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.