← MCP server and skill grades

agentskills

agentskills/agentskills

A
Type
Repo
Scanned
Nov 17, 2026
Version
83021e2be457
Files read
42

This repository contains the Agent Skills format specification, its documentation site, and skills-ref, a Python reference library and CLI for validating SKILL.md files and formatting skill lists into XML prompts. It does not expose agent tools or network services, and its main code risk is a minor bug in skills-ref where unescaped file paths can break or inject XML into generated prompt blocks.

What it can reach

Files
The skills-ref CLI and library read SKILL.md or skill.md files and inspect directory names at the paths passed to them.
Shell commands
When this repository is opened in Claude Code, .claude/settings.json runs .claude/hooks/session-start.sh at session start to check whether the mint CLI is installed.

Findings

1 low
  1. LowUnescaped file path in generated <location> XML tag

    skills-ref/src/skills_ref/prompt.py:51

    The to_prompt() function builds an <available_skills> XML block meant to be inserted into an agent's system prompt. Although it escapes the skill name and description with html.escape(), it appends skill_md_path directly into <location> without escaping. Because Linux and macOS allow <, >, and & in directory names and parent folder names are not restricted, a folder containing & produces invalid XML, and a crafted directory name inside a cloned repository or archive (for example containing </location></skill>) can break out of the tag and inject arbitrary XML into the prompt.

    Fix: Escape the resolved path using html.escape(str(skill_md_path)) before appending it between <location> and </location>.