feat: load mini-agent skills directories#76
Conversation
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
There was a problem hiding this comment.
Code Review
This pull request adds support for .mini-agent/skills directories in both home and project scopes, updating the documentation and the configuration paths. Feedback was provided to deduplicate the paths in SKILLS_DIRS to prevent scanning the same directories twice when the working directory is the user's home directory.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| SKILLS_DIRS = [ | ||
| HOME_SKILLS_DIR, | ||
| HOME_MINI_AGENT_SKILLS_DIR, | ||
| PROJECT_SKILLS_DIR, | ||
| PROJECT_MINI_AGENT_SKILLS_DIR, | ||
| ] |
There was a problem hiding this comment.
When the current working directory (WORKDIR) is the user's home directory, HOME_SKILLS_DIR and PROJECT_SKILLS_DIR (as well as HOME_MINI_AGENT_SKILLS_DIR and PROJECT_MINI_AGENT_SKILLS_DIR) will point to the exact same paths. This results in duplicate paths in SKILLS_DIRS, causing the skill loader to scan the same directories and parse the same files twice.
Deduplicating the paths while preserving their order avoids this redundant work.
| SKILLS_DIRS = [ | |
| HOME_SKILLS_DIR, | |
| HOME_MINI_AGENT_SKILLS_DIR, | |
| PROJECT_SKILLS_DIR, | |
| PROJECT_MINI_AGENT_SKILLS_DIR, | |
| ] | |
| SKILLS_DIRS: list[Path] = [] | |
| for d in [ | |
| HOME_SKILLS_DIR, | |
| HOME_MINI_AGENT_SKILLS_DIR, | |
| PROJECT_SKILLS_DIR, | |
| PROJECT_MINI_AGENT_SKILLS_DIR, | |
| ]: | |
| if d not in SKILLS_DIRS: | |
| SKILLS_DIRS.append(d) |
Summary
~/.mini-agent/skillsand project.mini-agent/skills.agents/skillssupport.mini-agent/skillsprecedence over.agents/skillswithin the same scopeVerification
make checkmake type-check.agentsand.mini-agentdirectories