plugins/plugin-creator/skills/write-frontmatter-description/SKILL.md
Write or rewrite frontmatter description fields for Claude Code skills and agents. Use when creating new skills/agents, description exceeds 1024 characters, description uses forbidden YAML multiline indicators (>-, |-), description lacks trigger keywords, or when optimizing descriptions for AI tool selection. Ensures descriptions are single-line, complete, informative, third-person, front-loaded with trigger conditions.
npx skillsauth add jamie-bitflight/claude_skills write-frontmatter-descriptionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The model MUST write frontmatter descriptions following these rules.
>-, |-, >, |)uvx skilllint@latest check --fix <file> to auto-fix any YAML formatting issuesThese rules govern what the description must communicate — not just how it is formatted.
SOURCE: Anthropic skill-authoring best practices (docs.anthropic.com, accessed 2026-03-23)
Write in third person. The description is injected into the system prompt as instructions to Claude about when to activate the skill — inconsistent point of view causes discovery problems.
# Correct
description: Generates commit messages by analyzing staged git diffs. Use when the user asks for help writing commit messages.
# Wrong
description: I can help you write commit messages by looking at your staged changes.
# Wrong
description: You can use this to generate commit messages.
Make descriptions slightly directive — models tend to under-trigger skills. Use action words and list specific activation conditions.
Preferred trigger openers: "Use when", "Activates on", "Triggers on", "Apply when"
List specific file types, commands, or task patterns that activate the skill. Vague descriptions produce missed triggers.
The description field is the main mechanism that determines whether a skill loads from 100+ available skills. It matters more than the skill body for routing. Front-load trigger conditions — the most specific activation signals must appear early.
# Bad — vague, no triggers
description: A skill for working with documents
# Bad — too broad, no activation context
description: Helps with Python stuff
# Good — specific activity with named triggers
description: Use when building CLI applications with Typer — creating commands, defining arguments and options, composing subcommands, testing with CliRunner, or using advanced features like callbacks and autocompletion.
# Good — front-loads trigger conditions with action word
description: Validate and fix YAML frontmatter in SKILL.md and agent files. Use when creating new skills or agents, when description exceeds 1024 characters, when description uses forbidden YAML multiline indicators, or when optimizing descriptions for AI tool selection.
Skills and agents have different valid frontmatter fields. Putting a field in the wrong component type causes silent failures.
Skill-only fields (not valid in agent files): user-invocable, disable-model-invocation, argument-hint
Agent-only fields (not valid in skill files): tools, disallowedTools, memory, permissionMode, maxTurns, hooks, color
Shared fields: name, description, model, skills, mcpServers
For the full schema, activate the /plugin-creator:claude-skills-overview-2026 skill (skills) or check Anthropic agent docs (agents).
After writing, validate with skilllint:
uvx skilllint@latest check [file]
development
When an application needs to store config, data, cache, or state files. When designing where user-specific files should live. When code writes to ~/.appname or hardcoded home paths. When implementing cross-platform file storage with platformdirs.
testing
Enforce mandatory pre-action verification checkpoints to prevent pattern-matching from overriding explicit reasoning. Use this skill when about to execute implementation actions (Bash, Write, Edit) to verify hypothesis-action alignment. Blocks execution when hypothesis unverified or action targets different system than hypothesis identified. Critical for preventing cognitive dissonance where correct diagnosis leads to wrong implementation.
tools
Reference guide for the Twelve-Factor App methodology — 15 principles (12 original + 3 modern extensions) for building portable, resilient, cloud-native applications. Use when evaluating application architecture, designing cloud-native services, reviewing codebases for methodology compliance, advising on configuration, scaling, observability, security, and deployment patterns. Incorporates the 2025 open-source community evolution and cloud-native reinterpretations of each factor.
tools
Converts user-facing documentation (how-to guides, tutorials, API references, examples) in any format — Markdown, PDF, DOCX, PPTX, XLSX, AsciiDoc, RST, HTML, Jupyter notebooks, man pages, TOML/YAML/JSON configs, and plain text — into Claude Code skill directories with SKILL.md plus thematically grouped references/*.md files. Use when given a docs directory or mixed-format documentation to transform into an AI skill. Uses MCP file-reader server for binary formats.