sk-create-frontmatter
БесплатноБез исполняемых скриптовНе проверенOwn the YAML frontmatter contract: which fields a document class carries, the description budget, and the 4-part version field.
от 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
descriptionis over budget and needs trimming without losing its routing signal. - A
versionfield needs deriving, inserting or reconciling against a changelog anchor. - Someone asks what
trigger_phrases,importance_tierorcontextTypeare 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
- 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.
- Copy the class template from the field reference section 4. Do not compose one from memory. Several classes differ by a single field.
- Fill
descriptionagainst the budget. It shares a project-wide allowance, and an over-budget description is silently dropped from discovery rather than reported. - Derive
versionlast. It is inserted as the final key before the closing delimiter, which is field-relative and never a fixed line number. - 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
Установить sk-create-frontmatter в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGrepGlobВложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic