Skip to content
FramesField
FIX 50 · AGENTS, MCP & DESIGN-TO-CODE
raw .md ↗ Verified Dec 1, 2026

Fix Claude Code and Cursor Ignoring Installed SKILL.md Files

Direct Fix: Install pure raw bytes from /raw/skills/<slug> into <host-dir>/skills/<kebab-name>/SKILL.md (uppercase), verify line 1 starts with --- plus valid kebab-case name and quoted trigger-rich description, strip BOM/CRLF, and restart the host session.
Exact Error / Visual Signature
Installed skill missing from Claude Code /skills list or Cursor Agent Skills panel | Agent ignores all rules silently | head -n 1 SKILL.md prints "# Title" or "<!DOCTYPE html>" instead of "---"
OBSERVED SYMPTOM

You downloaded a SKILL.md rulebook into your repository for FFmpeg, Tailwind v4 tokens, or C2PA auditing, yet Claude Code, Cursor, or Codex completely ignores its constraints—producing hardcoded hex classes, skipping ffprobe verification, or never showing the skill as discoverable.

TECHNICAL ROOT CAUSE

Agent skill loaders strictly require a dedicated directory per skill containing uppercase SKILL.md inside the host’s exact discovery folder (.claude/skills/<name>/SKILL.md, .cursor/skills/<name>/SKILL.md, or .agents/skills/<name>/SKILL.md), starting on byte 0 of line 1 with valid YAML frontmatter (name + concrete trigger description)—which breaks silently when users curl HTML/.md doc wrappers, flatten files, or write unquoted YAML colons.

Copy-Paste Verified Fix

Cross-Host SKILL.md Discovery, YAML Frontmatter & Raw Payload Validator validate-skills.sh
#!/usr/bin/env bash
set -euo pipefail

# Scans .claude/skills, .cursor/skills, and .agents/skills for silent discovery bugs
node <<'NODE'
const fs = require("node:fs");
const path = require("node:path");

const roots = [".claude/skills", ".cursor/skills", ".agents/skills"];
let found = 0;
let errors = 0;

