MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / to_prompt

Method to_prompt

mini_agent/tools/skill_loader.py:27–44  ·  view source on GitHub ↗

Convert skill to prompt format

(self)

Source from the content-addressed store, hash-verified

25 skill_path: Optional[Path] = None
26
27 def to_prompt(self) -> str:
28 """Convert skill to prompt format"""
29 # Inject skill root directory path for context
30 skill_root = str(self.skill_path.parent) if self.skill_path else "unknown"
31
32 return f"""
33# Skill: {self.name}
34
35{self.description}
36
37**Skill Root Directory:** `{skill_root}`
38
39All files and references in this skill are relative to this directory.
40
41---
42
43{self.content}
44"""
45
46
47class SkillLoader:

Callers 2

executeMethod · 0.80

Calls

no outgoing calls