# Keil Parser

> Parse Keil MDK project files (.uvprojx), extract macro definitions, include paths, and source file lists. Trigger scenarios: (1) Need to read or analyze Keil project configuration, (2) Query project's macro definitions (defines), header file paths (include paths), source file list, (3) Need to understand project structure before compiling, flashing, etc., (4) User mentions .uvprojx file and wants…

- **Type:** Skill
- **Install:** `agentstack add skill-changde-tang-embedded-skills-keil-parser`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [changde-tang](https://agentstack.voostack.com/s/changde-tang)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [changde-tang](https://github.com/changde-tang)
- **Source:** https://github.com/changde-tang/embedded-skills/tree/main/keil-parser

## Install

```sh
agentstack add skill-changde-tang-embedded-skills-keil-parser
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Keil Project Configuration Parsing

Invoke `py_keil_parser.py` to parse `.uvprojx` project files and get project compilation configuration information.

## Tool Script

**Script Path**: `py_keil_parser.py`
**Dependencies**: Python 3.x standard library (no additional installation required)

## Usage

```bash
python py_keil_parser.py  [project file path 2] ...
```

Supports parsing multiple project files simultaneously.

## Output Structure

Output is in JSON format, containing the following fields:

| Field           | Description                                |
| --------------- | ------------------------------------------ |
| `target_name`   | Project target name                        |
| `defines`       | Macro definition string, separated by semicolons |
| `include_paths` | Include path list                         |
| `source_files`  | Source file list, each item contains `name` and `path` |

### Example Output

```json
{
  "project.uvprojx": {
    "target_name": "Target",
    "defines": "USE_HAL_LIBRARY;STM32F103xB",
    "include_paths": ["../inc/", "../src/"],
    "source_files": [
      {"name": "main.c", "path": "C:/project/main.c"}
    ]
  }
}
```

## Typical Use Cases

- Before calling compilation tools, first parse the project to confirm macro definitions and paths are correct
- Check which source files are included in the project
- Compare configuration differences between two projects

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [changde-tang](https://github.com/changde-tang)
- **Source:** [changde-tang/embedded-skills](https://github.com/changde-tang/embedded-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-changde-tang-embedded-skills-keil-parser
- Seller: https://agentstack.voostack.com/s/changde-tang
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