for (const root of roots) {
  if (!fs.existsSync(root)) continue;
  for (const entry of fs.readdirSync(root, { withFileTypes: true })) {
    const full = path.join(root, entry.name);
    if (!entry.isDirectory()) {
      console.error(`FAIL [${full}]: Flat file inside skills root. Move to ${root}/<kebab-name>/SKILL.md`);
      errors++;
      continue;
    }
    const skillPath = path.join(full, "SKILL.md");
    if (!fs.existsSync(skillPath)) {
      console.error(`FAIL [${full}]: Missing exact uppercase SKILL.md inside folder`);
      errors++;
      continue;
    }
    found++;
    const raw = fs.readFileSync(skillPath);
    if (raw[0] === 0xef && raw[1] === 0xbb && raw[2] === 0xbf) {
      console.error(`FAIL [${skillPath}]: UTF-8 BOM hides opening --- delimiter`);
      errors++;
    }
    const text = raw.toString("utf8");
    if (text.includes("\r\n")) {
      console.error(`FAIL [${skillPath}]: Windows CRLF line endings detected (convert to LF)`);
      errors++;
    }
    if (/^<!DOCTYPE|<html/i.test(text.trimStart())) {
      console.error(`FAIL [${skillPath}]: Contains HTML page instead of raw SKILL.md payload`);
      errors++;
      continue;
    }
    const fm = text.match(/^---\n([\s\S]*?)\n---\n/);
    if (!fm) {
      console.error(`FAIL [${skillPath}]: Line 1 does not start with valid --- YAML frontmatter`);
      errors++;
      continue;
    }
    const name = (fm[1].match(/^name:\s*["']?([^"'\n]+)["']?/m) || [])[1]?.trim();
    const desc = (fm[1].match(/^description:\s*(.+)$/m) || [])[1]?.trim();
    if (!name || !/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(name)) {
      console.error(`FAIL [${skillPath}]: Invalid name "${name || ""}" (must be lowercase kebab-case)`);
      errors++;
    }
    if (!desc || desc.length < 30) {
      console.error(`FAIL [${skillPath}]: Missing or too-short description (<30 chars) for reliable triggering`);
      errors++;
    } else if (!/^["']/.test(desc) && desc.includes(": ")) {
      console.error(`FAIL [${skillPath}]: Unquoted colon inside description breaks YAML parsing — wrap in quotes`);
      errors++;
    } else {
      console.log(`PASS [${skillPath}]: name=${name} | desc=${desc.length}c`);
    }
  }
}

console.log(`\nChecked ${found} SKILL.md files -> ${errors} errors`);
process.exit(errors > 0 ? 1 : 0);
NODE

Before vs. After (Broken Pattern vs. Verified Fix)

Broken · Broken Install (Curled Doc Wrapper, Flat File & Unquoted YAML Colon)
# WRONG 1: Curling /skills/*.md downloads web wrapper prose instead of raw SKILL.md
# WRONG 2: Flat filename missing <name>/SKILL.md subfolder
curl -fsSL https://framesfield.com/skills/design-tokens-tailwind-v4-skill.md \
  -o .claude/skills/tailwind-tokens.md

# WRONG 3: Unquoted colon & vague description breaks YAML parsing / routing
---
name: Tailwind_Tokens
description: Rules: use tokens
---
Verified · Verified Install (Raw Endpoint + Nested Uppercase SKILL.md + Clean YAML)
# 1. Create dedicated kebab-case folder & download pure /raw/skills/<slug> bytes
mkdir -p .claude/skills/design-tokens-tailwind-v4
curl -fsSL https://framesfield.com/raw/skills/design-tokens-tailwind-v4-skill \
  -o .claude/skills/design-tokens-tailwind-v4/SKILL.md

# 2. Valid line-1 frontmatter with kebab-case name & rich trigger description
---
name: design-tokens-tailwind-v4
description: "Enforce 3-tier CSS tokens in Tailwind v4 @theme inline, ban arbitrary hex classes, and verify dark-mode WCAG AA contrast."
---

Why this works: Using the raw payload endpoint guarantees byte 0 starts with ---, nested uppercase SKILL.md satisfies Claude Code/Cursor/Codex discovery scanners, and quoting a keyword-rich description prevents YAML parse failures and routing misses.

Under the Hood

Why This Failure Happens in Real Pipelines

Modern coding agents implement progressive disclosure for skills: at session boot, the harness scans known skill directories and reads ONLY the YAML frontmatter block (name and description) from each SKILL.md file to build a lightweight routing index. If a file fails discovery or YAML parsing, most clients drop it quietly without crashing the chat session so you never see an obvious syntax error—your agent simply behaves as if the file does not exist.

In real creative repositories, five recurring setup mistakes account for nearly every silent skill failure. First, downloading a documentation wrapper URL (such as /skills/ffmpeg-loudness-conform.md or an HTML GitHub blob URL) instead of the pure raw payload endpoint (/raw/skills/<slug>) puts HTML tags or a Markdown # Heading on line 1 instead of ---. Second, saving the file flat (.claude/skills/ffmpeg.md) or using lowercase skill.md on case-sensitive Linux/macOS APFS volumes violates the required <skill-name>/SKILL.md directory contract. Third, unquoted colons inside description (description: Fix: broken MP4), uppercase characters in name, UTF-8 BOM headers, or Windows CRLF line endings break strict YAML frontmatter parsers.

Even when a SKILL.md parses cleanly, a vague one-liner description such as "Helps with video files" fails semantic routing during complex prompts because the agent only reads the full Markdown body AFTER deciding the description matches your request. Writing an explicit trigger-rich description naming exact file extensions, tools, and failure modes—and placing Subagent definitions in .claude/agents/<name>.md rather than skills/—ensures reliable activation on pass one.

Step-by-Step Resolution & Verification

  1. 01

    Verify exact nested folder path and uppercase SKILL.md filename

    Confirm every skill sits inside its own kebab-case directory at .claude/skills/<name>/SKILL.md (Claude Code), .cursor/skills/<name>/SKILL.md (Cursor), or .agents/skills/<name>/SKILL.md (Codex/shared)—never flat in the root and never lowercase skill.md.

  2. 02

    Re-download from raw endpoints and validate line-1 YAML frontmatter

    Run validate-skills.sh to catch HTML pages, /skills/*.md doc wrappers, UTF-8 BOMs, CRLF line endings, non-kebab names, or unquoted colons inside description; replace bad copies directly from https://framesfield.com/raw/skills/<slug>.

  3. 03

    Sharpen trigger keywords in description and start a fresh agent session

    Include exact tool names, file types, and tasks in description ("Use when editing Tailwind v4 @theme tokens, CSS variables, or dark mode contrast"), then open a new Claude Code or Cursor chat session so the skill index reloads.

Verification Check · Confirm Zero Frontmatter Errors & Clean Discovery Across Skill Roots
bash validate-skills.sh && head -n 5 .claude/skills/design-tokens-tailwind-v4/SKILL.md
Expected healthy output:
PASS [.claude/skills/design-tokens-tailwind-v4/SKILL.md]: name=design-tokens-tailwind-v4 | desc=194c
Checked 1 SKILL.md files -> 0 errors
---
name: design-tokens-tailwind-v4
description: Architect and enforce a 3-tier semantic CSS design token system...

How to Prevent This Error From Recurring

GUARDRAIL 01

Always install from /raw/skills/<slug>, never from /skills/<slug>.md

Documentation wrapper URLs inject headings and metadata above line 1, silently breaking every YAML frontmatter parser across Claude Code, Cursor, and Codex.

GUARDRAIL 02

Keep Subagents in agents/ and procedural playbooks in skills/

Read-only critic definitions like ui-design-critic.md belong in .claude/agents/ or .cursor/agents/ with an explicit tools field, whereas reusable task procedures belong in skills/<name>/SKILL.md.

GUARDRAIL 03

Run validate-skills.sh in CI whenever contributors add or edit agent rules

Automated YAML and path validation catches a single missing quote or CRLF edit before teammates spend an hour wondering why the agent stopped following studio standards.

Troubleshooting FAQs

Can I keep one canonical copy of SKILL.md for Claude Code, Cursor, and Codex?
Yes. Store canonical skills in .agents/skills/<name>/SKILL.md (supported natively by Codex and shared tooling) and either symlink or copy them into .claude/skills/ and .cursor/skills/ via a small setup script so all editors stay synchronized.
Why did my skill show up in /skills but never trigger automatically on my prompt?
Automatic triggering depends entirely on the YAML description field. If your description is generic or lacks concrete domain nouns and verbs (such as FFmpeg, loudnorm, yuv420p, or Satori), the router skips it—or you can invoke it explicitly by skill name.
Do I need to restart Claude Code or Cursor after adding a new SKILL.md?
Yes. Existing chat sessions cache the initial skill index loaded at startup. Start a fresh conversation (or reload the Cursor window) after adding or editing SKILL.md frontmatter so the updated metadata enters context.
Does the YAML name field have to match the parent directory name?
Yes. Following the open Agent Skills spec—matching lowercase kebab-case folder name and YAML name: field identically (for example, c2pa-provenance-audit/SKILL.md with name: c2pa-provenance-audit)—avoids strict-loader rejections across hosts.
How long should a SKILL.md file be before it hurts agent compliance?
Keep each SKILL.md focused and under ~300–400 lines covering one concrete craft domain. Dumping five unrelated tool rulebooks into a single 2,000-line SKILL.md bloats context and causes the model to overlook critical constraints.
Use this page in AI tools or notes
raw .md