Yfm

From x-cmd/x-cmd · View interactive version

Yfm is an AI agent skill from the GitHub repository x-cmd/x-cmd. YAML front matter (YFM) for any markdown article. x-cmd's default is three top-level fields: `tags`, `description`, `memo`. Default borrows the Agent Skills frontmatter shape — see <https://agentskills.io/specification>. The yfm module is a helper: `x yfm ls / init / lint`.

How to use this skill

Skill file

yfm — skill0

Adopt YFM

Use YFM for any markdown an agent, index, or ontology pipeline may scan. Follow the existing dialect if one is already in use (Agent Skills, Obsidian, Jekyll, Hugo, etc.) — the x-cmd default applies only when no other dialect governs.

The x-cmd default: three fields

---
tags: [design, front-matter]
description: One-sentence summary a reader uses to decide whether to open this file.
memo:
  2026-07-31T14:30:00+08:00: Cut aliases; renamed third field to memo.
---

# Title

Body...

Applicable scope

Module

The yfm module is a helper. Three commands:

Reading foreign front matter

The collector ingests many dialects. For the spec the default borrows from, see <https://agentskills.io/specification>. Per-dialect:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.