Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sk-create-frontmatter

БесплатноБез исполняемых скриптовНе проверен

Own the YAML frontmatter contract: which fields a document class carries, the description budget, and the 4-part version field.

MichelKerkmeesterот MichelKerkmeester★ 40 звёзд на GitHub

Об этом скилле

create-frontmatter

create-frontmatter is the frontmatter workflow packet of the sk-doc family. It owns the contract every other mode writes against: which fields a document class carries, what each field may contain, and how the 4-part version field is derived and inserted.

Six sibling modes emit frontmatter. None of them decides what a frontmatter block is. This mode does, and they cite it.

This mode owns rules, not enforcement. The validators and the versioning engine live in the hub's shared tier because a post-edit hook outside this hub resolves them by path. This mode is where you find out what the validators are checking for and why.


1. WHEN TO USE

Activation Triggers

  • A document needs a frontmatter block and you do not know which fields its class carries.
  • A validator rejected a frontmatter block and the message names a field rather than a fix.
  • A description is over budget and needs trimming without losing its routing signal.
  • A version field needs deriving, inserting or reconciling against a changelog anchor.
  • Someone asks what trigger_phrases, importance_tier or contextType are for.
  • A document class is being added and needs a frontmatter rule of its own.

Keyword triggers: yaml frontmatter, frontmatter block, frontmatter template, frontmatter field, frontmatter fields, trigger_phrases, trigger phrases, importance_tier, contextType, description budget, 4-part version, X.Y.Z.W, frontmatter versioning, frontmatter version, version field, frontmatter validation, missing frontmatter, frontmatter contract, yaml header, goes at the top of the file, version number at the top, importance tier, versioning pass, stopped showing up in suggestions, validator says my file is missing, description too long, edit count, field the validator wants.

When NOT to Use

  • The document itself needs writing. Frontmatter is the block at the top. The mode that owns the document class owns its body.
  • A validator needs changing. The scripts live in the shared tier and are enforcement, not contract. Changing what they check starts here. Changing how they check it does not.
  • The question is which skill to route to. That is the hub router's job.
  • A changelog entry needs writing. The changelog mode owns that, including the version number that appears in its filename.

2. SMART ROUTING

The sk-doc hub resolves a frontmatter-contract request through mode-registry.json. hub-router.json scores the request, the winning workflowMode is sk-create-frontmatter, and the hub loads this SKILL.md first. A request that asks which fields a document class carries, why a validator rejected a block, how a description is trimmed to budget or how the four-part version is derived selects this packet. This mode owns the contract, and the shared tier enforces it. Six sibling modes emit frontmatter, and this packet decides what a block is.

assets/frontmatter-templates.md loads on every path as the field reference and per-class template, and references/frontmatter-versioning.md loads when the question is about version.

A request that matches no registered mode returns UNKNOWN_FALLBACK, never a silent default.

Read ROUTER.md before selecting skill-local resources; open only the matched files.


3. HOW IT WORKS

Author a block

  1. Name the document class. Skill manifest, readme, reference, asset, feature catalog, testing playbook, command, agent or spec doc. The class decides the field set, and guessing it is the usual source of a rejected block.
  2. Copy the class template from the field reference section 4. Do not compose one from memory. Several classes differ by a single field.
  3. Fill description against the budget. It shares a project-wide allowance, and an over-budget description is silently dropped from discovery rather than reported.
  4. Derive version last. It is inserted as the final key before the closing delimiter, which is field-relative and never a fixed line number.
  5. Validate with the shared-tier validator for the surface you are on.

Fix a rejected block

Read what the validator named, then read the class row rather than the field row. Most rejections are a field that is required for one class and forbidden for another, so the field in isolation looks correct. The common fixes are catalogued in section 6 of the field reference: missing block, missing field, wrong field name, malformed delimiters.

Derive a version

The anchor is the higher of the skill's own frontmatter version and its highest changelog filename version, compared as integer tuples. Major and minor are inherited from it, patch is reserved and seeded zero, and build is the file's real edit count.

Real edit count is the rule that matters. It counts commits whose own added-plus-deleted line count for that file is above zero. A naive commit count over-counts, be

Полный SKILL.md на GitHub

Установить sk-create-frontmatter в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Grep
Glob

Вложенные файлы

README.mdROUTER.mdassets/frontmatter-templates.mdassets/frontmatter-values.jsonchangelog/v1.0.0.0.mdchangelog/v1.0.1.0.mdchangelog/v1.0.2.0.mdchangelog/v1.0.3.0.mdchangelog/v1.0.4.0.mdchangelog/v1.0.5.0.mdchangelog/v1.0.6.0.mdchangelog/v1.0.7.0.mdchangelog/v1.0.8.0.mdchangelog/v1.0.9.0.mdmanual-testing-playbook/description-budget/silent-discovery-drop.mdmanual-testing-playbook/description-budget/trim-an-over-budget-description.mdmanual-testing-playbook/description-budget/trim-that-loses-routing-tokens.mdmanual-testing-playbook/field-and-class-resolution/author-a-reference-block.mdmanual-testing-playbook/field-and-class-resolution/class-row-before-field-row.mdmanual-testing-playbook/field-and-class-resolution/out-of-scope-class.mdmanual-testing-playbook/manual-testing-playbook.mdmanual-testing-playbook/version-derivation/changelog-anchored-derivation.mdmanual-testing-playbook/version-derivation/idempotent-rerun.mdmanual-testing-playbook/version-derivation/no-frontmatter-is-skipped.mdmanual-testing-playbook/version-derivation/numstat-gate.mdmanual-testing-playbook/version-derivation/skip-on-differ.mdreferences/README.mdreferences/frontmatter-versioning.md

FAQ

Что делает скилл sk-create-frontmatter?

Own the YAML frontmatter contract: which fields a document class carries, the description budget, and the 4-part version field.

Как установить скилл sk-create-frontmatter?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sk-create-frontmatter запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить sk-create-frontmatter с