MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

[FEATURE]: Dynamic Skill Loading from ~/.mimocode/skills/

Open tchelissard opened this issue 4 months ago • 1 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Feature Request: Dynamic Skill Loading from ~/.mimocode/skills/

Problem

The available_skills list in the system prompt is hardcoded at startup. Custom skills created in ~/.mimocode/skills/ are not recognized by the skill() tool, even though they exist as valid SKILL.md files.

Current Behavior

# Skills exist in the directory
ls ~/.mimocode/skills/
# browser-automation, sandbox-environment, codebase-onboarding, etc.

# But skill tool only recognizes hardcoded list
skill(name="browser-automation")
# Error: Skill "browser-automation" not found
# Available: autonomous-execution, bug-prevention, code-quality, ...

Expected Behavior

MiMoCode should dynamically scan ~/.mimocode/skills/*/SKILL.md at startup and register all valid skills in the available_skills list.

Proposed Solution

  1. Scan ~/.mimocode/skills/ directory at startup
  2. Validate each SKILL.md has required frontmatter (name, description)
  3. Register valid skills in the available_skills list
  4. Allow users to extend capabilities without modifying core binary

Use Case

Users creating custom skills for their workflow (browser automation, sandbox environments, codebase onboarding, etc.) expect them to be auto-loaded like the built-in skills.

Environment

  • MiMoCode version: 0.1.1
  • Platform: macOS ARM64
  • Shell: zsh

Additional Context

The skills follow the SKILL.md format with proper YAML frontmatter but aren't loaded because the skill registry is static.

tchelissard avatar Jul 09 '26 10:07 tchelissard

Place files

Put a SKILL.md inside a folder. The skill's name comes from its frontmatter—not the folder name—and SKILL.md files are discovered recursively, so you can nest them however you like.

MiMo Code searches these locations:

Project config: .mimocode/skills/**/SKILL.md (the singular skill/ folder also works)
Global config: ~/.config/mimocode/skills/**/SKILL.md
Project compatibility dirs: .claude, .agents, .codex, and .opencode—each scanned at skills/**/SKILL.md
Global compatibility dirs: the same four folders under ~/ (e.g. ~/.claude/skills/**/SKILL.md)

Add more sources with the skills.paths and skills.urls config options.

tayhe avatar Jul 09 '26 14:07 tayhe