Claude-skill-registry-data markdown-version-extractor
Extracts 'version' or 'uuid' fields from YAML frontmatter using uv.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry-data
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry-data "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/markdown-version-extractor" ~/.claude/skills/majiayu000-claude-skill-registry-data-markdown-version-extractor && rm -rf "$T"
manifest:
data/markdown-version-extractor/SKILL.mdsource content
Markdown Version Extractor
Use this skill to identify the version or UUID of a skill or project stored in Markdown frontmatter. This is a critical dependency for the Version Sync phase of the Persona Protocol.
Capabilities
- Parses YAML frontmatter using the
library.python-frontmatter - Safely extracts versioning identifiers (
oruuid
).version - Provides available metadata keys if the specific version tag is missing.
Execution Logic
The agent MUST use
uv run and MUST provide absolute paths for both the script and the target file.
Command Template:
uv run <absolute_path_to_get_version.py> "<absolute_path_to_target_md_file>"
Guidance for the Agent
- NO DIRECT PYTHON: You are FORBIDDEN from calling
orpython
directly. This script uses PEP 723 inline dependencies that require thepython3
runtime.uv - Absolute Paths: You must resolve the current working directory to provide the full absolute path for:
- The script itself.
- The file being checked.
- Version Identifier Priority:
- The Registry uses the
field.uuid - Local files may use either
orversion
.uuid - If the script returns a
, use that for comparison against the registry'suuid
.uuid
- The Registry uses the
- Error Handling:
- If the output shows
, check thestatus: "missing_tag"
in the JSON. If neithermetadata_keys
noruuid
exists, consider the skill unversioned and trigger an update.version - If the file is missing or not Markdown, report a failure.
- If the output shows