Agent skill

Keil

by Tansuo2021 in Tansuo2021/ADtoKeil

Keil MDK/uVision build skill for embedded projects. An agent skill from Tansuo2021/ADtoKeil.

GPL-3.0Auto-check passed

Install Keil

skills CLI
$ npx skills add Tansuo2021/ADtoKeil --skill keil -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Tansuo2021/ADtoKeil keil --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Tansuo2021/ADtoKeil.git skills-src && mkdir -p .claude/skills && cp -r skills-src/keil .claude/skills/keil && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
keil
GitHub stars
188
Token cost
~1.2k tokens
SKILL.md length
455 words
Files
7 (incl. scripts, references)
Skills in repo
6
Repo updated
First seen
Licence
GPL-3.0

At a glance

Keil MDK/uVision build skill for embedded projects. An agent skill from Tansuo2021/ADtoKeil.

  • The user mentions Keil
  • SKILL.md covers Capabilities, Configuration, Commands and Rules, plus 2 more sections
  • Runs Python scripts from its folder; calls python
  • Target enumeration

What it does

Keil is an agent skill from Tansuo2021/ADtoKeil. Keil MDK/uVision build skill for embedded projects. Use when the user mentions Keil, MDK, uVision, UV4, C51, 8051, target enumeration, compile, build, rebuild, clean, firmware artifact paths, HEX output, or flash/download through a Keil project. Provides scripts to scan .uvproj/.uvprojx/.uvmpw projects, list Targets, run build/rebuild/clean/flash, parse logs, and return reusable artifact paths.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `README.md`, `config.example.json` and `references/compiler-notes.md`).

The licence is GPL-3.0.

When your agent uses it

  • The user mentions Keil
  • Target enumeration
  • Firmware artifact paths
  • Flash/download through a Keil project

Example prompts

  • “/keil”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 56ab07d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Keil loads about 1.2k tokens when it runs, and up to ~1.5k if it reads all its reference files. Until then it costs about 101 tokens; SKILL.md has 455 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~101
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Tansuo2021/ADtoKeil at commit 56ab07d, republished under its GPL-3.0 licence (© Tansuo2021). 455 words, ~1,170 tokens.

Download SKILL.mdSave it as .claude/skills/keil/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
keil
description
Keil MDK/uVision build skill for embedded projects. Use when the user mentions Keil, MDK, uVision, UV4, C51, 8051, target enumeration, compile, build, rebuild, clean, firmware artifact paths, HEX output, or flash/download through a Keil project. Provides scripts to scan .uvproj/.uvprojx/.uvmpw projects, list Targets, run build/rebuild/clean/flash, parse logs, and return reusable artifact paths.

Keil MDK / C51 Build

Use this skill for Keil/uVision projects, including 8051/C51 projects and MDK projects. Prefer the bundled scripts instead of manually invoking UV4.exe.

Capabilities

  • Scan a workspace for .uvproj, .uvprojx, and .uvmpw projects.
  • Enumerate project Targets.
  • Create or update a real project file when the user asks to develop firmware and no suitable project exists; prefer a vendor demo project as a template for C51 devices.
  • Run build, rebuild, clean, or compatible flash.
  • Parse the build log and return errors, warnings, HEX/AXF output paths, and metrics.
  • Persist the last successful build in .embeddedskills/state.json for workflow reuse.

Configuration

Environment-level config is stored in this skill's config.json:

json
{
  "uv4_exe": "C:\\Keil_v5\\UV4\\UV4.exe",
  "operation_mode": 1
}

Workspace-level config lives in .embeddedskills/config.json:

json
{
  "keil": {
    "uv4_exe": "D:/Keil_v5/UV4/UV4.exe",
    "project": "path/to/project.uvproj",
    "target": "Target 1",
    "log_dir": ".embeddedskills/build"
  }
}

Parameter priority: CLI arguments > workspace config > skill config > .embeddedskills/state.json > scan result.

Commands

Scan projects:

powershell
python <skill_dir>\scripts\keil_project.py scan --root <workspace> --json

List Targets:

