skill.config¶
Configuration management via platformdirs and TOML.
Functions
Return the platform-specific cache directory for skill. |
|
Return the platform-specific config directory for skill. |
|
Return the path to the config TOML file. |
|
|
Return the platform-specific data directory for skill. |
|
Load config from TOML, falling back to defaults for missing fields. |
|
Save config to TOML. |
Return the canonical skills storage directory. |
Classes
|
Root configuration schema with sensible defaults for zero-config first run. |
- class skill.config.SkillConfig(default_agent_targets=<factory>, default_scope='project', install_method='symlink', ai_provider_model='anthropic:claude-sonnet-4-20250514', ai_api_key='$ANTHROPIC_API_KEY', github_enabled=True, smithery_enabled=True, composio_enabled=True, awesome_list_enabled=True, skillsdirectory_enabled=True, search_cache_ttl=3600)[source]¶
Bases:
objectRoot configuration schema with sensible defaults for zero-config first run.
>>> c = SkillConfig() >>> c.default_agent_targets ['claude-code'] >>> c.install_method 'symlink'
- skill.config.cache_dir()[source]¶
Return the platform-specific cache directory for skill.
- Return type:
>>> isinstance(cache_dir(), Path) True
- skill.config.config_dir()[source]¶
Return the platform-specific config directory for skill.
- Return type:
>>> isinstance(config_dir(), Path) True
- skill.config.config_path()[source]¶
Return the path to the config TOML file.
- Return type:
>>> config_path().name 'config.toml'
- skill.config.data_dir()[source]¶
Return the platform-specific data directory for skill.
- Return type:
>>> isinstance(data_dir(), Path) True
- skill.config.load_config(path=None)[source]¶
Load config from TOML, falling back to defaults for missing fields.
- Return type:
>>> c = load_config(Path('/nonexistent/config.toml')) >>> c.default_scope 'project'