MCPcopy Create free account
hub / github.com/SpaceZephyr/myskill / main

Function main

skill-creator/scripts/package_skill.py:85–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84
85def main():
86 if len(sys.argv) < 2:
87 print("Usage: python utils/package_skill.py <path/to/skill-folder> [output-directory]")
88 print("\nExample:")
89 print(" python utils/package_skill.py skills/public/my-skill")
90 print(" python utils/package_skill.py skills/public/my-skill ./dist")
91 sys.exit(1)
92
93 skill_path = sys.argv[1]
94 output_dir = sys.argv[2] if len(sys.argv) > 2 else None
95
96 print(f"📦 Packaging skill: {skill_path}")
97 if output_dir:
98 print(f" Output directory: {output_dir}")
99 print()
100
101 result = package_skill(skill_path, output_dir)
102
103 if result:
104 sys.exit(0)
105 else:
106 sys.exit(1)
107
108
109if __name__ == "__main__":

Callers 1

package_skill.pyFile · 0.70

Calls 1

package_skillFunction · 0.85

Tested by

no test coverage detected