kicad-export
Using kicad-cli, parse this documentation and use the necessary items to generate ERC/DRC reports, then proceed to create GERBERs, drill files, position files, and BOM files depending on the user's manufacturer. To make this deterministic, store your order of commands in a Python or bash script and modify it per-project.
JLCPCB and NextPCB require a specific format for their position files: A .csv file with 5 columns: Designator, Mid X, Mid Y, Layer (T or B) and rotation KiCad does not permit this, so please use the Python script under scripts/convert_position.py to do this. If the user does not have Python installed please inform them before making changes to their computer, unless they have already specified to use a virtual environment or you see one at the root of the project where this skill is being called.
JLCPCB BOMs also require an LCSC part number. Ensure that the JLCPCB BOM preset is available and if not inform the user that this needs to be added.
Determine which PCB and scheamtic output commands you need to use (documentation is available under the references/ directory under this skill). For example, we often use this set of commands:
kicad-cli version
kicad-cli sch erc
--output build/-erc.rpt
--format report --units mm
--severity-warning --severity-error
--exit-code-violations .kicad_sch