kdk
Standalone Kodi skin validation tool. CLI and GUI.
It runs the checks of the KodiDevKit Sublime Text plugin, and its validation guide lists what each one reports.
Install
Pre-built binaries
Each release ships two binaries per OS: a CLI build and a GUI build. Both contain the same code; the GUI build runs without a console window, so double-clicking it doesn't open a terminal. No Python install needed.
Download them from the Releases page.
<version> is the release tag, such as v3.1.0:
- Windows (x86_64):
kdk-gui-<version>-windows-x86_64.exeandkdk-cli-<version>-windows-x86_64.exe. - macOS (Apple Silicon):
kdk-gui-<version>-macos-arm64.zipandkdk-cli-<version>-macos-arm64.zip. The binaries are not notarized, so macOS blocks the first launch; allow it with Open Anyway under System Settings > Privacy & Security. - Linux (x86_64):
kdk-gui-<version>-linux-x86_64.tar.gzandkdk-cli-<version>-linux-x86_64.tar.gz. Extract withtar -xzf, then run the file inside.
From PyPI
pip install kdk # CLI
pip install "kdk[gui]" # CLI and GUI
Requires Python 3.10+. The CLI needs only lxml and rich; the GUI adds PySide6.
On Linux the GUI needs a few system libraries that most desktop installs
already have. On Debian and Ubuntu they are libegl1, libxkbcommon0,
libdbus-1-3 and libxcb-cursor0.
From source
git clone https://github.com/MikeSiLVO/kdk.git
cd kdk
pip install -e . # or -e ".[gui]" for the GUI
Building a local binary
python make_binaries.py
It installs PyInstaller and the GUI dependencies on first run, then writes two
binaries to dist/:
kdk(orkdk.exe): the CLI build.kdk-gui(orkdk-gui.exe): the GUI build.
The release binaries are built with the same script.
Usage
kdk-gui # Launch the GUI
kdk validate # Validate the current directory
kdk validate /path/to/skin # Summary, then pick a category to read
kdk validate --list # Print every issue instead of the picker
kdk validate --quiet # Summary only
kdk validate --report # Also save a text report in Downloads
kdk validate -o report.txt # Save the text report to this path
On a terminal validate ends with a category picker. Redirected or piped it
prints every issue instead, so CI logs are complete. The summary names the Kodi
release checked and anything that weakened the run, such as a kodi_path
without Kodi's data in it.
kdk issues shows the last run's findings again without validating:
kdk issues # Every issue from the last run
kdk issues --browse # Pick a category
kdk issues --summary # Append the per-category summary
Every finding carries a rule id, such as fonts.undefined, and a subject, the name it is
about, such as the font name or the image path as written. kdk rules lists every id with what it
reports, and kdk rules --json adds the check each belongs to. An id never changes once released.
Both commands take these:
--severity erroror--severity warning: that severity only.--category <text>: categories whose name contains the text, such asfonts.--show-include-warnings: also list warnings from include content, hidden by default. Errors from include content are always listed.--json: machine-readable output. Withvalidate -oit goes to that file.--strict,--exit-zeroand--github, described below.--debug: engine logging on stderr.
validate also takes --kodi-path, --release and --language, which override
the kodi_path, kodi_release and language settings, and
--isolated.
Exit code is 1 if any errors are found, 2 when kdk could not finish the run,
and 0 otherwise. Add --strict to fail on warnings too:
kdk validate --strict .
--exit-zero gives 0 for any finished run, so a non-zero code only ever means
kdk failed. With --json, a failed run prints format_version, kdk_version and
error in place of the results.
Comparing two runs
kdk compare <base> <head> lists what head adds, mutes or fixes against base. Each side is a skin
folder or a run saved with kdk validate --json -o. Given only a head, every finding of the new
skin is new.
kdk compare old/skin.test new/skin.test
kdk compare --json -o diff.json base.json new/skin.test
Findings match on rule, file and subject, so one that only moves lines is neither new nor fixed.
A finding repeated across language files is one row, with count, files and the lines that
go with them. A finding muted on head that is new, or was not muted on base, is listed as muted
with the comment's reason, and never counts as new.
Exit code is 1 when head adds a finding, 2 when kdk could not finish, and 0 otherwise;
--exit-zero gives 0 for any finished run. Runs from different kdk versions or Kodi releases
are not compared.
GitHub Actions
--github also prints each issue as a workflow command, so it shows up as an
inline annotation on the commit and on the pull request diff:
- run: pip install kdk
- run: kdk validate --strict --github .
Annotation paths are relative to GITHUB_WORKSPACE, so a skin in a subdirectory
still points at the right file.
Run it on ubuntu-latest. Windows runners check text files out with CRLF line
endings, which File Integrity reports as errors.
Silencing a finding
An XML comment mutes findings the skin has already judged, the way a
# type: ignore does in Python. kdk-ignore-file covers the whole file it sits
in and kdk-ignore a single line. Text after a ; is the reason, shown to
anyone reading the results:
<!-- kdk-ignore-file: labels; debug overlay --> whole file, Labels only
<!-- kdk-ignore: labels, images; add-on name --> one line, Labels and Images
<!-- kdk-ignore: labels --> one line, Labels, no reason
<!-- kdk-ignore --> one line, every check
A file-wide comment needs both the checks it covers and a reason. If either is missing, it mutes nothing and is reported as a warning.
A one-line comment sharing its line with markup applies to that line; one sitting on its own line applies to the line below it:
<label>SiLVO</label> <!-- kdk-ignore: labels; theme name -->
<!-- kdk-ignore: labels; theme name -->
<label>Superman</label>
Comments are read in the XML files of the skin's resolution folders, such as
xml or 1080i. A finding in any other file, addon.xml and the language
files included, cannot be muted.
Category names are the ones in the summary (Labels, Fonts, Images, IDs,
Variables, Maps, Includes, XML Validation, File Integrity, Kodi Repo),
matched without regard to case, spaces, or hyphens. A name that matches no check
is reported as a warning; the names it got right still apply.
A muted finding is not dropped. --json keeps it with a muted field holding the
comment's line and reason, and the saved report lists it with the same. The
terminal list, --github annotations and the exit code leave it out, and the
summary counts it apart.
Configuration
Settings are loaded in priority order:
- CLI flags
.kdk.jsonin the skin directory- User config (OS-native location):
- Linux:
~/.config/kdk/config.json - macOS:
~/Library/Application Support/kdk/config.json - Windows:
%APPDATA%\kdk\config.json
- Linux:
- Built-in defaults
--isolated skips both config files, so only CLI flags and the defaults apply.
The GUI saves its Kodi path and editor choice to the user config.
Example config file:
{
"kodi_path": "/usr/share/kodi",
"editor": "code"
}
| Setting | Default | Effect |
|---|---|---|
kodi_path |
"" |
Kodi installation folder. Kodi's core colors and label ids are read from it, and font files the skin does not ship are looked for in it. Empty, or a folder without Kodi's colors.xml and strings.po, uses the copies bundled for the release checked. An xbmc source checkout works too, and its info names replace the bundled list; info_source in --json says which was used. A folder that does not exist is reported as an error. |
kodi_release |
"" |
Release to check against: omega (Kodi 21) or piers (Kodi 22). Empty uses the release the skin's xbmc.gui import names, or the newest when it names none. A forced release that will not load the skin is reported. An unknown value is reported and ignored. |
language |
"resource.language.en_gb" |
Language of the skin's strings.po that label ids are looked up in, as the folder name or its code (en_gb). |
validation_exclude |
["shortcuts"] |
Folder or file names XML Validation skips, matched against any part of the path. |
editor |
"" |
Editor a double-click in the GUI opens the issue in: code, sublime, notepad++, vim, nano, kate or gedit. Empty opens the file in the system's default app, without going to the line. |
License
GPL-3.0-or-later. See LICENSE.
Based on the original KodiDevKit by Philipp Temminghoff (phil65), Copyright (C) 2015-2019, licensed GPL-3.0-or-later.
Bundled Kodi data
src/kdk/data/ carries reference data taken from Kodi, Copyright (C) Team Kodi, licensed GPL-2.0-or-later and used here under GPL-3.0-or-later:
src/kdk/data/kodi/<release>/-colors.xmlandstrings.po, copied verbatim byscripts/refresh.py.src/kdk/data/<release>/data.xml- builtin and boolean-condition names with their descriptions, taken from the Kodi sources and maintained by hand.src/kdk/data/<release>/infonames.json- the infolabel and boolean-condition names Kodi's parser accepts, taken from the Kodi sources.src/kdk/data/<release>/windows.jsonandobsolete_windows.json- window names, ids and files, taken from the Kodi sources.src/kdk/data/addon_schema/- addon.xml schemas copied verbatim from kodi-addon-checker, Copyright (C) Team Kodi, licensed GPL-3.0-only.
Metadata
Release files for kdk 3.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kdk-3.1.0.tar.gz | 529.7 kB | With provenance | Details for kdk-3.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kdk-3.1.0-py3-none-any.whl | Python 3 | none | any | Details for kdk-3.1.0-py3-none-any.whl |
Total release size: 989.5 kB
Release files / kdk-3.1.0.tar.gz
| Download URL | kdk-3.1.0.tar.gz |
|---|---|
| Size | 529.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3b3c346bc2c8c434f1ed40081a37f1c4fa5b0e368fab59728f53616bd3774ef
|
|
BLAKE2b-256 checksum How to use checksums |
3b9684341a1280f2538c72b776e1c77cf861ec402d1c356b6005a8c2ff88dd7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / kdk-3.1.0-py3-none-any.whl
| Download URL | kdk-3.1.0-py3-none-any.whl |
|---|---|
| Size | 459.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80e3a294426881cca6e9a420d7e18dbb21f93063928b22b0be2dabeacdbe9aef
|
|
BLAKE2b-256 checksum How to use checksums |
10eb1a46d852a0bc67ecc9de7aab5565dfcf3b7adbd02407aa2951ae04e49cbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logSecurity for kdk 3.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kdk-3.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.