fix(tools): enforce 60-char description limit for skills

MAX_DESCRIPTION_LENGTH was set to 1024, but the documented skill-
authoring standard specifies <=60 characters. The model generates
descriptions up to 202 chars because the validation allows 1024.

Lower MAX_DESCRIPTION_LENGTH from 1024 to 60 to match the documented
standard. The system-prompt skill index already truncates to 60 chars,
so over-length descriptions lose their routing signal past char 60.

Fixes #52367
This commit is contained in:
annguyenNous 2026-06-25 13:57:00 +07:00 committed by Teknium
parent 9457a90198
commit 0a262b7dbf
2 changed files with 2 additions and 2 deletions

View file

@ -174,7 +174,7 @@ def _skills_dir() -> Path:
return get_hermes_home() / "skills"
MAX_NAME_LENGTH = 64
MAX_DESCRIPTION_LENGTH = 1024
MAX_DESCRIPTION_LENGTH = 60
def _containing_skills_root(skill_path: Path) -> Path:

View file

@ -160,7 +160,7 @@ def _skills_dir() -> Path:
# Anthropic-recommended limits for progressive disclosure efficiency
MAX_NAME_LENGTH = 64
MAX_DESCRIPTION_LENGTH = 1024
MAX_DESCRIPTION_LENGTH = 60
# Platform identifiers for the 'platforms' frontmatter field.
# Maps user-friendly names to sys.platform prefixes.