keil-mdk-build

keil-mdk-build is a skill for Claude Code from AmethystLuna/embedded-workbench. It costs 81 tokens per session (3,128 once invoked), scanned A, original, MIT.

A build and analysis guide for Keil MDK, a development suite used to compile and package embedded firmware. It covers both ARM Compiler 5 and ARM Compiler 6 projects.

In plain words
What is it for?
Building Keil projects without the graphical interface, selecting targets, saving logs, interpreting exit codes, and reviewing map files for ROM and RAM usage.
Why use it?
It helps produce repeatable command-line builds and interpret build results, logs, and memory-usage files.

Skill for Claude Code

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

Part of the embedded-workbench plugin — 8 skills, 4 agents, 1 hook shipped together

Good fit Building Keil projects without the graphical interface, selecting targets, saving logs, interpreting exit codes, and reviewing map files for ROM and RAM usage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/amethystluna/embedded-workbench/keil-mdk-build
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 AmethystLuna/embedded-workbench --skill keil-mdk-build
Clone the repo
git clone --depth 1 https://github.com/AmethystLuna/embedded-workbench

Made for: Claude Code.

Or install embedded-workbench, the plugin that ships this one along with the rest of its 8 skills, 4 agents, 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 keil-mdk-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/amethystluna/embedded-workbench/keil-mdk-build/github.svg)](https://agentmods.dev/skills/amethystluna/embedded-workbench/keil-mdk-build)
Your own site
<a href="https://agentmods.dev/skills/amethystluna/embedded-workbench/keil-mdk-build"><img src="https://agentmods.dev/badge/skills/amethystluna/embedded-workbench/keil-mdk-build/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 keil-mdk-build

Your own site · 80×15
<a href="https://agentmods.dev/skills/amethystluna/embedded-workbench/keil-mdk-build"><img src="https://agentmods.dev/badge/skills/amethystluna/embedded-workbench/keil-mdk-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,128 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 37
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
How audits are shown
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.00081 $0.03128
Opus 5.5 $0.00032 $0.01251
Sonnet 5.5 $0.00016 $0.00626
Haiku 4.5 $0.00008 $0.00313

Measured 1mo ago against content hash af75973964f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

keil-mdk-build 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 1mo ago.

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.

skills/keil-mdk-build/SKILL.md · 238 lines

How it starts

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

Keil MDK Build

Patterns for building embedded firmware with Keil MDK. Covers both ARM Compiler 5 (armcc) and ARM Compiler 6 (armclang).

UV4 CLI Build (Authoritative)

UV4.exe batch mode is the canonical build path. A CI reimplementation is possible but may miss include paths.

<Keil>\UV4\UV4.exe -b project.uvprojx -t TargetName -j0 -o <log_path>

Replace <Keil> with the Keil install root. Auto-discover by checking common locations or ask the user when unknown.

Flags:

Flag Meaning
-b Batch mode (no GUI)
-t <target> Target name within the multi-target project
-j0 Auto-parallelism (use all cores)
-o <path> Log output file

Exit codes:

Code Meaning
0 Success (no errors, no warnings)
1 Warnings but no errors
2 Errors
3 Errors (when <StopOnExitCode>3</StopOnExitCode> is set in uvprojx)

Critical: Log path resolution — The -o path is resolved relative to the .uvprojx file's directory, not the current working directory. Always use an absolute path or a path under a known-existing subdirectory (e.g., objects\) of the project directory.

Recommended invocation — UV4 produces no stdout; use Start-Process with -Wait -PassThru and check ExitCode:

$keil = "<Keil_install_root>"  # Ask user or auto-discover
$log = Join-Path (Get-Location) "build.log"
$p = Start-Process -FilePath "$keil\UV4\UV4.exe" `
    -ArgumentList "-b project.uvprojx -t Target -j0 -o $log" `
    -Wait -PassThru -NoNewWindow
if ($p.ExitCode -ne 0) { throw "Build failed (exit $($p.ExitCode))" }

Compiler Selection

Read the full file on GitHub · 238 lines

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. 1mo ago Changed af75973964f1
  2. 3mo ago First seen · 238 lines · 81 tokens per session scan A f636d04b931f

Subscribe to this mod's changes

keil-mdk-build is a skill published in the GitHub repository AmethystLuna/embedded-workbench (36 stars, last pushed 3d ago), licensed MIT. It adds 81 tokens to every session and 3,128 once invoked, about $0.0003 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-08-31.

Related

keil-mdk-build compared with skills from other repositories

keil-mdk-build next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
keil-mdk-buildAmethystLuna/embedded-workbenchSkill363d agoMITA81Claude Code
diagnose-windows-sandbox-acldeepseek-ai/deepseek-harnessSkill289k2d agoMITA67Claude Code, Codex
dingtalkdeepseek-ai/deepseek-harnessSkill289k2d agoMITA118Claude Code, Codex
feishudeepseek-ai/deepseek-harnessSkill289k2d agoMITA90Claude Code, Codex
dsh-docdeepseek-ai/deepseek-harnessSkill289k2d agoMITA116Claude Code, Codex
wecomdeepseek-ai/deepseek-harnessSkill289k2d agoMITA90Claude Code, Codex
tencent-meetingdeepseek-ai/deepseek-harnessSkill289k2d agoMITA82Claude Code, Codex