skill-creator

Guide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, or tool integrations. Use this skill when the user asks to: (1) create a new skill, (2) make a skill, (3) build a skill, (4) set up a skill, (5) initialize a skill, (6) scaffold a skill, (7) update or modify an existing skill, (8) validate a skill, (9) learn about skill structure, (10) understand how skills work, or (11) get guidance on skill design patterns. Trigger on phrases like "create a skill", "new skill", "make a skill", "skill for X", "how do I create a skill", or "help me build a skill".

Install
npx skills add 'https://github.com/langchain-ai/deepagents/tree/main/libs/code/examples/skills/skill-creator'
Download bundle ↓
main · 229ffefScanned 2026-09-17

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

scripts/quick_validate.py

scripts/quick_validate.pyBrowse 3 files
View on GitHub
← Back to SKILL.md
#!/usr/bin/env python3"""Quick validation script for skills - minimal version. For deepagents CLI, skills are located at:~/.deepagents/<agent>/skills/<skill-name>/ Example:```pythonpython quick_validate.py ~/.deepagents/agent/skills/my-skill```""" import reimport sysfrom pathlib import Path import yaml  def validate_skill(skill_path):    """Basic validation of a skill.     Returns:        Tuple of (is_valid, message) where is_valid is bool and message            describes result.    """    skill_path = Path(skill_path)     # Check SKILL.md exists    skill_md = skill_path / "SKILL.md"    if not skill_md.exists():        return False, "SKILL.md not found"     # Read and validate frontmatter    content = skill_md.read_text()    if not content.startswith("---"):        return False, "No YAML frontmatter found"     # Extract frontmatter    match = re.match(r"^---\n(.*?)\n---", content, re.DOTALL)    if not match:        return False, "Invalid frontmatter format"     frontmatter_text = match.group(1)     # Parse YAML frontmatter    try:        frontmatter = yaml.safe_load(frontmatter_text)        if not isinstance(frontmatter, dict):            return False, "Frontmatter must be a YAML dictionary"    except yaml.YAMLError as e:        return False, f"Invalid YAML in frontmatter: {e}"     # Define allowed properties    ALLOWED_PROPERTIES = {        "name",        "description",        "license",        "compatibility",        "allowed-tools",        "metadata",    }     # Check for unexpected properties (excluding nested keys under metadata)    unexpected_keys = {str(key) for key in frontmatter if key not in ALLOWED_PROPERTIES}    if unexpected_keys:        unexpected_str = ", ".join(sorted(unexpected_keys))        allowed_str = ", ".join(sorted(ALLOWED_PROPERTIES))        return False, (            f"Unexpected key(s) in SKILL.md frontmatter: {unexpected_str}. "            f"Allowed properties are: {allowed_str}"        )     # Check required fields    if "name" not in frontmatter:        return False, "Missing 'name' in frontmatter"    if "description" not in frontmatter:        return False, "Missing 'description' in frontmatter"     # Extract name for validation    name = frontmatter.get("name", "")    if not isinstance(name, str):        return False, f"Name must be a string, got {type(name).__name__}"    name = name.strip()    if name:        # Check naming convention (hyphen-case: lowercase with hyphens)        if not re.match(r"^[a-z0-9-]+$", name):            return (                False,                (                    f"Name '{name}' should be hyphen-case "                    "(lowercase letters, digits, and hyphens only)"                ),            )        if name.startswith("-") or name.endswith("-") or "--" in name:            return (                False,                (                    f"Name '{name}' cannot start/end with hyphen "                    "or contain consecutive hyphens"                ),            )        # Check name length (max 64 characters per spec)        if len(name) > 64:            return (                False,                f"Name is too long ({len(name)} characters). Maximum is 64 characters.",            )     # Extract and validate description    description = frontmatter.get("description", "")    if not isinstance(description, str):        return False, f"Description must be a string, got {type(description).__name__}"    description = description.strip()    if description:        # Check for angle brackets        if "<" in description or ">" in description:            return False, "Description cannot contain angle brackets (< or >)"        # Check description length (max 1024 characters per spec)        if len(description) > 1024:            return (                False,                (                    f"Description is too long ({len(description)} characters). "                    "Maximum is 1024 characters."                ),            )     # Extract and validate compatibility (max 500 characters per spec)    compatibility = frontmatter.get("compatibility", "")    if isinstance(compatibility, str):        compatibility = compatibility.strip()        if len(compatibility) > 500:            return (                False,                (                    f"Compatibility is too long ({len(compatibility)} characters). "                    "Maximum is 500 characters."                ),            )     return True, "Skill is valid!"  if __name__ == "__main__":    if len(sys.argv) != 2:        print("Usage: python quick_validate.py <skill_directory>")        sys.exit(1)     valid, message = validate_skill(sys.argv[1])    print(message)    sys.exit(0 if valid else 1) 
Referenced from SKILL.md