SkillSpector icon indicating copy to clipboard operation
SkillSpector copied to clipboard

Support opted-in shipped baselines in local ZIP skill inputs

Open chrisknvidia opened this issue 1 month ago • 0 comments

skillspector scan skill.zip --use-shipped-baseline accepts the option but reports that no shipped baseline exists, even when the ZIP contains a canonical .skillspector-baseline.yaml. Scanning the extracted directory with the same option applies that baseline. Passing the same file explicitly with --baseline also works for ZIP input.

Reproduced on main e7172462caf367736645f66c1aa154ca5f9c64dc with flat and single-wrapper-directory archives. In one synthetic fixture, directory opt-in suppresses three findings and exits 0; ZIP opt-in suppresses none and exits 1. JSON and SARIF agree.

This is a feature extension to the directory support in #286 / #278. Discovery currently happens before archive materialization.

Discover an explicitly opted-in baseline from the resolved local ZIP skill root before context building, reusing the existing loader and extraction lifecycle. Preserve explicit --baseline precedence, default no-opt-in behavior, resource bounds, cleanup and existing recursive/registry option restrictions. Remote inputs are outside this change.

chrisknvidia avatar Oct 28 '26 07:10 chrisknvidia