MCPcopy Create free account
hub / github.com/aws/aws-cli / read_skill_metadata

Function read_skill_metadata

awscli/customizations/agenttoolkit/utils.py:113–128  ·  view source on GitHub ↗
(skill_dir)

Source from the content-addressed store, hash-verified

111
112
113def read_skill_metadata(skill_dir):
114 path = os.path.join(skill_dir, SKILL_METADATA_FILENAME)
115 try:
116 with open(path) as f:
117 return json.load(f)
118 except FileNotFoundError:
119 return None
120 except json.JSONDecodeError as e:
121 LOG.debug(
122 'Could not parse skill metadata at %s: %s. '
123 'The file may be corrupted; remove or re-install the skill '
124 'to recover.',
125 path,
126 e,
127 )
128 return None
129
130
131def write_skill_metadata(skill_dir, version):

Callers 1

read_installed_versionFunction · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected