---
name: domain-iot-digital-twin-3e8ce117fcf0
description: Digital twin design patterns including state-based and simulation-based modeling, real-time state synchronization, predictive maintenance via simulation, what-if scenario analysis, 3D visualization, and platform guidance for Azure Digital Twins and AWS IoT TwinMaker.
allowed-tools: Read, Grep, Glob, Bash
---

# Digital Twin Patterns

## When to use
- Designing a digital twin architecture from scratch (shadow vs twin vs simulation)
- Modeling twin ontologies with DTDL, RealEstateCore, or custom schemas
- Implementing device-to-twin and twin-to-device synchronization pipelines
- Building predictive maintenance with RUL models and anomaly detection
- Running what-if scenario analysis in a sandboxed twin environment
- Selecting Azure Digital Twins, AWS IoT TwinMaker, or open-source alternatives

## Core principles
1. **Maturity determines complexity** — start with a digital shadow (read-only), graduate to bidirectional twin only when control use cases are proven
2. **Graph topology mirrors physical topology** — site → building → floor → room → device; queries follow the physical hierarchy
3. **Eventual consistency is fine for monitoring; not for control** — sub-second twin updates matter only in closed-loop control scenarios
4. **Staleness thresholds are a first-class feature** — a twin that hasn't updated in 5x its expected interval is broken, not just quiet
5. **Sandbox before touching the physical asset** — all what-if scenarios run on a cloned twin state, never against the live twin

## Reference Files
- `references/twin-modeling.md` — maturity levels, state-based vs simulation-based twins, DTDL ontology design, example twin state document
- `references/sync-and-scenarios.md` — device-to-twin and twin-to-device sync flows, consistency model, staleness handling, what-if sandbox implementation
- `references/predictive-maintenance.md` — RUL prediction approach, baseline modeling, degradation tracking, ML model selection (Isolation Forest, LSTM, Weibull)
- `references/visualization-and-platforms.md` — 3D visualization options (Three.js, BIM, Unreal), Azure Digital Twins, AWS IoT TwinMaker, Eclipse Ditto, FIWARE


---
Source attribution: rnavarych
Original project: https://github.com/rnavarych/alpha-engineer/blob/c5b74102c7fd584af3d344ba7c331a7bbec3c729/plugins/domains/domain-iot/skills/digital-twin/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License

Copyright (c) 2026 Raman Navarych

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: rnavarych
Original project: https://github.com/rnavarych/alpha-engineer/blob/c5b74102c7fd584af3d344ba7c331a7bbec3c729/plugins/domains/domain-iot/skills/digital-twin/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering, Operations, Product Management
Roles: Data Engineer, Growth Product Manager, ML / AI Engineer, Operations Manager, Product Manager
Specialties: API, Backend
Tools: AWS, Azure, Bim, Unreal, Three.Js
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 306b36ca24c76f03bfda55de0aa65406b6cf79e13d680a5e68b237cb9b1d3592
