keil

Automate scanning, building, cleaning, and flashing Keil MDK projects with UV4.exe.

551|66|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/zhinkgit/embeddedskills --skill keil
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: keil
Source: https://github.com/zhinkgit/embeddedskills/tree/main/keil
Command: npx skills add https://github.com/zhinkgit/embeddedskills --skill keil

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Manual handling of Keil MDK projects—scanning for .uvprojx/.uvmpw files, enumerating targets, compiling, cleaning, and flashing—requires repetitive user actions and error‑prone log inspection. This skill automates the entire flow and returns structured artifact paths for downstream tools.

Core Features & Use Cases

  • Project Scan & Target Enumeration: Detect Keil projects in a directory and list available targets.
  • Build Operations: Incremental build, full rebuild, and clean with configurable logging.
  • Flash Compatibility: Provides a flash command (compatible entry) and prepares artifact paths for jlink/openocd.
  • Log Parsing & Metrics: Extract errors, warnings, flash and RAM size from UV4 logs.
  • State Management: Persists last build info to avoid unsafe flashing.

Quick Start

Ask the keil skill to build the project at './MyProject' for target 'Debug' and then flash it.

Frequently Asked Questions about keil

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate building and flashing Keil MDK projects?

You can automate Keil MDK project building and flashing by using this skill to scan for .uvprojx/.uvmpw files, enumerate targets, execute incremental builds or rebuilds, and prepare artifact paths for downstream flashing tools.

Can I extract flash and RAM size metrics from UV4 build logs?

Yes, you can extract flash and RAM size metrics from UV4 build logs. The skill parses logs to extract errors, warnings, and memory usage metrics automatically after completing a build operation.

Do I need Python 3 and UV4.exe to compile Keil projects automatically?

Yes, you need Python 3 standard library and UV4.exe access to compile Keil projects automatically. The skill relies on these dependencies to handle .uvprojx/.uvmpw files and execute build commands.

What is the best way to manage Keil target selection and state for safe flashing?

The best way to manage Keil target selection is through automated state persistence. The skill saves last build info to prevent unsafe flashing and enumerates available targets during the project scan.

Does this Keil automation skill work with jlink and openocd flashing tools?

Yes, this Keil automation skill works with jlink and openocd. It provides a flash command and prepares structured artifact paths that integrate directly with these external flashing tools.