write-a-skill

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

11|2|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/oskrgab/petrodb --skill write-a-skill-oskrgab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-a-skill
Source: https://github.com/oskrgab/petrodb/tree/main/.agents/skills/write-a-skill
Command: npx skills add https://github.com/oskrgab/petrodb --skill write-a-skill-oskrgab

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 when to split content into scripts or reference files. This Skill guides you through gathering requirements, drafting the skill, and reviewing it so the result is discoverable and correctly structured. ## Core Features & Use Cases - Guided Requirements Gathering: Walks through questions about the skill's domain, use cases, and whether it needs scripts or reference materials. - SKILL.md Template and Structure: Provides a standard directory layout and frontmatter template with name, description, quick start, and workflow sections. - Description Writing Rules: Enforces the discovery-critical description format with trigger phrases so agents can select the skill correctly. - Use Case: You want to build a new skill for generating weekly status reports. Use this Skill to draft the SKILL.md, decide whether helper scripts are needed, and validate the result against the review checklist. ## Quick Start Help me create a new skill for generating weekly status reports from project tickets.

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?

Start by gathering requirements about the task domain and use cases, then draft a SKILL.md with YAML frontmatter containing a name and description. Add reference files or scripts only when content exceeds length thresholds or deterministic operations are needed.

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 an operation is 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 a skill into multiple files?

Split content into separate files like REFERENCE.md or EXAMPLES.md when SKILL.md exceeds 100 lines, when content covers distinct domains, or when advanced features are rarely needed. Keep references one level deep.

What are common mistakes when writing a skill?

Common mistakes include vague descriptions without trigger phrases, SKILL.md files over 100 lines, time-sensitive information, inconsistent terminology, and missing concrete examples. Use the review checklist to catch these before finalizing.