write-a-skill

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing a well-formed agent skill requires knowing the correct SKILL.md frontmatter format, description conventions, and file structure, which is easy to get wrong without guidance. ## Core Features & Use Cases - Structured Skill Authoring: Guides you through gathering requirements, drafting SKILL.md, and reviewing the result with a checklist. - Description Best Practices: Explains how to write trigger-based descriptions so agents can discover the skill correctly. - Use Case: You want to build a new skill for extracting data from spreadsheets. Use this Skill to scaffold the directory, write a compliant SKILL.md with proper frontmatter, and decide when to add scripts or split content into reference files. ## Quick Start Help me create a new agent skill for converting Markdown documents to HTML with proper structure and description.

Frequently Asked Questions about write-a-skill

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

FAQPage Schema
How do I create a new agent skill?

Create a directory containing a SKILL.md file with YAML frontmatter defining a name and description, followed by Markdown instructions. Optionally add scripts, reference files, or examples, then review against a checklist for triggers, length, and consistency.

What should a skill description include?

A skill description should state 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 content covers distinct domains, or when advanced features are rarely needed. Move detailed documentation to REFERENCE.md and examples to EXAMPLES.md, keeping references one level deep.

Why is my agent not picking the right skill?

The description is the only text the agent sees when selecting skills, so vague descriptions cause mismatches. Include concrete trigger phrases like "Use when working with PDF files" so the agent can distinguish your skill from similar ones.