Commit Graph

2 Commits

Author SHA1 Message Date
sickn33
41af2d2877 fix(bundles): Return all skills for complete bundle
Make the skill filter helper treat the complete bundle as a
pass-through so categories missing from the hardcoded map are
not silently omitted.

Add a regression test to keep complete bundle behavior aligned
with its name.
2026-03-18 19:00:40 +01:00
Abkari Mohammed Sayeem
5f6f94b53f feat: Add skill filtering utility to fix Gemini token truncation (Iss… (#219)
* feat: Add skill filtering utility to fix Gemini token truncation (Issue #215)  Adds skill-filter.js module that provides: - Category-based skill filtering to reduce context overhead - Pre-configured skill bundles (minimal, balanced, complete)  - Support for environments with token limits  This addresses the "could not convert a single message before hitting truncation" error when all 1,200+ skills are loaded with Gemini.  Users can now use the minimal bundle to avoid truncation:   - Minimal bundle: ~5k tokens   - Balanced bundle: ~15k tokens     - Complete bundle: ~50k tokens  Fixes #215

This module filters and manages skills by category to address token limit issues in Gemini, providing various skill bundles to optimize performance.

* Fix: Use catalog-backed categories for skill bundles  Replaces hardcoded categories (core, architecture, etc) with actual categories present in skills_index.json to ensure getSkillsByBundle returns a usable subset instead of empty set.
2026-03-07 10:02:18 +01:00