MCPcopy Index your code
hub / github.com/MiniMax-AI/Mini-Agent / discover_skills

Method discover_skills

mini_agent/tools/skill_loader.py:194–214  ·  view source on GitHub ↗

Discover and load all skills in the skills directory Returns: List of Skills

(self)

Source from the content-addressed store, hash-verified

192 return content
193
194 def discover_skills(self) -> List[Skill]:
195 """
196 Discover and load all skills in the skills directory
197
198 Returns:
199 List of Skills
200 """
201 skills = []
202
203 if not self.skills_dir.exists():
204 print(f"⚠️ Skills directory does not exist: {self.skills_dir}")
205 return skills
206
207 # Recursively find all SKILL.md files
208 for skill_file in self.skills_dir.rglob("SKILL.md"):
209 skill = self.load_skill(skill_file)
210 if skill:
211 skills.append(skill)
212 self.loaded_skills[skill.name] = skill
213
214 return skills
215
216 def get_skill(self, name: str) -> Optional[Skill]:
217 """

Callers 6

create_skill_toolsFunction · 0.95
skill_loaderFunction · 0.95
test_discover_skillsFunction · 0.95
test_get_skillFunction · 0.95

Calls 1

load_skillMethod · 0.95

Tested by 5

skill_loaderFunction · 0.76
test_discover_skillsFunction · 0.76
test_get_skillFunction · 0.76