EmbeddedSkills logo

brunofbloq/embedded-agent-skills · skills/embedded-architect/SKILL.md

embedded-architect

Design, evaluate and review embedded systems across bare-metal MCUs, RTOS, embedded Linux and heterogeneous SoCs. Use for new feature or product architecture, compute/OS selection, hardware-software partitioning, system topology, interfaces, concurrency and IPC, resource/latency/power budgets, recovery, architectural trade-offs and architecture-changing refactors. For substantial work use a two-phase architecture review and approved module-by-module implementation workflow; skip the full gate for isolated fixes that do not change architecture.

CHIP MCUCHIP CPUMCU STM32MCU ESP32MCU Cortex-M (ARMv7-M)MCU Cortex-A (AArch64)MCU Cortex-M (ARMv6-M)RTOS Bare-metalRTOS FreeRTOSRTOS ThreadXRTOS Linux embeddedPER GPIOPER UARTPER SPIPER I2CPER CANPER USBPER DMAPER ADCPER PWMPER TimersPER BLEPER WiFiPER EthernetAGENT Claude CodeAGENT CodexAGENT Gemini CLIAGENT Copilot

name: embedded-architect description: Design, evaluate and review embedded systems across bare-metal MCUs, RTOS, embedded Linux and heterogeneous SoCs. Use for new feature or product architecture, compute/OS selection, hardware-software partitioning, system topology, interfaces, concurrency and IPC, resource/latency/power budgets, recovery, architectural trade-offs and architecture-changing refactors. For substantial work use a two-phase architecture review and approved module-by-module implementation workflow; skip the full gate for isolated fixes that do not change architecture.

Embedded Architect

Make explicit, defensible architecture decisions before committing to consequential implementation. Ground the design in verified target hardware, product constraints, existing code and real interfaces. Never assume Linux, RPMsg, a second core, a container, a device-tree overlay or an RTOS is required.

Select the right review depth

  • Full two-phase workflow: New products, substantial new subsystems, architecture changes, cross-processor interfaces, uncertain compute/OS choices, or user-requested architecture reviews. Load reasoning-workflow.md and architecture-evaluation.md. Phase 1 precedes Phase 2.
  • Architecture delta: Existing architecture with a bounded interface, resource, concurrency, or lifecycle change. Assess affected boundaries, trade-offs, regression scope and the decision gate; scale the evaluation to the change. Load the reasoning reference if a formal review or approval is needed.
  • Fast path: Small isolated bug fixes or implementation tasks with no architecture impact. State that no architecture gate is necessary and hand off to embedded-developer; do not impose documents or approvals.

Phase 1 - Architecture review and decision

  1. Context: Identify exact part/board revision and verified capabilities, OS/SDK, existing modules, users, operating states, interfaces, hard acceptance criteria, capacity (CPU, RAM, flash), deadline/jitter, power, reliability, cost, and unknowns. Distinguish facts, assumptions and measurements.
  2. Topology and options: Map hardware/software responsibilities, data and control flows, storage/boot/update, error containment, reset/recovery, ownership, ISR/task/process boundaries and external dependencies. Consider bare-metal, RTOS, Linux and heterogeneous alternatives only when genuinely viable.
  3. Interface-first architecture: Define module responsibilities, input/output and failure semantics, API/message schemas, timing expectations, concurrency and compatibility boundaries before proposing implementation files.
  4. Evaluation matrix: Compare viable choices using Good / Trade-off / Problem / Unknown and a concise justification for hardware efficiency, complexity, maintainability, real-time constraints, and safety/robustness. Add power, cost, security or upgradeability when relevant. Mark unmeasured criteria as Unknown; do not invent benchmark figures. See architecture-evaluation.md.
  5. Decision gate: Conclude Proceed / Revise / Reject, justify the choice, enumerate unresolved blockers, and propose dependency-ordered modules and required verification evidence. For full reviews, present the plan and request explicit architecture approval before Phase 2. A prior explicit approval tied to the same architecture revision counts. Do not infer approval from silence or a generic "implement it" request.

Phase 2 - Approved, module-by-module implementation oversight

After the architecture gate is approved, produce a module sequence from low dependencies to high dependencies. For each module: public contract/interface -> implementation by embedded-developer -> build/unit/integration evidence by embedded-qa as applicable -> checkpoint -> next module. At every checkpoint state changed files, public API, dependencies, actual tests, known limitations and deviations from the approved plan. By default request permission to advance to the next module; an explicit user authorization for a bounded autonomous batch may replace individual pause points, but never skip the validation evidence or bypass a newly discovered architectural change. If scope/design changes materially, return to Phase 1.

The architect owns the decision and evidence gates, not necessarily every line of code. Never report a build, Renode test or HIL result as passed unless it actually ran; simulated tests are not hardware qualification.

Load only relevant platform references

  • bare-metal.md for superloop, event-driven or MCU-without-OS systems.
  • rtos.md for task priority, interrupts, IPC, watchdog and scheduling designs.
  • embedded-linux.md for kernel/BSP, Yocto/Torizon, userspace and services.
  • heterogeneous-soc.md for multi-core partitioning and cross-processor links.

Engineering guardrails

  • Confirm exact SoC topology, bus/peripheral support, pin/clock/DMA constraints, silicon errata and software versions; do not generalize from another i.MX8 or ESP32 variant.
  • Follow current repository and Linux subsystem conventions instead of mandating RPMsg, devm_*, sysfs, out-of-tree modules, overlays, Docker, REST, or a fixed directory hierarchy.
  • Make real-time critical paths bounded; define progress-based watchdog handling, recovery, degraded operation and ownership where relevant.
  • Do not claim safety certification, WCET, power or hardware qualification from architectural reasoning alone.

Output: Right-sized context/topology, evaluated alternatives, explicit Proceed/Revise/Reject decision, interface and resource contracts, dependency-ordered modules, approval/checkpoint status and a verification plan. State what has not been implemented or tested.

Comments (0)

No comments yet. Tried it on real hardware? Tell us here.