MCPcopy Create free account
hub / github.com/modelscope/ms-agent / _is_skill_directory

Method _is_skill_directory

ms_agent/skill/loader.py:92–103  ·  view source on GitHub ↗

Check if a directory is a valid skill directory. Args: path: Path to check Returns: True if directory contains SKILL.md file

(self, path: Path)

Source from the content-addressed store, hash-verified

90 return all_skills
91
92 def _is_skill_directory(self, path: Path) -> bool:
93 """
94 Check if a directory is a valid skill directory.
95
96 Args:
97 path: Path to check
98
99 Returns:
100 True if directory contains SKILL.md file
101 """
102 skill_md = path / 'SKILL.md'
103 return skill_md.exists() and skill_md.is_file()
104
105 def _load_single_skill(self, skill_dir: Path) -> Optional[SkillSchema]:
106 """

Callers 3

load_skillsMethod · 0.95
_scan_and_load_skillsMethod · 0.95
reload_skillMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected