write-a-skill

Create structured AI agent skills from SKILL.md definitions and templates.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/danievanzyl/code-skills --skill write-a-skill-danievanzyl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-a-skill
Source: https://github.com/danievanzyl/code-skills/tree/main/skills/write-a-skill
Command: npx skills add https://github.com/danievanzyl/code-skills --skill write-a-skill-danievanzyl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a repeatable framework for creating, documenting, and validating new agent skills, ensuring they follow a consistent structure and include necessary resources.

Core Features & Use Cases

  • Guidance on SKILL.md frontmatter (name, description) and a standard file layout (SKILL.md, REFERENCE.md, EXAMPLES.md, and optional scripts/, references/, assets/).
  • Templates and best practices for writing skills, including when to split content and how to organize reference materials.
  • Real-world use: a team drafts a new skill for a domain, then folds it into the repository with minimal churn and clear discovery metadata.

Quick Start

Draft a SKILL.md with a concise description and include optional references and scripts as needed.

Frequently Asked Questions about write-a-skill

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

FAQPage Schema
How do I structure an AI agent skill for consistent discovery and loading?

Structuring an agent skill requires a standard directory layout with a SKILL.md file, frontmatter, and optional folders for references and scripts to ensure consistent loading. The skill provides a repeatable skeleton for this exact purpose.

What is the recommended file layout for writing new agent skills?

The recommended file layout for writing agent skills includes SKILL.md, REFERENCE.md, EXAMPLES.md, and optional directories like scripts/, references/, and assets/. This structure organizes content and reference materials for clear discovery metadata.

How do I write frontmatter for a SKILL.md definition?

Writing SKILL.md frontmatter involves defining the skill name and a concise description at the top of the file. The skill provides templates and best practices to guide authors through creating this metadata.

Can I include optional scripts and references when authoring agent skills?

Yes, you can include optional scripts and references when authoring agent skills by organizing them in dedicated directories. The skill framework supports adding these resources alongside the main SKILL.md file with minimal churn.

When should I split content into separate reference files for skill documentation?

You should split content into separate reference files when the skill documentation becomes too dense for a single file. The skill provides best practices on when to divide content and how to organize reference materials effectively.

What's the best way to draft a domain-specific skill for a team repository?

The best way to draft a domain-specific skill for a team is to start with a concise SKILL.md definition using provided templates. This approach allows the team to fold the new skill into the repository with clear discovery metadata.