SkillSpector icon indicating copy to clipboard operation
SkillSpector copied to clipboard

--recursive stops after 32 skills (hardcoded _MULTI_SKILL_MAX_SKILLS); cap is undocumented and cannot be raised

Open naamanhirschfeld-armis opened this issue 1 month ago • 1 comments

Summary

scan --recursive scans at most 32 skills (_MULTI_SKILL_MAX_SKILLS = 32 in cli.py). The cap is hardcoded, undocumented in --help/README, and cannot be raised. The omission is reported (see Actual), but the default exit code is still 0, and the message does not say what the cap is or that it can be avoided, so a collection with more than 32 skills can only be fully scanned by looping over the directories outside the tool.

(I first thought the omission was silent; on 2.12.0 it is not. This request is about the fixed cap, not about silence. Related closed issues: #389 added --fail-on-incomplete, #460 made the 60s workflow budget configurable.)

Repro

gen.sh:

#!/usr/bin/env bash
# usage: gen.sh <outdir> <count>
set -eu
out=$1; n=$2
for i in $(seq 1 "$n"); do
  id=$(printf 's%03d' "$i")
  mkdir -p "$out/$id"
  printf -- '---\nname: %s\ndescription: Says hello number %s.\n---\n# %s\n\nGreet the user politely.\n' "$id" "$i" "$id" > "$out/$id/SKILL.md"
done
bash gen.sh skills 100
skillspector scan skills --recursive --no-llm --format json -o out.json; echo "exit $?"
skillspector scan skills --recursive --no-llm --format json -o out.json --fail-on-incomplete; echo "exit $?"

Actual

  • Discovery reports Multi-skill directory detected: 100 skills found, progress prints [1/100] ..., but only s001..s032 are scanned.
  • Final table ends with <unscanned> — — 68 partial and Recursive scan incomplete: one or more skills were omitted after an aggregate safety limit.
  • JSON: skill_count: 100, skills_scanned: 32, skills_omitted: 68, analysis_completeness.coverage_percent: 32.0, execution_successful: true, risk_recommendation: "CAUTION".
  • Exit code 0 by default; 1 only with --fail-on-incomplete.
  • No flag or env var changes the 32 (it is a module constant in cli.py; the same message is used for the other aggregate budgets, so the user cannot tell which limit was hit).

Expected

One of:

  • a flag/env var to raise the cap (e.g. --max-skills N, 0 for unlimited), and/or
  • the message names the limit that was hit and its value ("recursive skill count budget 32 reached") and points to the remedy, and the limit is documented next to --recursive in the README/--help.

Optionally scan the remaining skills in batches rather than stopping.

Environment

SkillSpector 2.12.0 (git tag install), Python 3.12, macOS (Darwin 25.6), --no-llm, network blocked (HTTPS_PROXY pointed at a closed port).

naamanhirschfeld-armis avatar Oct 15 '26 07:10 naamanhirschfeld-armis

Opened #847 for this request.

It adds --recursive --max-skills N for local collections, retains the default of 32 and accepts only positive integers (no unlimited sentinel). When the count limit is reached, the CLI names it and explains how to increase it or scan sub-skills separately. Other aggregate budgets, omitted counts, incomplete coverage and existing exit policies remain in force; README and help document the behavior.

Validation includes 394 CLI/discovery/subprocess checks, real static scans comparing 32/33 skills, and a full offline test run: 14,023 passed, 14 skipped, 245 deselected, 4 xfailed. The PR documents the localhost-proxy test workaround and the unchanged baseline mypy diagnostics. No live providers were called.

agentsope avatar Oct 16 '26 08:10 agentsope