Frontmatter has no code-running YAML tags

Finds language tags such as !!python/object, !!python/apply, !!js/function or !!ruby/object in the frontmatter.

ErrorFails on 0 of 4462 indexed skills
share

A YAML tag can run code before anyone reads the skill

YAML has tags that tell some parsers to build a language object, such as a Python object or a JavaScript function. A tool that reads frontmatter with an unsafe parser runs that code the moment it loads the file, before any person or agent reads the skill.

No agent needs these tags. Claude Code, Codex and Cursor read frontmatter as plain values, so a tag like this only makes sense as an attack on whatever tool indexes or installs skills. OWASP's guidance for skill registries is to turn these tags off and use safe parsers.

"Use safe parsers by default — disable dangerous tags (!!python/object, !!python/apply; yaml.load → yaml.safe_load)"
OWASP Agentic Skills Top 10: AST04 Insecure Metadata

Write the value as plain text

Remove the tag and write the value as a plain string. Version numbers and other extra data go under metadata.

This fails:

---
name: pdf-tools
description: Extracts text from PDFs. Use when the user shares a PDF.
version: !!python/object/apply:os.system ["id"]
---

This passes:

---
name: pdf-tools
description: Extracts text from PDFs. Use when the user shares a PDF.
metadata:
  version: "1.0"
---