Pablo-Lozano-Gil

skill-creator

0
0
# Install this skill:
npx skills add Pablo-Lozano-Gil/battletested-agent-skills --skill "skill-creator"

Install specific skill from multi-skill repository

# Description

>

# SKILL.md


name: skill-creator
description: >
Creates new AI agent skills following the Agent Skills spec.
Trigger: When user asks to create a new skill, add agent instructions, or document patterns for AI.
license: Apache-2.0
metadata:
author: Pablo Lozano [Based on Prowler's skill-creator, licensed under Apache-2.0]
version: "1.0"
allowed-tools: Read, Edit, Write, Glob, Grep, Bash, WebFetch, WebSearch, Task


Skill Creator

When to Create a Skill

Create a skill when:

  • A pattern is used repeatedly and AI needs guidance
  • Project-specific conventions differ from generic best practices
  • Complex workflows need step-by-step instructions
  • Decision trees help AI choose the right approach

Don't create a skill when:

  • Documentation already exists (create a reference instead)
  • Pattern is trivial or self-explanatory
  • It's a one-off task

Skill Structure

{skill-name}/
β”œβ”€β”€ SKILL.md              # Required - main skill file
β”œβ”€β”€ assets/               # Optional - templates, schemas, examples
β”‚   β”œβ”€β”€ template.py
β”‚   └── schema.json
└── references/           # Optional - links to local docs
    └── docs.md           # Points to docs/developer-guide/*.mdx

SKILL.md Template

---
name: {skill-name}
description: >
  {One-line description of what this skill does}.
  Trigger: {When the AI should load this skill}.
license: Apache-2.0
metadata:
  author: {Author name}
  version: "1.0"
---

## When to Use

{Bullet points of when to use this skill}

## Critical Patterns

{The most important rules - what AI MUST know}

## Code Examples

{Minimal, focused examples}

## Commands

```bash
{Common commands}
```
## Resources

- **Templates**: See [assets/](assets/) for {description}
- **Documentation**: See [references/](references/) for local docs

Naming Conventions

Type Pattern Examples
Generic skill {technology} pytest, playwright, typescript
Project-specific skill {component} api, ui, sdk-check
Testing skill test-{component} test-sdk, test-api
Workflow skill {action}-{target} skill-creator, jira-task

Decision: assets/ vs references/

Need code templates?        β†’ assets/
Need JSON schemas?          β†’ assets/
Need example configs?       β†’ assets/
Link to existing docs?      β†’ references/
Link to external guides?    β†’ references/ (with local path)

Key Rule: references/ should point to LOCAL files (docs/developer-guide/*.mdx), not web URLs.


Decision: Project-Specific vs Generic

Patterns apply to ANY project?     β†’ Generic skill (e.g., pytest, typescript)
Patterns are project-specific?     β†’ {project-name}-{skill-name} skill
Generic skill needs project info?  β†’ Add references/ pointing to project docs

Frontmatter Fields

Field Required Description
name Yes Skill identifier (lowercase, hyphens)
description Yes What + Trigger in one block
license Yes Look at the license of the project (LICENSE.md) or Apache-2.0 if not found
metadata.author Yes {Author name}
metadata.version Yes Semantic version as string

Content Guidelines

DO

  • Start with the most critical patterns
  • Use tables for decision trees
  • Keep code examples minimal and focused
  • Include Commands section with copy-paste commands

DON'T

  • Add Keywords section (agent searches frontmatter, not body)
  • Duplicate content from existing docs (reference instead)
  • Include lengthy explanations (link to docs)
  • Add troubleshooting sections (keep focused)
  • Use web URLs in references (use local paths)

Registering the Skill

After creating the skill, add it to AGENTS.md:

| `{skill-name}` | {Description} | [SKILL.md](skills/{skill-name}/SKILL.md) |

Checklist Before Creating

  • [ ] Skill doesn't already exist (check skills/)
  • [ ] Pattern is reusable (not one-off)
  • [ ] Name follows conventions
  • [ ] Frontmatter is complete (description includes trigger keywords)
  • [ ] Critical patterns are clear
  • [ ] Code examples are minimal
  • [ ] Commands section exists
  • [ ] Added to AGENTS.md

Resources

  • Templates: See assets/ for SKILL.md template

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.