Agent skill

write-frontmatter-description

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 contains colons that trigger quoting, 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.

Stars 33
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/Jamie-BitFlight/claude_skills/tree/main/plugins/plugin-creator/skills/write-frontmatter-description

SKILL.md

The model MUST write frontmatter descriptions following these rules.

Formatting Rules

  1. Single-line only — Never use YAML multiline indicators (>-, |-, >, |)
  2. No colons — Avoid colons (:) as they trigger YAML quoting. Rephrase or substitute.
  3. Front-load critical info — First 1024 characters are most important
    • Claude Code may truncate to 1024 chars in some contexts
    • No hard limit, but keep key information in first 1024 chars
    • Convey purpose, triggers, and value early

Authoring Rules

These 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)

1. Third-Person Phrasing

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.

yaml
# 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.

2. Directive Trigger Language

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.

3. Description Is the Primary Router

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.

4. Concrete Examples

yaml
# 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.

Schema Field Awareness

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).

Validation

After writing, validate with skilllint:

sh
uvx skilllint@latest check [file]

Expand your agent's capabilities with these related and highly-rated skills.

Jamie-BitFlight/claude_skills

ccc

This skill should be used when code search is needed (whether explicitly requested or as part of completing a task), when indexing the codebase after changes, or when the user asks about ccc, cocoindex-code, or the codebase index. Trigger phrases include 'search the codebase', 'find code related to', 'update the index', 'ccc', 'cocoindex-code'.

33 4
Explore
Jamie-BitFlight/claude_skills

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

33 4
Explore
Jamie-BitFlight/claude_skills

delegate

Quick delegation template for sub-agent prompts. Use when assigning work to a sub-agent, before invoking the Agent tool, or when preparing prompts for specialized agents. Provides the WHERE-WHAT-WHY framework. For comprehensive delegation guidance, activate the agent-orchestration how-to-delegate skill.

33 4
Explore
Jamie-BitFlight/claude_skills

swarm-spawning

Spawn agents and teammates in Claude Code swarms. Use when choosing between subagents vs teammates, selecting agent types (Explore, Plan, general-purpose, plugin agents), configuring spawn backends (in-process, tmux, iterm2), or setting environment variables for spawned agents.

33 4
Explore
Jamie-BitFlight/claude_skills

knowledge-explorer

Manage the research/ knowledge base (KB) of tool and library research entries. Use when browsing KB topics, adding new research entries, updating existing entries with dated revisions, fetching GitHub repo metadata into a draft KB entry, or migrating old-format entries to skill-spec frontmatter. Triggers on tasks like "what do we have on X", "add this to the KB", "update the KB entry for Y", "fetch github info for owner/repo", or "migrate old entries".

33 4
Explore
Jamie-BitFlight/claude_skills

design-anti-patterns

Enforce anti-AI UI design rules based on the Uncodixfy methodology. Use when generating HTML, CSS, React, Vue, Svelte, or any frontend UI code. Prevents "Codex UI" — the generic AI aesthetic of soft gradients, floating panels, oversized rounded corners, glassmorphism, hero sections in dashboards, and decorative copy. Applies constraints from Linear/Raycast/Stripe/GitHub design philosophy: functional, honest, human-designed interfaces. Triggers on: UI generation, dashboard building, frontend component creation, CSS styling, landing page design, or any task producing visual interface code.

33 4
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results