Skill creator

From deadlock-mod-manager/deadlock-mod-manager · View interactive version

Skill creator is an AI agent skill from the GitHub repository deadlock-mod-manager/deadlock-mod-manager. Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, planning, writing, registration, and verification.

How to use this skill

Skill file

<!--

Adapted from skill-creator implementations by Anthropic and OpenAI:

https://github.com/anthropics/skills/tree/main/skills/skill-creator

https://github.com/openai/skills/tree/main/skills/.system/skill-creator

References:

-->

Create a New Skill

Guide the user through creating a new agent skill following the Agent Skills specification. Follow each step in order.

Step 1: Understand the Skill

Gather requirements before writing anything.

Ask the user:

  1. What should this skill do? (one sentence)
  2. When should an agent use it? (trigger phrases users would say)
  3. What tools does the skill need? (Read, Grep, Glob, Bash, Task, WebFetch, etc.)
  4. Where should the skill live? (which plugin or directory)

Determine the skill name:

Choose a complexity tier:

| Tier | Structure | Use When |

| ------------------- | -------------------------- | --------------------------------------------------- |

| Simple | SKILL.md only | Self-contained instructions under ~200 lines |

| With references | SKILL.md + references/ | Domain knowledge that agents load conditionally |

| With scripts | SKILL.md + scripts/ | Workflow automation needing Python scripts |

| Full | All of the above | Complex skills with automation and domain knowledge |

Read ${CLAUDE_SKILL_ROOT}/references/design-principles.md for guidance on keeping skills focused and concise.

Step 2: Plan the Skill

Analyze how each use case would be executed from scratch. Identify what reusable resources would help when executing these tasks repeatedly.

For each concrete example, ask:

  1. What code would be rewritten every time? → candidate for scripts/
  2. What documentation is needed to inform decisions? → candidate for references/
  3. What templates or assets are used in output? → candidate for assets/

Example analysis:

Step 3: Study Existing Skills

Before writing, study 1-2 existing skills that match the chosen tier. Look for skills in the target repository or plugin to understand local conventions.

Read ${CLAUDE_SKILL_ROOT}/references/skill-patterns.md for concrete examples of each tier.

Also read CLAUDE.md (or AGENTS.md) at the repository root for repo-specific conventions that the skill should follow.

Step 4: Write the SKILL.md

Create <skill-directory>/<name>/SKILL.md.

Frontmatter

The YAML frontmatter must be the first thing in the file. No comments or blank lines before ---.

---
name: <skill-name>
description: <what it does>. Use when <trigger phrases>. <key capabilities>.
---

Required fields:

Optional fields:

For Claude Code-specific fields (argument-hint, disable-model-invocation, context, etc.), read ${CLAUDE_SKILL_ROOT}/references/claude-code-extensions.md.

Description Guidelines

The description is the primary trigger mechanism — it determines when agents activate the skill. All "when to use" information belongs here, not in the body.

Write in third person:

Include natural trigger phrases:

# Good — specific triggers users would actually say
description: Security code review for vulnerabilities. Use when asked to "security review", "find vulnerabilities", "check for security issues", "audit security".

# Bad — too vague, no trigger phrases
description: A helpful skill for code quality.

Pattern: <What it does>. Use when <trigger phrases>. <Key capabilities>.

Body Guidelines

Write the body in imperative voice — these are instructions, not documentation.

| Do | Don't |

| -------------------------------------- | ------------------------------------------------------- |

| "Read the file and extract..." | "This skill reads the file and extracts..." |

| "Report only HIGH confidence findings" | "The agent should report only HIGH confidence findings" |

| "Ask the user which option to use" | "You may want to ask the user..." |

Structure:

  1. Start with a one-line summary of what the skill does
  2. Organize steps with ## Step N: Title headings
  3. Use tables for decision logic and mappings
  4. Include concrete examples of expected output
  5. End with validation criteria or exit conditions

For workflow and output patterns, read:

Size limits:

Use consistent terminology — pick one term for each concept and stick with it throughout. Don't alternate between "API endpoint", "URL", "route", and "path".

Attribution

If the skill is based on or adapted from external sources, add an HTML comment after the frontmatter closing ---:

---
name: example
description: ...
---

<!--
Based on [Original Name] by [Author/Org]:
https://github.com/example/original-source
-->

Step 5: Create Supporting Files

What to Include

Only include files that directly support the skill's function.

What NOT to Include

Do not create extraneous documentation or auxiliary files:

A skill should contain only what an agent needs to do the job. Not setup procedures, not user-facing docs, not development history.

References (`references/`)

Use for domain knowledge the agent loads conditionally.

<name>/
├── SKILL.md
└── references/
    ├── topic-a.md
    └── topic-b.md

Reference from SKILL.md with:

Read `${CLAUDE_SKILL_ROOT}/references/topic-a.md` for details on [topic].

Guidelines:

Scripts (`scripts/`)

Use for workflow automation that benefits from structured Python.

<name>/
├── SKILL.md
└── scripts/
    └── do_thing.py

Script requirements:

# /// script
# requires-python = ">=3.12"
# dependencies = ["requests"]
# ///

Assets (`assets/`)

Use for static files used in the skill's output (templates, images, boilerplate code, fonts). These are not loaded into context — they're copied or used directly.

LICENSE

Include a LICENSE file in the skill directory when vendoring content with specific licensing requirements.

Step 6: Validate the Skill

Run the validation script to catch issues early:

uv run ${CLAUDE_SKILL_ROOT}/scripts/quick_validate.py <path/to/skill-directory>

The script checks frontmatter format, required fields, naming rules, and common mistakes. Fix any errors and re-run until validation passes.

Alternatively, use the upstream validation tool:

skills-ref validate <path/to/skill-directory>

Step 7: Register the Skill

Registration steps vary by repository. Check the repository's CLAUDE.md or README.md for specific instructions.

  1. Verify directory-name match — confirm the directory name matches the name field in SKILL.md frontmatter exactly
  2. Update documentation — add the skill to any skills index or table in README.md
  3. Update permissions — if the repo has .claude/settings.json, add Skill(<plugin>:<name>) to the permissions.allow array
  4. Check CLAUDE.md — read the repository's CLAUDE.md for any additional registration steps specific to that project

Step 8: Verify

Run through this checklist before finishing:

Frontmatter

Content

Registration

Scripts (if applicable)

Validation

Report any issues found and fix them before completing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.