write-a-skill

Create new agent skills with structured SKILL.md files and bundled resources.

Updated May 28, 2026
One-click install
npx skills add https://github.com/changfengpro/agent-skills --skill write-a-skill-changfengpro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-a-skill
Source: https://github.com/changfengpro/agent-skills/tree/main/skills/write-a-skill
Command: npx skills add https://github.com/changfengpro/agent-skills --skill write-a-skill-changfengpro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing a well-formed agent skill requires knowing the correct SKILL.md structure, frontmatter rules, description conventions, and when to split content into scripts or reference files. This Skill guides you through that process so new skills are discoverable and correctly structured. ## Core Features & Use Cases - Guided Skill Authoring: Walks through requirement gathering, drafting, and user review for new skills. - Structure Templates: Provides a SKILL.md template, directory layout, and description-writing rules with good and bad examples. - Splitting Guidance: Explains when to add utility scripts and when to split content into separate reference files. - Use Case: You want to build a new skill for extracting data from spreadsheets. Use this Skill to draft the SKILL.md with a proper description, decide whether scripts are needed, and validate the result against the review checklist. ## Quick Start Help me write a new skill that converts Markdown documents into styled HTML pages.

Frequently Asked Questions about write-a-skill

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

FAQPage Schema
How do I write a SKILL.md file for an agent skill?

Start with YAML frontmatter containing a name and description, then add a Markdown body with a quick start, workflows, and advanced features. Keep the file under 100 lines and split longer content into separate reference files.

What makes a good skill description for agent discovery?

A good description states what the skill does in the first sentence and when to trigger it in the second, using specific keywords and contexts. Keep it under 1024 characters, write in third person, and avoid vague phrases like "helps with documents."

When should I add scripts to a skill?

Add utility scripts when operations are deterministic, such as validation or formatting, when the same code would be generated repeatedly, or when errors need explicit handling. Scripts save tokens and improve reliability over generated code.

When should I split skill content into separate files?

Split content when SKILL.md exceeds 100 lines, when the content covers distinct domains, or when advanced features are rarely needed. Move detailed documentation into files like REFERENCE.md and link them from the main file.

What should I check before finalizing a new skill?

Verify the description includes trigger phrases, SKILL.md stays under 100 lines, there is no time-sensitive information, terminology is consistent, concrete examples are included, and references go only one level deep.