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.4.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
pip install "kdk[textures]" # CLI with Textures.xbt packing and unpacking
Requires Python 3.10+. The CLI needs only lxml and rich; the GUI adds PySide6. Packing and unpacking textures adds Pillow and lzallright, which the GUI install includes.
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 and addon_checker: problem when
Kodi's add-on checker fails a repo PR on it, warning when it only warns, null when it does not
check it. blocking_warning is true for a rule kdk reports as a warning that still blocks a
Kodi repo submission: the add-on checker's problems and the rules reviewers refuse a skin on. Errors
are not marked; every error blocks a submission. Kodi Repo findings stay warnings in kdk. 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.
Packing and unpacking textures
kdk textures unpack <bundle> writes every image in a Textures.xbt back out as a file, and kdk textures pack <folder> packs a folder of PNG, JPG and GIF images into one. The GUI offers both on its start screen, and under Tools, the wrench button beside Settings.
kdk textures unpack media/Textures.xbt -o media # unpack beside the skin's other media
kdk textures pack media # write media/Textures.xbt
- Unpacking writes each image in the format its name gives: PNG, a JPEG for a
.jpg, and an animated GIF with every frame for a.gif. A bundle holds the pixels, not the original file, so a JPG comes back saved again as a high-quality JPEG. - A bundle keeps every name in lowercase. Unpacking a skin's own
media/*.xbtgives each name the case the skin's XML writes it in; a name the XML never mentions stays lowercase. - Unpacking never replaces a file already in the folder unless
--overwriteis given. The default folder is the bundle's name in the current directory. - Packing writes a bundle Omega and Piers both load. It leaves out hidden folders, and the default output is
Textures.xbtinside the folder. - A file that is not a readable image, or whose lowercase name another file already takes, is left out and listed. Either command then exits
1;2means it could not run.
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.
Muting a finding
An XML comment mutes warnings 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.
A comment mutes warnings only. An error, or a warning that blocks a Kodi repo submission, stays listed and counted on a line the comment covers.
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's Settings dialog writes kodi_path, language, editor and update_check to the user config. The GUI picks the Kodi release per skin in its header instead of kodi_release, and drops a pick once the skin's addon.xml implies that release itself. The window keeps its own state under gui: size, detail pane position and sizes, columns, filters, grouping, recent skins and the release picked per skin.
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 the GUI opens an 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. |
update_check |
true |
The GUI, and kdk validate in a terminal, say when a newer kdk is out. Runs in CI and runs with --json, --github, --quiet or --isolated never check. Setting KDK_NO_UPDATE_CHECK=1 in the environment also turns it off. |
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.
Bundled add-on checker code and data
src/kdk/addoncheck/data/schemas/- the addon.xml schemas of kodi-addon-checker 0.0.36, copied verbatim, Copyright (C) Team Kodi, licensed GPL-3.0-only.src/kdk/addoncheck/data/corestrings.json- the string ids of Kodi's ownresource.language.en_gbat 19.5-Matrix, 20.5-Nexus, 21.3-Omega and the Piers branch, taken from Kodi, Copyright (C) Team Kodi, licensed GPL-2.0-or-later and used here under GPL-3.0-or-later.src/kdk/addoncheck/data/jsonrpc.json- the JSON-RPC method names and the properties each accepts, read from Kodi'sxbmc/interfaces/json-rpc/schema/at the same refs ascorestrings.json, Copyright (C) Team Kodi, licensed GPL-2.0-or-later and used here under GPL-3.0-or-later.src/kdk/addoncheck/data/spdx.json- the license and exception ids of the SPDX License List 3.29.0.src/kdk/addoncheck/packaging/-version.pyfrom packaging 26.3, copied verbatim, licensed Apache-2.0 OR BSD-2-Clause.src/kdk/addoncheck/radon/-raw.pyfrom radon 6.0.1, copied verbatim, Copyright (c) 2012-2017 Michele Lacchia, licensed MIT.
Metadata
Release files for kdk 3.4.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.4.0.tar.gz | 749.5 kB | With provenance | Details for kdk-3.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kdk-3.4.0-py3-none-any.whl | Python 3 | none | any | Details for kdk-3.4.0-py3-none-any.whl |
Total release size: 1.4 MB
Release files / kdk-3.4.0.tar.gz
| Download URL | kdk-3.4.0.tar.gz |
|---|---|
| Size | 749.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06ff5933ecef812cea88151314a9f8ef5c1c29ba3e4ea1b300757df73f7a8882
|
|
BLAKE2b-256 checksum How to use checksums |
ecc7a241b4914cebfcc3c2600d8eb5568aa26b90fd53b26a7bb265d71af3a6ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 21, 2026.
Transparency logRelease files / kdk-3.4.0-py3-none-any.whl
| Download URL | kdk-3.4.0-py3-none-any.whl |
|---|---|
| Size | 665.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8208c40af0da20121b4fff82cfff546cc87a717dba11c1e590519d5adf567ad9
|
|
BLAKE2b-256 checksum How to use checksums |
2ba00409bd91beb0c7e7e882ad915009ca8d6d4d23a3e81c2d295b7c3d6bd51a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 21, 2026.
Transparency logSecurity for kdk 3.4.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.4.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 Nov 21, 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.