Agent skill

Frontmatter Repair

by LearnPrompt in LearnPrompt/LearnPrompt

Repair synthetic MDX frontmatter when title, description, or sidebar.order drift from the frontmatter contract.

Custom licenceAuto-check passedDocuments & Office

Install Frontmatter Repair

skills CLI
$ npx skills add LearnPrompt/LearnPrompt --skill frontmatter-repair -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LearnPrompt/LearnPrompt frontmatter-repair --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LearnPrompt/LearnPrompt.git skills-src && mkdir -p .claude/skills && cp -r skills-src/research/articles/thinking-distillation-boundary/showcase/observable-receipt-distiller/results/live-candidate .claude/skills/frontmatter-repair && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
frontmatter-repair
GitHub stars
2.7k
Token cost
~212 tokens
SKILL.md length
70 words
Files
3 (incl. scripts, references)
Skills in repo
4
Repo updated
First seen
Licence
Custom licence

At a glance

Repair synthetic MDX frontmatter when title, description, or sidebar.order drift from the frontmatter contract.

  • Works in 6 steps: Read the frontmatter contract. → Run node scripts/repair-frontmatter.mjs… → Only repair rules proven by the receipts → …
  • Files that follow the same observable patterns proven in the receipts
  • Runs JavaScript scripts from its folder; calls node
  • Do not use on private transcripts

What it does

Frontmatter Repair is an agent skill from LearnPrompt/LearnPrompt. Repair synthetic MDX frontmatter when title, description, or sidebar.order drift from the frontmatter contract. Use for files that follow the same observable patterns proven in the receipts; do not use on private transcripts, secret-bearing material, or arbitrary YAML.

