Agent Executor (AX) is Google's open agentic orchestration runtime
Go
docs: clarify skills directory resolution logic and fallback behavior in configuration and README (#336)
zbl94e100f0ba151e
diff --git a/examples/skills/README.md b/examples/skills/README.mdindex 7e6adca..41eb3f3 100644--- a/examples/skills/README.md+++ b/examples/skills/README.md@@ -4,8 +4,6 @@ AX has built-in support for [Agent Skills](https://agentskills.io).## Configuration-By default, `SKILLS_DIR` or `~/.agents/skills` are used as the skills directory.-To enable skills with a custom directory, you can set the `skills_dir` in your `ax.yaml` file:```yaml@@ -16,6 +14,8 @@ planner:skills_dir: "./examples/skills"```+If you omit `skills_dir` in your `ax.yaml` file, AX will check the `SKILLS_DIR` environment variable first, and finally fall back to `~/.agents/skills`.+## Example: Using the `emoji` SkillAX contains a sample `emoji` skill in `examples/skills/emoji`. If you run a task that matches the description of the skill, the planner will automatically activate it and execute its scripts!diff --git a/internal/config/config.go b/internal/config/config.goindex 2a202f9..75db187 100644--- a/internal/config/config.go+++ b/internal/config/config.go@@ -89,7 +89,7 @@ type GeminiPlannerConfig struct {MaxTokens int32 `yaml:"max_tokens,omitempty"`Timeout string `yaml:"timeout,omitempty"`SystemPrompt string `yaml:"system_prompt,omitempty"`- SkillsDir string `yaml:"skills_dir,omitempty"` // Directory to discover skills from+ SkillsDir string `yaml:"skills_dir,omitempty"` // Directory to discover skills from. If omitted, falls back to SKILLS_DIR env var or ~/.agents/skills.}func (c *GeminiPlannerConfig) setDefaults() {