cortex-m-knowledge-patch

cortex-m-knowledge-patch is a skill for Claude Code from Nevaberry/nevaberry-plugins. It costs 11 tokens per session (1,477 once invoked), scanned A, original, MIT.

A compatibility guide for Cortex-M Rust programs, which run on a common family of microcontrollers. It covers interrupts, critical sections, startup code, semihosting output, and linker placement.

In plain words
What is it for?
Use it when upgrading Cortex-M crates or working with interrupt handlers, runtime startup, debug output, critical sections, or linker settings.
Why use it?
It helps you handle migration changes in low-level firmware code and avoid incorrect startup, interrupt, or memory-layout configuration.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the knowledge-patch plugin — 197 skills, 1 hook shipped together

Good fit Use it when upgrading Cortex-M crates or working with interrupt handlers, runtime startup, debug output, critical sections, or linker settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nevaberry/nevaberry-plugins/cortex-m-knowledge-patch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Nevaberry/nevaberry-plugins --skill cortex-m-knowledge-patch
Clone the repo
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins

Made for: Claude Code.

Or install knowledge-patch, the plugin that ships this one along with the rest of its 197 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cortex-m-knowledge-patch

README.md
[![agentmods](https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/cortex-m-knowledge-patch/github.svg)](https://agentmods.dev/skills/nevaberry/nevaberry-plugins/cortex-m-knowledge-patch)
Your own site
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/cortex-m-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/cortex-m-knowledge-patch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cortex-m-knowledge-patch

Your own site · 80×15
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/cortex-m-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/cortex-m-knowledge-patch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,477 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.01477
Opus 5.5 $0.00004 $0.00591
Sonnet 5.5 $0.00002 $0.00295
Haiku 4.5 $0.00001 $0.00148

Measured today against content hash 9e5de23c8c5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cortex-m-knowledge-patch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/knowledge-patch/patches-claude/cortex-m-knowledge-patch/SKILL.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cortex-M compatibility guidance

Use this skill when upgrading Cortex-M crates or working with critical sections, semihosting I/O, core operations, interrupt handlers, runtime startup, or linker placement.

Reference index

Reference Topics
Migration and critical sections Rust requirements, assembly feature changes, startup-hook deprecation, critical-section implementations
Semihosting I/O Printing results, stream types, disabling calls, debug output
Core operations and interrupts Unprivileged execution, interrupt target states, delays, active exception reads
Runtime startup and linking Stack limits, memory initialization, stack painting, handlers, interrupt limits, linker alignment

Breaking changes and deprecations

Rust toolchain requirements

cortex-m and cortex-m-rt use the Rust 2024 edition and require Rust 1.85 or newer. cortex-m-semihosting requires Rust 1.85.

See Migration and critical sections for the crate-specific version attributions.

Remove the assembly feature

Remove inline-asm from Cargo feature lists for both cortex-m and cortex-m-semihosting.

  • In cortex-m 0.7.8, it has no effect and is slated for removal in a future major release.
  • Since cortex-m-semihosting 0.5.0, the crate always uses inline assembly.

Deprecated startup hook

#[pre_init] is deprecated in cortex-m-rt 0.7.6. Existing uses produce deprecation warnings.

Printing no longer returns an I/O result

From cortex-m-semihosting 0.4.0 onward, printing macros discard I/O errors and return (). When upgrading from 0.3.7, where they return Result, remove ? and .unwrap() from their calls.

cortex_m_semihosting::hprintln!("value: {}", 42);

Shared host stream type

cortex-m-semihosting 0.4.0 merged HStdout and HStderr into cortex_m_semihosting::hio::HostStream. Use HostStream in type annotations and function signatures for either host stream.

Read the full file on GitHub · 180 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 180 lines · 11 tokens per session scan A 9e5de23c8c5c

Subscribe to this mod's changes

cortex-m-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (25 stars, last pushed yesterday), licensed MIT. It adds 11 tokens to every session and 1,477 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

cortex-m-knowledge-patch compared with skills from other repositories

cortex-m-knowledge-patch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cortex-m-knowledge-patchNevaberry/nevaberry-pluginsSkill25yesterdayMITA11Claude Code
wasmTheBeardedBearSAS/claude-craftSkill10815d agoMITA43Claude Code
rust-network-modulefakoli/fakoli-pluginsSkill43d agoMITA43Claude Code, Codex
omh-rustrlaope/oh-my-hermesSkill6.2ktodayMITA19Claude Code
cloudflare-workers-multi-langsecondsky/claude-skillsSkill2572d agoMITA45Claude Code
rust-no-stdmohitmishra786/low-level-dev-skillsSkill30812d agoMITA88Claude Code
rust-systemsWrongStack/WrongStackSkill447todayMITA93Claude Code