apply-anthropic-skill-best-practices

Applies Anthropic's official authoring best practices to review and improve SKILL.md files.

1.5k|154|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/NeoLabHQ/context-engineering-kit --skill apply-anthropic-skill-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apply-anthropic-skill-best-practices
Source: https://github.com/NeoLabHQ/context-engineering-kit/tree/main/plugins/customaize-agent/skills/apply-anthropic-skill-best-practices
Command: npx skills add https://github.com/NeoLabHQ/context-engineering-kit --skill apply-anthropic-skill-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing effective agent skills is hard: vague descriptions hurt discoverability, bloated SKILL.md files waste context tokens, and poorly structured references cause agents to miss critical information. This Skill codifies Anthropic's official skill authoring guidelines so you can audit or author skills that agents reliably discover and follow.

Core Features & Use Cases

  • Metadata Optimization: Guidance for writing discovery-friendly name and description fields, including third-person phrasing, gerund naming conventions, and trigger keywords.
  • Progressive Disclosure Patterns: Concrete patterns for structuring SKILL.md with one-level-deep references, tables of contents, and domain-organized reference files to minimize token usage.
  • Workflow & Evaluation Design: Checklist-based workflows, validation feedback loops, template/examples patterns, and evaluation-driven iteration using a two-Claude (author/tester) process.
  • Use Case: You wrote a custom skill but the agent rarely triggers it or ignores half its instructions. Run this Skill to review the description wording, restructure oversized content into reference files, and add a validation loop.

Quick Start

Review my skill at plugins/my-skill/SKILL.md against Anthropic's best practices and suggest improvements.

Frequently Asked Questions about apply-anthropic-skill-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a good skill description for agent discovery?

Write the description in third person, stating both what the skill does and when to use it, with specific trigger keywords. Avoid vague phrases like "helps with documents" and first- or second-person phrasing, since the description is injected into the system prompt for skill selection.

How long should a SKILL.md file be?

Keep the SKILL.md body under 500 lines for optimal performance. When approaching that limit, split content into separate reference files linked directly from SKILL.md so the agent loads details only when needed.

What naming convention should I use for agent skills?

Use gerund form (verb + -ing), such as "Processing PDFs" or "Analyzing spreadsheets". Noun phrases and action-oriented names are acceptable alternatives, but avoid vague names like "Helper" or "Utils" and keep naming consistent across your skill collection.

Can I nest reference files inside other reference files?

Avoid nesting references more than one level deep from SKILL.md. Agents may partially read deeply nested files using preview commands, resulting in incomplete information. Link all reference files directly from SKILL.md.

How do I test whether my skill actually works?

Use evaluation-driven development: create test scenarios before writing documentation, establish a baseline without the skill, then iterate. Test with every model you plan to use, since instructions that work for a powerful model may lack detail needed by a faster one.

Why should skill scripts handle errors instead of failing?

Scripts should handle error conditions explicitly, such as creating missing files or falling back to defaults, rather than throwing errors back to the agent. This "solve, don't punt" pattern keeps workflows deterministic and avoids forcing the agent to guess recovery steps.