powershell
python <skill_dir>\scripts\keil_project.py targets --project <project> --json

Build:

powershell
python <skill_dir>\scripts\keil_build.py build `
  --project <project> `
  --target <target> `
  --workspace <workspace> `
  --json

Rebuild:

powershell
python <skill_dir>\scripts\keil_build.py rebuild `
  --project <project> `
  --target <target> `
  --workspace <workspace> `
  --json

Clean:

powershell
python <skill_dir>\scripts\keil_build.py clean `
  --project <project> `
  --target <target> `
  --workspace <workspace> `
  --json

Rules

  • If multiple plausible projects or Targets exist, list candidates instead of guessing.
  • Do not edit .uvproj, .uvprojx, .uvopt, or .uvoptx unless the user explicitly asks. If the user asks for firmware development/buildable embedded software and no project exists, treat creating a .uvproj/.uvprojx as part of the deliverable.
  • Do not run clean implicitly before build unless the user asks for rebuild or --clean-first.
  • After a successful build, report the project, target, log file, errors/warnings, and HEX/AXF paths.
  • Treat flash as a compatibility entry. Prefer a dedicated J-Link/OpenOCD/probe workflow when available.
  • For C51 projects, inspect the build log and map file when debugging interrupt vectors, missing source files, memory model, or startup issues.
  • For vendor C51 libraries such as SinOne TKDriver, ensure the active project tree visibly includes the driver folder, headers/config files, .C files, and all required .LIB files. If a manual says to copy/export TKDriver into the target project, do not leave project paths pointing only to ..\TKDriver.
Show full SKILL.md (165 more words)Show less

C51 Review

For 8051/C51 correctness problems, use the embedded firmware skill reference keil-c51-project-review.md if available. Check:

  • Correct Target and HEX are being built/flashed.
  • Startup file and interrupt vectors match the MCU.
  • Vendor .C or library files are included in the Keil project.
  • Vendor folder location matches the product project structure, especially for exported touch libraries.
  • Code Option / clock settings match firmware constants.
  • Memory model, reentrancy, and interrupt function declarations are compatible with C51.

C51 Project Creation Checklist

When creating a C51 .uvproj:

  • Reuse a matching vendor demo .uvproj and STARTUP.A51 when available.
  • Set the target name, output directory/name, HEX generation, include paths, and device clock.
  • Use LX51 and Large memory model when vendor libraries require it.
  • Put vendor driver folders such as TKDriver inside the target project directory when the manual says to migrate the folder there.
  • Add visible groups for Startup, App, BSP, Drivers, and vendor libraries.
  • Build/rebuild with keil_build.py and inspect the log/map to confirm the files used are the intended in-project files.

© Tansuo2021, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references) in keil of Tansuo2021/ADtoKeil.

  • SKILL.md
  • README.md
  • config.example.json
  • references/compiler-notes.md
  • scripts/keil_build.py
  • scripts/keil_project.py
  • scripts/keil_runtime.py

Open the folder on GitHubat commit 56ab07d

Compare with similar skills

Keil next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Keil compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Keil this skillTansuo2021/ADtoKeil188—~1.2kAutomated safety check: PassGPL-3.0
Embeddingsruvnet/ruflo74k3 repos~455Automated safety check: PassMIT
Embedding Strategieswshobson/agents40k11 repos~710Automated safety check: PassMIT
Embeddings via 9Routerdecolua/9router30k—~604Automated safety check: PassMIT
Embeddingsalsk1992/CloddsBot2.9k1 repos~1.3kAutomated safety check: PassMIT
Embedded Iot Mentoralirezarezvani/claude-skills28k—~2.6kAutomated safety check: PassMIT

