Agent skill creator

From ravnhq/ai-toolkit · View interactive version

Agent skill creator is an AI agent skill from the GitHub repository ravnhq/ai-toolkit. Guide for creating effective, portable skills that extend Claude''s capabilities with specialized knowledge, workflows, and tool integrations. Use when: (1) Creating a new skill from scratch, (2) Updating or improving an existing skill, (3) Structuring skill content for progressive disclosure, (4) W

How to use this skill

Skill file

Skill Creator

Create effective, portable skills that work across Claude.ai, Claude Code, and the API. A skill is a folderized instruction set that encodes a reusable workflow once, then applies it consistently.

Skill Structure

skill-name/
├── SKILL.md              # Required: YAML frontmatter + markdown instructions
├── scripts/              # Optional: executable code for deterministic tasks
├── references/           # Optional: docs loaded into context as needed
└── assets/               # Optional: files used in output (templates, images, fonts)

SKILL.md

Two parts:

  1. Frontmatter (YAML) — name and description fields. Always in context. Determines when the skill triggers.
  2. Body (Markdown) — Instructions, workflows, and pointers to bundled resources. Loaded only after triggering.

Bundled Resources

| Directory | Purpose | Loaded into context? |

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

| scripts/ | Executable code (Python/Bash) for deterministic operations | Only when Claude reads them |

| references/ | Documentation Claude consults while working | On demand |

| assets/ | Files used in output (templates, images, fonts) | Never — used directly in output |

Do not include README.md, CHANGELOG.md, or any auxiliary documentation files.

Core Principles

Context Budget

The context window is shared. Only include what Claude does not already know. Prefer concise examples over verbose explanations. Every paragraph must justify its token cost — remove paragraphs that do not.

Hard limit: Keep SKILL.md body under 5,000 words. Move detailed content to references/.

Degrees of Freedom

Match specificity to the task's fragility:

Progressive Disclosure

Three-layer loading minimizes context usage:

  1. Frontmatter (under 100 words) — always in context
  2. SKILL.md body (under 5,000 words) — loaded when skill triggers
  3. Bundled resources (unlimited) — loaded as needed

Keep SKILL.md lean. Split into reference files when exceeding 300 lines. Always reference split files from SKILL.md with clear descriptions of when to read them.

Composability and Portability

Workflow

1. Understand

Gather concrete use cases before building anything.

Entry: User request to create or improve a skill.

Actions:

Exit: Clear understanding of the skill's scope, triggers, and expected outputs.

2. Plan

Determine what reusable resources the skill needs.

Entry: Concrete use cases from Step 1.

Actions:

Exit: List of resources to create and SKILL.md outline.

3. Build

Create the skill folder and write its contents.

Entry: Resource list and SKILL.md outline from Step 2.

Actions:

  1. Create the skill folder following the structure above. If scripts/init_skill.py is available in the environment, use it as a scaffolding accelerator:

```bash

scripts/init_skill.py <skill-name> --path <output-directory>

```

Otherwise, create the folder and SKILL.md manually.

  1. Write bundled resources first — scripts, references, assets. Test scripts by running them. Delete any scaffolding files not needed.
  1. Write SKILL.md:
  1. Delete unused scaffolding — remove example files and empty directories.

Exit: Complete skill folder with all resources and SKILL.md.

4. Test

Validate triggering and output quality.

Entry: Complete skill from Step 3.

Actions:

See references/testing-iteration.md for detailed testing methodology and success criteria.

Exit: Skill triggers on 9 out of 10 relevant prompts and produces consistent output.

5. Iterate

Refine based on real usage.

Entry: Test results or user feedback.

Actions:

Exit: Skill meets success criteria across real-world usage.

Packaging

Package a finished skill as a .skill file (zip with .skill extension). If scripts/package_skill.py is available, use it — it validates and packages automatically:

scripts/package_skill.py <path/to/skill-folder> [output-directory]

Otherwise, zip the skill folder manually ensuring SKILL.md is at the root of the archive.

Reference Guides

Consult these based on the skill's needs:

Examples

Positive Trigger

User: "Create a new skill for converting PDFs to markdown with reusable scripts."

Expected behavior: Follow this skill's workflow — understand use cases, plan resources, build the skill.

Non-Trigger

User: "Find and fix a TypeScript type error in src/api/client.ts."

Expected behavior: Do not use this skill. Choose a more relevant skill or proceed directly.

Troubleshooting

Created Skill Does Not Trigger

Created Skill Is Too Verbose

Output Is Inconsistent Across Sessions

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.