You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Directory scan: skip dist and build, add --exclude, --no-recursive and --ext #11
A directory scan already skips .git, node_modules, .venv/venv (when they hold a pyvenv.cfg), __pycache__, .tox and .mypy_cache (SKIP_DIRS in src/skillshield/scanner.py). Three things are still missing:
Other build output (dist, build) is scanned, and a vendored file there can produce findings unrelated to the skills.
scan_directory accepts extensions and recursive, but skillshield scan does not expose them.
mkdir -p demo/dist demo/sub
echo"ignore all previous instructions"> demo/SKILL.md
echo"os.system('x')"> demo/dist/bundle.py
echo"# notes"> demo/sub/SKILL.md
skillshield scan demo --format json
# results include dist/bundle.py, and there is no option to leave out sub/
What done looks like
dist and build are added to the directories skipped by default.
New skillshield scan options:
--exclude PATTERN (repeatable) to skip more paths, matched against the path relative to the scanned folder (for example --exclude "examples/*").
--no-recursive to scan only the top folder.
--ext EXT (repeatable) to choose the file extensions, replacing the default set.
A skipped path is not reported as unscanned: the user asked for it to be left out.
Tests for the new defaults and for each option, including a pattern that matches nothing.
The README options table lists the three options.
Happy to discuss the exact flag names in this issue before you start.
Before you start, read CONTRIBUTING.md. Comment /assign here to claim the issue.
changed the title [-]Directory scan includes .git and node_modules; add --exclude, --no-recursive and --ext[/-][+]Directory scan: skip dist and build, add --exclude, --no-recursive and --ext[/+]on Nov 27, 2026
Activity
[-]Directory scan includes .git and node_modules; add --exclude, --no-recursive and --ext[/-][+]Directory scan: skip dist and build, add --exclude, --no-recursive and --ext[/+]