Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

non-blocking-patterns

Skill by wedsamuel1230

Non-Blocking Patterns is an agent skill for Arduino and embedded C++ code. It helps replace blocking delay() calls with timing that keeps the main loop responsive. It is for developers who need testable timing under sensor, network, or motor load.

  • Score 52
  • 36 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install non-blocking-patterns

Built from the published package, never by AI.

git clone --depth 1 https://github.com/wedsamuel1230/embedded-engineering-skills /tmp/embedded-engineering-skills && mkdir -p ~/.claude/skills && cp -r /tmp/embedded-engineering-skills/skills/non-blocking-patterns ~/.claude/skills/non-blocking-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install non-blocking-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Non-Blocking Patterns is an agent skill for Arduino and embedded C++ code that uses delay() or needs careful timing control. It guides the assistant to list periodic tasks with their periods and deadlines, then replace long delay() calls with unsigned, wrap-safe elapsed checks. It also covers input debouncing with a stable-state timer, explicit state machines, bounded serial and network waits, and watchdog feeding.

The skill asks for the board and core version, task deadlines, and the safety response for missed deadlines. Its verification rules call for tests on debounce, wraparound, timeout, and missed-deadline cases, and keep exact-target compile proof separate from timing evidence. It is aimed at developers who need a responsive main loop and testable timing under sensor, network, or motor load.

Written from the project's SKILL.md and checked against it.

What it can do

  • Intake reviewRecords board and core version, task periods, deadlines, and interrupt constraints.
  • Blocking call reviewLists periodic and event-driven tasks and identifies blocking library calls.
  • Wrap-safe timingReplaces long delay() calls with unsigned elapsed-time checks.
  • State machine designModels multi-step work as explicit states with bounded, timed transitions.
  • Input debouncingDebounces inputs with a stable-state timer or event filter instead of a pause.
  • Watchdog and fail-safeDefines watchdog feeding, output inhibit, timeout, and recovery behavior.
  • Latency measurementMeasures loop latency and task jitter under representative load.

What you need

  • Exact target board and core for compile proof
  • Arduino or embedded C++ code
  • Python, only for optional test or log analysis tooling

Try asking

  • Replace the delay() calls in my Arduino sketch with non-blocking timing
  • Add button debouncing to this input without blocking the main loop
  • Turn this multi-step sensor routine into a bounded state machine

Good to know

  • Hardware timers or RTOS tasks are used only when board and framework support is confirmed.
  • Exact-target compile proof and timing or serial evidence are separate and both needed.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/non-blocking-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to non-blocking-patterns

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

non-blocking-patterns: common questions

Does this work with Arduino code that uses delay()?

Yes. The skill is written for Arduino or embedded C++ code that uses delay(), and it replaces long delays with elapsed-time checks.

Does it require Python?

No. The source says Python should be used only for relevant test or log analysis tooling.

Does it cover watchdog timers?

Yes. It defines watchdog feeding, output inhibit, timeout, and recovery behavior, and says not to mask a stuck task.

How do I install non-blocking-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is non-blocking-patterns free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is non-blocking-patterns safe to use?

It scores 52 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to non-blocking-patterns?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

non-blocking-patterns Install

Add to stack

Loading.