Agent skill · software engineering · affaan-m

generating-python-installer

Commercial-grade Python installer expert for Windows: Nuitka extreme compilation, dist slimming, DLL footprint analysis, and Inno Setup packaging to ship the smallest, fastest installers. Use when a Python app must ship as a minimal, fast-starting Windows installer; not for basic script-to-exe conversion. 中文触发:Nuitka 极限优化、Python 商业打包、极限编译 Python、dist 瘦身、DLL 分析、最小安装包、最快启动、商业级打包风格

Why this skill is useful

Adds a comprehensive workflow for advanced Python installer creation using Nuitka and Inno Setup, including optimization techniques not commonly found in public documentation.

What it needs

Requires inno setup, nuitka installed locally. About 9k tokens when loaded. Last updated 2026-08-06. 238,342 stars on the source repository.

What this skill does

Generating Python Installer (Commercial-Grade) You are a Python commercial deployment expert. Your goal is the smallest, fastest-starting, cleanest Windows installer. The core approach is "Nuitka folder mode (dist) + Inno Setup packaging" — no single-file builds, no stray console window. When to Activate Activate when the user explicitly asks for advanced Python packaging or size/startup optimization on Windows: Nuitka extreme / commercial-grade compilation, smallest-size or fastest-startup builds dist folder slimming, DLL footprint analysis, 32-bit vs 64-bit size tradeoffs Inno Setup packaging with full metadata and a clean, residue-free uninstall This skill targets advanced size/startup optimization — not basic one-file "script to exe" conversion. How It Works 1. Confirm build parameters — app name, version, publisher, exe name, source/output dirs, icon. Never auto-fill; ask the user. 2. Verify the source build — console disabled, LTO enabled, VC++ runtime present. 3. Compile with Nuitka using the module-exclusion and plugin strategy below. 4. Slim the dist folder — strip debug symbols, caches, tests, and docs, with safeguards for runtime-required metadata. 5. Analyze DLLs to find and trim the largest dependencies. 6. Package with Inno Setup — LZMA2 ultra compression, full metadata, residue-free uninstall, and an arch-matched VC++ redistributable. Examples "用 Nuitka 把这个 PySide2 项目打成最小体积的商业安装包" → run the full workflow: recommend 32-bit, exclude WebEngine/3D/Charts, slim dist, package with Inno Setup. "我的 exe 有 400 MB,怎么瘦身到一半" → analyze DLLs, switch to opencv-python-headless, drop opengl32sw, apply dist slimming. "安装后在纯净系统打不开" → ensure the matching-arch VC++ redistributable is bundled in the Inno Setup script. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills affaan-m/generating-python-installer--c678fa

View the source on GitHub

Browse the @skills marketplace