embedded-systems
Skill157 starsChanged 3 months agoMITView on GitHub
Resource-constrained development, real-time patterns, interrupt handling, memory management, RTOS patterns, and hardware abstraction layers.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- Leo-Atienza/atlas-claudetheir own version, first seen Jul 24, 2026
- jshsakura/awesome-opencode-skillstheir own version, first seen Jul 8, 2026
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
- usmanmubarak1/ClaudeSkilledAgentstheir own version, first seen Feb 6, 2026
- belokonm/claude-supercode-skillstheir own version, first seen Jan 12, 2026
- Jeffallan/claude-skillstheir own version, first seen Dec 26, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- Jeffallan/claude-skills★ 12ksame name
- jshsakura/awesome-opencode-skills★ 29same name
- belokonm/claude-supercode-skills★ 11same name
- Leo-Atienza/atlas-claude★ 4same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- usmanmubarak1/ClaudeSkilledAgents★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- github-pages/agents.mdAGENTS.md
- adrSkill
- agent-protocolsSkill
- angular-idiomsSkill
- api-documentationSkill
- axum-idiomsSkill
- browser-automationSkill
- chaos-testingSkill
- ci-cdSkill
- cli-developmentSkill
- code-auditSkill
- code-reviewSkill
- cpp-idiomsSkill
- csharp-idiomsSkill
- data-engineeringSkill
- debugging-protocolSkill
- django-idiomsSkill
- dotnet-idiomsSkill
- elixir-idiomsSkill
- feature-flagsSkill
- flutter-idiomsSkill
- frontend-designSkill
- git-commit-integritySkill
- go-idiomsSkill
- guardrailsSkill
- hono-idiomsSkill
- incident-responseSkill
- java-idiomsSkill
- javascript-idiomsSkill
- kotlin-idiomsSkill
- laravel-idiomsSkill
- logging-implementationSkill
- ml-engineeringSkill
- mobile-designSkill
- mobile-testingSkill
- nextjs-idiomsSkill
- parallel-dispatchSkill
- payment-integrationSkill
- perf-optimizationSkill
- php-idiomsSkill
- postgres-idiomsSkill
- python-idiomsSkill
- rails-idiomsSkill
- react-idiomsSkill
- refactoring-patternsSkill
- research-methodologySkill
- ruby-idiomsSkill
- rust-idiomsSkill
- security-auditSkill
- sequential-thinkingSkill
- spring-boot-idiomsSkill
- sql-idiomsSkill
- structured-specSkill
- supply-chain-securitySkill
- swift-idiomsSkill
- testability-patternsSkill
- testing-strategySkill
- typescript-idiomsSkill
- vue-idiomsSkill
The file
Files
Embedded Systems Principles
Guidelines for resource-constrained and real-time system development.
When to Invoke
- Developing for microcontrollers or constrained devices
- Real-time requirements (hard or soft)
- Hardware abstraction layer design
- Memory-constrained environments
Resource Constraints
Memory
- Static allocation preferred — avoid
malloc/freein real-time paths. - Stack size budgets — calculate max stack depth per task.
- Memory pools for fixed-size allocations.
- No heap fragmentation — use fixed-block allocators.
Power
- Sleep modes — enter lowest power state when idle.
- Peripheral clock gating — disable unused peripherals.
- Batch operations — reduce wake cycles.
Real-Time Patterns
Priority-Based Scheduling
- Priority inversion protection — use priority inheritance mutexes.
- Deadline monotonic — shortest deadline = highest priority.
- Avoid priority ties — every task has unique priority.
Interrupt Handling
- ISRs must be short — set flags, defer processing to task context.
- No blocking calls in ISRs — no
malloc, no mutex locks. - Volatile for shared variables between ISR and task.
Hardware Abstraction Layer (HAL)
Application Layer
├── Middleware (protocols, file systems)
├── HAL (hardware-agnostic interfaces)
└── Board Support Package (BSP — hardware-specific)- Interface per peripheral type — GPIO, UART, SPI, I2C, Timer.
- BSP implements HAL — swap BSP to port to new hardware.
- No hardware registers in application code.
RTOS Patterns
- Tasks for concurrent activities — each with dedicated stack.
- Queues for inter-task communication — type-safe message passing.
- Semaphores for synchronization — binary for signaling, counting for resources.
- Mutexes for shared data — always with timeout to prevent deadlock.
Testing
For universal testing principles, see
.agents/rules/testing-strategy.md. Below: language-specific patterns only.
- Unit test on host — test logic without hardware.
- Hardware-in-the-loop (HIL) — automated tests with real hardware.
- Mock HAL interfaces — inject test implementations.
- Static analysis required — MISRA C/C++ compliance if safety-critical.
Safety-Critical Considerations
- MISRA C/C++ compliance for automotive, medical, aerospace
- Watchdog timers for fault recovery
- CRC/checksums for data integrity
- Redundancy for critical paths
Related
- C++ Idioms @.agents/skills/cpp-idioms/SKILL.md
- Resources and Memory Management @.agents/rules/resources-and-memory-management-principles.md
- Concurrency and Threading Principles @.agents/rules/concurrency-and-threading-principles.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

