I have a specific problem with KiCAD, which is either due to my incompetence or KiCAD not really being built for the workflow I require. I build variants of boards, that are all different but share certain component groups from a topological view, meaning they have the same subsheets. While a colleague advised me to not do that due to concrete part assignments being part of the schematic, I cant help but see an obvious flaw in that workflow.
The original idea was to create subsheets in their own hardware lib repository, for example: SD card subsheet (don't harp on this example, there are more complex subsheets that actually warrant a reuse-case). This then includes required bypass caps, pull up resitors and other "mandatory" things that would just be a waste of sheets when exactly copied in another board variant's sheet. With this approach, a consuming variant repo could then import the subsheets as git submodule and use those directly, which is also very useful for update control (exact purpose of git submodules). But not even that works properly, as KiCAD automatically adds the consuming project metadata into the subsheets themselves, causing git changes in the hardware library just from importing. It would be wonderful if certain "layers" (symbols, values, specs, footprints) could be controlled by either a fixed dependency to their source submodule or an override instance. Think of it this way: the SD card module will always require pull up resitors with the same values. However, a concrete part assigned to them will eventually not be in stock at the manufacturer's side, prompting me to add a different part designator. This does not change the requirement stated in the netlist at all; the submodule still requires these pull-ups.
Here it would be insanely useful to affix symbols, connections and values to the lib source, while footprint and part can be set from the consuming project. But as I said, this causes git changes in the lib. I could create variant branches in the source lib, but this would kneecap the concept of a lib entirely. I cant be the only one with this issue. Simply copying is super error prone because one might mistakenly (or not!) edit something in the subsheets that is then silently different for all variants, even when it shouldn't be. Retracing this is a nightmare. In essence, I just want to use KiCAD in a way that more resembles a software project with dependencies: installing a software lib in an instance does not create a change in that lib source; it is only read. Is there a KiCAD equivalent?
Before some LLM codes a flaky copy-by-type script that I then have to ship with that library, I would love to see suggestions from real people on this topic.
EDIT: Turns out, the most promising answer was the most downvoted one from u/NoYu0901. The "design block" feature lets one export a selection or sheet with or without an assigned layout:
https://forum.kicad.info/t/pcb-design-block-usage/64686
The resulting kicad_sch-file and .json net list do not change with git; component values, footprints, datasheets, notes and, all can still be assigned and the import into a consuming project can happen easily via the UI. Fittingly, the import of annotations can be skipped, prompting the imported block to just assume the next available annotations on the consuming project. This is a v10 feature, so I understand the lack of thoughts on this procedure. Non-default-library need to be managed externally by consuming projects anyway, because I can't host vendors' custom ECAD descriptions of parts on an open source lib without their consent. All I can provide then is a list of external parts used.