Similar skills

  • Embeddings

    ruvnet/ruflo

    Vector embeddings with HNSW indexing, sql.js persistence, and hyperbolic support.

    74k GitHub starsUsed in 3 repos~455 tokens
    AI & LLM EngineeringAuto-check passed
  • Embedding Strategies

    wshobson/agents

    Helps choose and tune embedding models for semantic search and RAG: model comparison, chunking, preprocessing, normalization and caching.

    40k GitHub starsUsed in 11 repos~710 tokens
    AI & LLM EngineeringAuto-check passed
  • Embeddings via 9Router

    decolua/9router

    Generates vector embeddings through the 9Router /v1/embeddings endpoint, using models from providers such as OpenAI, Gemini, Mistral and Voyage for RAG and semantic search.

    30k GitHub stars~604 tokensUpdated 7 days ago
    AI & LLM EngineeringAuto-check passed
  • Embeddings

    alsk1992/CloddsBot

    Vector embeddings configuration and semantic search. An agent skill from alsk1992/CloddsBot.

    2.9k GitHub starsUsed in 1 repo~1.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Embedded Iot Mentor

    alirezarezvani/claude-skills

    Mentor for embedded and IoT hardware projects. An agent skill from alirezarezvani/claude-skills.

    28k GitHub stars~2.6k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Photopea Embedded Editor

    sickn33/agentic-awesome-skills

    Embed Photopea in web apps using photopea.js. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 1 repo~1.5k tokens
    AI & LLM EngineeringAuto-check passed

More from Tansuo2021/ADtoKeil

  • Altium Circuit Investigator

    Tansuo2021/ADtoKeil

    Evidence-led analysis of Altium schematic and PCB designs using netlist tracing, full symbol-pin coverage, connector and PCB pad inventories, local schematic screenshots/SVG labels, component…

    188 GitHub stars~2.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Altium Schematic Reader

    Tansuo2021/ADtoKeil

    Read and reason about Altium Designer projects and schematics using structured data from .PrjPcb and .SchDoc files.

    188 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Serial

    Tansuo2021/ADtoKeil

    Embedded serial-port debugging skill. An agent skill from Tansuo2021/ADtoKeil.

    188 GitHub stars~754 tokensUpdated 4 mo ago
    Auto-check passed
  • Workflow

    Tansuo2021/ADtoKeil

    Thin orchestration layer for embeddedskills. An agent skill from Tansuo2021/ADtoKeil.

    188 GitHub stars~625 tokensUpdated 4 mo ago
    Auto-check passed
  • Build and review maintainable embedded MCU firmware from schematic, PCB, netlist, pin-map, BOM, Keil/C51/MDK projects, vendor demo code, or hardware debug evidence.

    188 GitHub stars~1.5k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Keil

What does Keil do?

Keil MDK/uVision build skill for embedded projects. An agent skill from Tansuo2021/ADtoKeil. Keil is an agent skill from Tansuo2021/ADtoKeil. Keil MDK/uVision build skill for embedded projects.

When should I use Keil?

Keil fits situations like: the user mentions Keil; target enumeration; firmware artifact paths; flash/download through a Keil project.

How do I install Keil in Claude Code?

Run `npx skills add Tansuo2021/ADtoKeil --skill keil -a claude-code`. Or copy the skill folder (keil in Tansuo2021/ADtoKeil) into .claude/skills/keil in your project. Claude Code loads it when a task matches its description.

How do I install Keil in Codex?

Run `npx skills add Tansuo2021/ADtoKeil --skill keil -a codex`. Or copy the skill folder (keil in Tansuo2021/ADtoKeil) into .agents/skills/keil in your project. Codex loads it when a task matches its description.

Can I use Keil in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Tansuo2021/ADtoKeil --skill keil -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/keil, .gemini/skills/keil, .github/skills/keil and .opencode/skills/keil in your project.

What does Keil need to run?

Going by SKILL.md and its folder, Keil needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Keil access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Keil safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Keil use?

Keil is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Keil use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 369 tokens, read only when the agent opens those files.

What are the alternatives to Keil?

Skills that share tags, products or a category with Keil: Embeddings (ruvnet/ruflo, 74k stars), Embedding Strategies (wshobson/agents, 40k stars), Embeddings via 9Router (decolua/9router, 30k stars) and Embeddings (alsk1992/CloddsBot, 2.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Keil?

Tansuo2021 (a GitHub user) maintains it in Tansuo2021/ADtoKeil, which has 188 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on June 7, 2026.

Source: Tansuo2021/ADtoKeil on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.