askill
frontmatter-query

frontmatter-querySafety 90Repository

Query YAML frontmatter across markdown files. REQUIRED for discovering and filtering markdown files by metadata — do NOT use raw grep, awk, or sed to parse frontmatter. Use when listing frontmatter fields across files, searching for files by metadata key-value pairs, or counting tag/category distributions.

0 stars
1.2k downloads
Updated 3/8/2026

Package Files

Loading files...
SKILL.md

Frontmatter Query

Use ${CLAUDE_PLUGIN_ROOT}/scripts/frontmatter-query to query YAML frontmatter in markdown files. Do NOT parse frontmatter manually with grep, awk, or sed.

Subcommands

List all frontmatter

${CLAUDE_PLUGIN_ROOT}/scripts/frontmatter-query list path/to/dir
${CLAUDE_PLUGIN_ROOT}/scripts/frontmatter-query list path/to/file.md

Returns a JSON array of {path, ...metadata} for every .md file with frontmatter.

Search by key-value

${CLAUDE_PLUGIN_ROOT}/scripts/frontmatter-query search path/ -k allowed-tools -v Bash
${CLAUDE_PLUGIN_ROOT}/scripts/frontmatter-query search path/ -k tags -v python

Filters to files where the key matches the value. Matching is case-insensitive and supports list membership (e.g., a tags: [python, cli] field matches -v python).

Count tag values

${CLAUDE_PLUGIN_ROOT}/scripts/frontmatter-query tags path/
${CLAUDE_PLUGIN_ROOT}/scripts/frontmatter-query tags path/ -k allowed-tools

Returns {"value": count, ...} sorted by count descending. Defaults to the tags key; use -k to aggregate a different key.

Shared flags

FlagEffect
--limit NReturn at most N results
--bodyInclude markdown body in output
--keys k1,k2Only include these frontmatter keys (plus path)

Typical workflow

  1. Discoverfrontmatter-query list skills/ to see all skill metadata
  2. Filterfrontmatter-query search skills/ -k allowed-tools -v Bash to find skills using Bash
  3. Read — Use the Read tool on specific files from the results

Exit codes

  • 0: Success
  • 1: Bad usage / invalid arguments
  • 2: Path not found

Hook auto-approval

Commands using ${CLAUDE_PLUGIN_ROOT}/scripts/frontmatter-query can be auto-approved in Claude Code hooks. This is safe because the script is read-only (stdout output only, no disk writes).

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

78/100Analyzed 3/10/2026

Well-structured technical reference skill for querying YAML frontmatter in markdown files. Provides comprehensive documentation with clear subcommands, examples, flags, and workflow guidance. The skill is highly actionable with specific command examples and a typical workflow section. However, it's tied to a specific plugin environment (`${CLAUDE_PLUGIN_ROOT}`) and the tags seem misaligned. The depth and plugin-specific nature suggest some internal-only characteristics, but it's generally reusable across projects using the frontmatter-query tool.

90
85
75
80
85

Metadata

Licenseunknown
Version-
Updated3/8/2026
PublisherSt0nefish

Tags

github-actionsllm