Its SKILL.md is about 210 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/frontmatter-contract.md`).

It sits in Documents & Office, covering Markdown. The repository describes itself as: 永久免费开源的 AIGC 课程, 目前已支持Claude Code,Codex,Hermes,OpenClaw,Obsidian,Prompt Engineering, ChatGPT, Midjourney, Runway, Stable Diffusion, AI数字人,AI声音&音乐,开源大模型.

When your agent uses it

  • Files that follow the same observable patterns proven in the receipts
  • Do not use on private transcripts
  • Secret-bearing material

Example prompts

  • “/frontmatter-repair”

Requirements

  • Node.js

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Read the frontmatter contract.
  2. Run node scripts/repair-frontmatter.mjs --file .
  3. Only repair rules proven by the receipts
  4. Preserve the body verbatim.
  5. Leave already-valid files unchanged.
  6. If the file contains private transcript material or secret markers, stop and escalate instead of repairing.

What it can do on your machine

Read from SKILL.md and the folder at commit 538921d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Frontmatter Repair loads about 212 tokens when it runs, and up to ~405 if it reads all its reference files. Until then it costs about 72 tokens; SKILL.md has 70 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~212
With references · SKILL.md plus every file in references/, read only if the agent opens them
~405

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 70 words (~212 tokens).

“Repair one synthetic MDX file at a time.”

— opening of SKILL.md by LearnPrompt, Custom licence
name
frontmatter-repair

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (scripts, references) in research/articles/thinking-distillation-boundary/showcase/observable-receipt-distiller/results/live-candidate of LearnPrompt/LearnPrompt.

  • SKILL.md
  • references/frontmatter-contract.md
  • scripts/repair-frontmatter.mjs

Open the folder on GitHubat commit 538921d

Compare with similar skills

Frontmatter Repair next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Frontmatter Repair compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frontmatter Repair this skillLearnPrompt/LearnPrompt2.7k—~212Automated safety check: PassCustom licence
Markdown Article FormatterJimLiu/baoyu-skills27k6 repos~3.5kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Obsidian MarkdownAtmosphere/atmosphere3.8k20 repos~1.3kAutomated safety check: PassApache-2.0
Crosspostingwasp-lang/wasp19k—~1.1kAutomated safety check: PassMIT
Gzh Designisjiamu/gzh-design-skill4k—~2.2kAutomated safety check: PassAGPL-3.0

Similar skills

  • Markdown Article Formatter

    JimLiu/baoyu-skills

    Reformats plain text or Markdown articles with frontmatter, a title, a summary, headings, bold, lists and code blocks, and saves a separate formatted copy.

    27k GitHub starsUsed in 6 repos~3.5k tokens
    Documents & OfficeAuto-check passed
  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Obsidian Markdown

    Atmosphere/atmosphere

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    3.8k GitHub starsUsed in 20 repos~1.3k tokens
    Documents & OfficeAuto-check passed
  • Crossposting

    wasp-lang/wasp

    Crosspost Wasp blog articles (MDX) to DEV.to and Medium. An agent skill from wasp-lang/wasp.

    19k GitHub stars~1.1k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    4k GitHub stars~2.2k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Review The Docs

    supabase/supabase

    Official

    Review Supabase docs changes locally in your supabase/supabase checkout — either an open PR (triage, classify, verify) or your own branch before opening a PR (local self-review).

    111k GitHub stars~4.6k tokensUpdated yesterday
    Documents & OfficeAuto-check passed

More from LearnPrompt/LearnPrompt

  • Learnprompt Single Mdx

    LearnPrompt/LearnPrompt

    Create or rewrite exactly one LearnPrompt Starlight MDX tutorial to the repository's golden-sample standard, with bottom-of-page auditable sources instead of SourceCard, a research pack, evidence…

    2.7k GitHub stars~1.7k tokensUpdated 2 days ago
    Auto-check passed
  • Link To Obsidian

    LearnPrompt/LearnPrompt

    Save a shared web link as a clean Obsidian note. An agent skill from LearnPrompt/LearnPrompt.

    2.7k GitHub stars~257 tokensUpdated 2 days ago
    Auto-check passed
  • Release Brief

    LearnPrompt/LearnPrompt

    从一个 issue 和一段 diff 生成结构化发布摘要,固化“读 issue → 读 diff → 归类改动 → 评估风险 → 写验证步骤”的重复工作流。

    2.7k GitHub stars~179 tokensUpdated 2 days ago
    Auto-check passed

Questions about Frontmatter Repair

What does Frontmatter Repair do?

Repair synthetic MDX frontmatter when title, description, or sidebar.order drift from the frontmatter contract. Frontmatter Repair is an agent skill from LearnPrompt/LearnPrompt.order drift from the frontmatter contract.

When should I use Frontmatter Repair?

Frontmatter Repair fits situations like: files that follow the same observable patterns proven in the receipts; do not use on private transcripts; secret-bearing material.

How do I install Frontmatter Repair in Claude Code?

Run `npx skills add LearnPrompt/LearnPrompt --skill frontmatter-repair -a claude-code`. Or copy the skill folder (research/articles/thinking-distillation-boundary/showcase/observable-receipt-distiller/results/live-candidate in LearnPrompt/LearnPrompt) into .claude/skills/frontmatter-repair in your project. Claude Code loads it when a task matches its description.

How do I install Frontmatter Repair in Codex?

Run `npx skills add LearnPrompt/LearnPrompt --skill frontmatter-repair -a codex`. Or copy the skill folder (research/articles/thinking-distillation-boundary/showcase/observable-receipt-distiller/results/live-candidate in LearnPrompt/LearnPrompt) into .agents/skills/frontmatter-repair in your project. Codex loads it when a task matches its description.

Can I use Frontmatter Repair in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LearnPrompt/LearnPrompt --skill frontmatter-repair -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frontmatter-repair, .gemini/skills/frontmatter-repair, .github/skills/frontmatter-repair and .opencode/skills/frontmatter-repair in your project.

What does Frontmatter Repair need to run?

Going by SKILL.md and its folder, Frontmatter Repair needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node). Our summary lists: Node.js.

Does Frontmatter Repair access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Frontmatter Repair safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Frontmatter Repair use?

Frontmatter Repair has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Frontmatter Repair use?

About 212 tokens (SKILL.md is roughly 848 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 193 tokens, read only when the agent opens those files.

What are the alternatives to Frontmatter Repair?

Skills that share tags, products or a category with Frontmatter Repair: Markdown Article Formatter (JimLiu/baoyu-skills, 27k stars), Markitdown (ImCa0/just-laws, 781 stars), Obsidian Markdown (Atmosphere/atmosphere, 3.8k stars) and Crossposting (wasp-lang/wasp, 19k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frontmatter Repair?

LearnPrompt (a GitHub user) maintains it in LearnPrompt/LearnPrompt, which has 2,686 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 8, 2026.

Source: LearnPrompt/LearnPrompt on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.