Kikakuka (企画課, きかくか, Planning Section) (formerly Kikit-UI) is mainly built on top of KiKit, Shapely, OpenCV, pypdfium2 and PUI.
It creates a few more dimensions for KiCad:
- Projects
- Revisions
- Build Variants
- Panelization
- Workspace Manager
- Easily navigate between projects
- Automatically open multiple KiCad instances on macOS
- Recall windows of previously opened files (macOS and Windows only)
- Easily navigate between projects
- Differ
- Highlight changed areas
- Schematic diff viewer
- PCB diff viewer
- Git support
- (Not just a) Panelizer
- Interactive arrangement with real-time preview
- Freeform placement not limited to M×N grid configurations
- Support for multiple different PCBs in a single panel
- Automatic or manual tab creation
- Automatic V-cut/mousebites selection
- Enable hole creation in panel substrate for extruded parts
- No coding skills required
- Build Variants (as a usage of the Panelizer)
- Single PCB without panelization can be done with frameless setting
- Each PCB can have its own flag settings
- CLI
- Convert saved .kkkk_pnl to kicad files in one command
- Same usage for panelizer & build variants
The .kkkk file saves workspace information in JSON format.

- A diff sample of cynthion-hardware
Set BUILDEXPR in footprints' properties. This can be done quickly with Symbol Fields Table using the current sheet only scope. Remember to sync them to PCB afterward.
- Kikakuka extracts build flags from
BUILDEXPR. Selected flags are interpreted as true, and vice versa. - Footprints with the BUILDEXPR evaluated as false will be marked as DNP.
- Footprints with unset or empty BUILDEXPR will be kept as is.
A boolean expression with operators:
~Not&And|Or
It can be as simple as a build name as shown in the image above or an expression like (A | ~B) & C.
Panelization with different build variants

Single PCB without panelization can be done with frameless setting

Field#Flag will set Field to the value where flags match build flags.
Multiple flags like Field#FlagA#FlagB (order insensitive) is also a supported usage.

The .kikit_pnl file saves panelization settings in JSON format, with PCB paths stored relative to the file's location.
Tab position candidates are determined by the PCB edge and max_tab_spacing, prioritized by divided edge length (smaller first), and skipped if there is a nearby candidate (distance < max_tab_spacing/3) with higher priority.
In the image below with debug mode on, small red dots are tab position candidates, larger red circles are selected candidates, and the two rectangles represent the two half-bridge tabs.

Auto tab is off for PCB with manual tabs.
Drag inside the PCB for moving selected tab, drag outside the PCB for changing the direction for the selected tab.

Make sure your python can import pcbnew
> python3 -c "import pcbnew; print(pcbnew._pcbnew)"
<module '_pcbnew' from '/usr/lib/python3/dist-packages/_pcbnew.so'>
On macOS, I have to use the python interpreter bundled with KiCAD
PYTHON=/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python3
On Linux, you should be able to just use the your default python3
PYTHON=python3
Create a virtual environment and install dependencies
${PYTHON} -m venv --system-site-packages env
./env/bin/pip3 install -r requirements.txt
Run
./env/bin/python3 kikakuka.py
On Windows the Python interpreter is at C:\Program Files\KiCad\9.0\bin\python.exe.
But however in my Windows environment venv is not working properly, here is how I run it with everything installed in the KiCad's environment.
"C:\Program Files\KiCad\9.0\bin\python.exe" -m pip install -r requirements.txt
"C:\Program Files\KiCad\9.0\bin\python.exe" kikakuka.py
# Just open it
./env/bin/python3 kikakuka.py
# Start with PCB files
./env/bin/python3 kikakuka.py a.kicad_pcb b.kicad_pcb...
# Load file (.kkkk or .kikit_pnl)
./env/bin/python3 kikakuka.py a.kikit_pnl
# Headless export for panelization or build variants
./env/bin/python3 kikakuka.py a.kikit_pnl out.kicad_pcb
# Differ
./env/bin/python3 kikakuka.py --differ a.kicad_sch b.kicad_sch
- @buganini
- @dartrax












