best-practices-for-agent-skills

Optimizes Agent Skill SKILL.md creation and validation for reliable execution.

252|52|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/duotify/GitHubClawToolkit --skill best-practices-for-agent-skills
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: best-practices-for-agent-skills
Source: https://github.com/duotify/GitHubClawToolkit/tree/main/.agents/skills/best-practices-for-agent-skills
Command: npx skills add https://github.com/duotify/GitHubClawToolkit --skill best-practices-for-agent-skills

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps skill authors write professional-grade Skill YAML frontmatter and lean, well-structured SKILL.md bodies to improve discoverability and execution reliability.

Core Features & Use Cases

  • Provides a structured blueprint for skill layout (SKILL.md, scripts/, references/, assets/).
  • Offers optimization tips for frontmatter naming, trigger phrases, and instructions to support robust agent routing and deterministic behavior.
  • Use cases include authoring, editing, or reviewing skills to ensure consistency and validation workflows.

Quick Start

Create a new skill with lean SKILL.md frontmatter and offload heavy context to references/ when needed.

Frequently Asked Questions about best-practices-for-agent-skills

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

FAQPage Schema
How do I validate YAML frontmatter for agent skills?

Agent skill frontmatter validation requires checking the name and description fields for exact structure, ensuring trigger phrases support robust routing, and verifying that heavy context is offloaded to keep the SKILL.md body lean.

What is the best way to structure an agent skill SKILL.md file?

The best way to structure an agent skill SKILL.md is placing name and description in the frontmatter, keeping the body lean, and offloading heavy context to optional references/, scripts/, and assets/ directories loaded on demand.

Do I need any dependencies to author agent skills?

No dependencies are required to author agent skills. You only need to create a SKILL.md file with optimized YAML frontmatter and optional references/, scripts/, or assets/ directories to ensure discoverability and reliable execution.

When should I use references and scripts directories in skill authoring?

Use references/, scripts/, and assets/ directories during skill authoring when you need to offload heavy context from the lean SKILL.md body, allowing the agent to load complex instructions or assets on demand.

Why does my agent skill fail to trigger reliably during execution?

Agent skills fail to trigger reliably when the YAML frontmatter lacks optimized naming conventions, clear trigger phrases, or structured instructions needed to support robust agent routing and deterministic behavior.

Can I use existing markdown files to create agent skills?

Yes, you can adapt existing markdown files into agent skills by adding validated YAML frontmatter with name and description fields, restructuring the body to be lean, and moving heavy context to references or scripts.