1.4 KiB
V56/V56b - Skills Discovery Fix
Bug reported by Yacine
Screenshot /oss-discovery.html: "0 skills disponibles dans /skills/" but /var/www/html/skills/ has 11 symlinks pointing to 4000+ real skills.
Root cause
oss-discovery.php case "skills": scanned wrong directory ($SKILLS_DIR = /opt/deer-flow/skills/weval only) Should scan /var/www/html/skills/* (the 11 symlinks) recursively.
Fix
Replaced glob(...) with RecursiveIteratorIterator + FOLLOW_SYMLINKS. Scans SKILL.md/README.md/index.md at any depth up to 5. Per-collection cap 2000, total 5000 for performance.
Verified
4247 skills detected (was 0). Biggest collections: antigravity (2000+), deerflow (2000+), ecc (148).
GOLD backups
oss-discovery.php.GOLD--pre-v56-skills-scan oss-discovery.php.GOLD--v56b-uncap
For next Claude
- /var/www/html/skills/ contains 11 symlinks to /opt/*/skills/
- DO NOT delete or recreate /var/www/html/skills/ directory
- If count regresses again, check:
- Symlinks still present (ls -la /var/www/html/skills/)
- Target dirs still exist (follow each symlink)
- No cron re-setting $SKILLS_DIR
- V56 code block still in oss-discovery.php (grep V56_RECURSIVE_SKILLS_SCAN)
- Rollback: cp GOLD-pre-v56-skills-scan back
Anti-regression
Test rapide pour next Claude/cron: curl "https://weval-consulting.com/api/oss-discovery.php?k=WEVADS2026&action=skills" | jq .total Expected: > 1000