Configuration
SkillRegistryConfiguration
Controls the skill directory path, warning behavior, and the size of the get_skill_resource not-found hint.
| Property | Type | Default | Description |
|---|---|---|---|
skillDir |
string |
LLM_CHAT_SKILL_DIR or "" |
Path to the directory containing skill files |
warnings |
WarningMode |
LLM_CHAT_SKILL_WARNINGS or WarningMode.Silent |
How warnings during loading are handled |
maxHintResourceNames |
number |
LLM_CHAT_SKILL_MAX_HINT_RESOURCE_NAMES or 8 |
Maximum number of resource identifiers listed in the get_skill_resource not-found hint |
Constructor
new SkillRegistryConfiguration(skillDir?: string, warnings?: WarningMode, maxHintResourceNames?: number)
The constructor arguments override the environment variables, which in turn override the default constants.
WarningMode enum
| Member | Value | Behavior |
|---|---|---|
WarningMode.Silent |
'silent' |
Suppresses all warnings (default) |
WarningMode.Log |
'log' |
Writes to console.warn |
WarningMode.Error |
'error' |
Throws an Error on warning |
Example
import { SkillRegistryConfiguration, WarningMode } from '@johannes.latzel/llm-chat-skill';
const config = new SkillRegistryConfiguration('/path/to/skills', WarningMode.Error);
See also
- Registry:
SkillRegistryand listing - Skill file format: anatomy of a
SKILL.mdfile - Environment variables: configuration reference