Get the FREE Ultimate OpenClaw Setup Guide →

create-skill

npx machina-cli add skill launchdarkly/agent-skills/create-skill --openclaw
Files (1)
SKILL.md
5.9 KB

Create a LaunchDarkly Skill

You're using a skill that will guide you through adding a new skill to the LaunchDarkly agent-skills repository. Your job is to explore existing skills to understand the patterns, assess what the new skill needs, create it following conventions, and verify it validates correctly.

Prerequisites

  • Access to the LaunchDarkly agent-skills repo (or a fork)
  • Understanding of the workflow you want to encode
  • Python 3.x (for validation scripts)

Core Principles

  1. Explore First: Look at existing skills before creating. Match their structure and style.
  2. Job to Be Done: Every skill should clearly state what job it helps accomplish.
  3. References for Details: Keep SKILL.md focused on the workflow. Move deep content to references/.
  4. Validate Before Commit: Run validation scripts to catch issues.

Workflow

Step 1: Explore Existing Skills

Before creating anything, understand how skills are structured in this repo.

  1. Browse the skills directory.

    • Look at skills/feature-flags/ and other categories
    • Note the directory layout: skills/<category>/<skill-name>/
    • Each skill has SKILL.md and optionally references/, README.md, marketplace.json
  2. Read 1–2 similar skills.

    • If adding a feature-flag skill, read launchdarkly-flag-create or launchdarkly-flag-cleanup
    • If adding an AI-config skill, read those under ai-configs/ if present
    • Observe: job-to-be-done intro, workflow steps, Core Principles, Edge Cases, What NOT to Do, References
  3. Check the template.

    • Read template/SKILL.md.template for the expected structure
    • The template reflects the workflow-based pattern used across skills

See Skill Structure for the full structure guide.

Step 2: Assess What's Needed

Based on the user's request and your exploration:

  1. Choose category and name.

    • Category: feature-flags, ai-configs, skill-authoring, or new category
    • Name: lowercase, hyphens only, under 64 chars (e.g., my-new-skill)
    • Directory: skills/<category>/<skill-name>/
  2. Identify the job to be done.

    • What does the user want to accomplish?
    • What should the agent explore, assess, and verify?
    • What references will the skill need?
  3. Plan the workflow.

    • Step 1: Explore (what to look for)
    • Step 2: Assess (decision table or logic)
    • Step 3: Execute (with references)
    • Step 4: Verify (what the agent actually does)

See Frontmatter & Metadata for required fields.

Step 3: Create the Skill

  1. Create the directory.

    skills/<category>/<skill-name>/
    
  2. Create SKILL.md.

    • Copy template/SKILL.md.template into the new directory
    • Fill in frontmatter: name (must match folder name), description, compatibility, metadata
    • Write the job-to-be-done intro and workflow steps
    • Link to references for detailed content
    • Keep SKILL.md under 500 lines
  3. Add references.

    • Create references/ directory
    • Add reference files for implementation details, API patterns, decision guides
    • Link from SKILL.md
  4. Add supporting files (optional).

    • README.md — short description, link to SKILL.md
    • marketplace.json — if publishing to a marketplace (see existing skills for format)
  5. Update repo docs.

    • Add the skill to the table in README.md
    • If the skill requires specific tools, document them in the skill

See Skill Structure for file layout and content guidelines.

Step 4: Update the Catalog

Regenerate the skills catalog so the new skill is discoverable:

python3 scripts/generate_catalog.py

This updates skills.json. Commit the updated file with your new skill.

Step 5: Verify

Confirm the skill is valid and complete:

  1. Run validation:

    python3 scripts/validate_skills.py
    

    Fix any reported errors (frontmatter, naming, length limits).

  2. Run tests (if present):

    python3 -m unittest discover -s tests
    
  3. Check structure:

    • SKILL.md exists and has valid frontmatter
    • name in frontmatter matches directory name
    • References are linked and exist
    • README.md table includes the new skill
  4. Report results:

    • ✓ Skill created and validates
    • ✓ Catalog updated
    • ⚠️ Flag any validation issues or missing pieces

Edge Cases

SituationAction
name doesn't match folder nameFix folder name or frontmatter so they match exactly
SKILL.md over 500 linesMove detailed content into references/
Category doesn't existCreate skills/<new-category>/ and add the skill
Marketplace.json neededCopy format from launchdarkly-flag-create/marketplace.json
Validation failsFix the specific error (often frontmatter or naming)
Catalog not regeneratedRun python3 scripts/generate_catalog.py before commit

What NOT to Do

  • Don't create a skill without exploring existing ones first
  • Don't put long implementation details in SKILL.md — use references
  • Don't forget to run validate_skills.py before committing
  • Don't skip updating README.md and the catalog
  • Don't use internal-only links or tools unless the skill is internal-only

References

Source

git clone https://github.com/launchdarkly/agent-skills/blob/main/skills/skill-authoring/create-skill/SKILL.mdView on GitHub

Overview

The create-skill skill guides you through adding a new skill to the LaunchDarkly agent-skills repository. It emphasizes exploring existing skills to match patterns, structuring SKILL.md with the required frontmatter, and validating before commit.

How This Skill Works

You’ll first explore the skills directory and read existing SKILL.md templates to understand structure. Then you plan the new skill’s category, name, and job-to-be-done, create the directory, copy the template, fill frontmatter, document the workflow, add references, and finally run validation scripts before committing.

When to Use It

  • When creating a new skill in the agent-skills repository
  • When adding a skill to the catalog and aligning with repo conventions
  • When drafting a SKILL.md for a new capability
  • When planning references and deep details under references/
  • When validating SKILL.md with provided scripts before commit

Quick Start

  1. Step 1: Explore existing skills in skills/ and read template/SKILL.md.template
  2. Step 2: Plan category/name, job-to-be-done, and the workflow steps
  3. Step 3: Create the directory, copy the template, fill frontmatter, add workflow and references, then run validation

Best Practices

  • Explore existing skills first to match structure and style
  • Clearly state the job-to-be-done in the intro of the SKILL.md
  • Keep SKILL.md focused on workflow; move deep details to references/
  • Fill frontmatter accurately: name, description, compatibility, metadata
  • Validate before commit and update repo docs (README) as needed

Example Use Cases

  • Create a new skill directory under skills/feature-flags and add SKILL.md
  • Read 1–2 similar skills to mirror workflow steps and edge cases
  • Add a references/ directory with implementation details and decision guides
  • Update the main README to include the new skill in the table
  • Run the validation scripts to verify structure and content before commit

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers