skills
Configuration for manifest-based skills.
Defines SkillsConfig, which validates skill discovery roots and runtime
policy, and SkillRuntimeConfig, which holds limits and approval settings for
reading skill resources and executing skill scripts.
SkillRuntimeConfig
dataclass
Runtime policy configuration for manifest-based skills.
Attributes:
| Name | Type | Description |
|---|---|---|
default_script_timeout_seconds |
int
|
Default timeout for skill script execution. |
max_script_output_bytes |
int
|
Maximum captured stdout/stderr size for a skill script. |
max_resource_bytes |
int
|
Maximum readable size for a skill resource file. |
default_skill_script_approval_mode |
str
|
Approval mode applied when no specific rule matches a script. One of "prompt", "approve", or "deny". |
skill_script_approval_modes |
Dict[str, str]
|
Per-skill and per-script approval overrides. Keys are matched most specific first: "skill_name:script_name", then "skill_name", then "*" as a catch-all. Values are "approve" or "deny". |
Source code in src/mada/core/config/skills.py
SkillsConfig
dataclass
Configuration for discovering and running manifest-based skills.
Attributes:
| Name | Type | Description |
|---|---|---|
skill_paths |
List[Path]
|
Directories searched recursively for skill folders
containing |
skill_runtime |
SkillRuntimeConfig
|
Runtime limits and script approval policy. |
Source code in src/mada/core/config/skills.py
__post_init__(skill_path_base_dir)
Validate skill paths and normalize them to absolute Path objects.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
skill_path_base_dir
|
str | Path | None
|
Directory used to resolve relative skill paths. When omitted, relative paths are resolved against the process working directory. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in src/mada/core/config/skills.py
load_skills_config(skills_block, skill_path_base_dir=None)
Build a SkillsConfig from the nested skills configuration block.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
skills_block
|
Dict[str, Any] | None
|
Raw |
required |
skill_path_base_dir
|
str | Path | None
|
Directory used to resolve relative skill paths. |
None
|
Returns:
| Type | Description |
|---|---|
SkillsConfig
|
A validated skills configuration. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the block or its |