agentleFS
pablodiazjorgepablodiazjorge/prompt-forge/.github/skills/skill-creator/SKILL.md

skill-creator

Skill2 starsChanged 5 months agoMITView on GitHub

Create, update, review, fix, or debug Agent Skills following the agentskills.io specification and prompt-forge conventions. Use when the user wants to add a new skill, improve an existing skill, or when ai-engineer promotes an issue to a new skill. Covers frontmatter format, description writing, body structure, token estimation, and progressive disclosure patterns.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use context7-efficient, skill-share and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hfzarslanSkill

    context7-efficient

    Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.

    Also in 5 projects that use this

  • ArogyaReddySkill

    skill-share

    A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

    Also in 20 projects that use this

  • bkootazSkill

    artifacts-builder

    Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

    Also in 39 projects that use this

  • seedprodSkill

    goplaces

    Query Google Places API (New) via the goplaces CLI for text search, place details, resolve, and reviews. Use for human-friendly place lookup or JSON output for scripts.

    Also in 5 projects that use this

  • seedprodSkill

    things-mac

    Manage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database). Use when a user asks OpenClaw to add a task to Things, list inbox/today/upcoming, search tasks, or inspect projects/areas/tags.

    Also in 5 projects that use this

  • JetBrainsSkill

    slack-gif-creator

    Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack.

    Also in 93 projects that use this

  • +1 more from seedprod

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 0 are common, 12 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always include them when creating a new skill.

    line 77
  2. Distinctive:

    Must not start or end with a hyphen

    line 87
  3. Very specific:

    Must not contain consecutive hyphens (--)

    line 88
  4. Distinctive:

    Follow these patterns from the agentskills.io best practices:

    line 127
  5. Distinctive:

    Do not explain what a PDF is or how HTTP works.

    line 130
  6. Distinctive:

    When the agent needs to produce output in a specific format, provide a concrete Markdown template.

    line 149
  7. Very specific:

    After writing the body, count its characters and divide by 4 to estimate tokens.

    line 161
  8. Very specific:

    Use the agent create_file tool to write SKILL.md to the new directory under .github/skills/<name>/.

    line 176
  9. Distinctive:

    After creating the skill, verify:

    line 179
  10. Very specific:

    When updating a skill, use replace_string_in_file to make targeted edits.

    line 188
  11. Very specific:

    Always include 3-5 lines of surrounding context in the match string.

    line 189
  12. Distinctive:

    Fix: Ensure exactly three dashes on the first and last line of the frontmatter block.

    line 196
  13. Distinctive:

    Fix: Add "Use when..." followed by specific user intents or task descriptions.

    line 203
  14. Very specific:

    Fix: Use | (literal block scalar) for multi-line descriptions.

    line 206
  15. Distinctive:

    If a skill is not triggering when it should:

    line 211
  16. Very specific:

    Check the description field.

    line 213
  17. Very specific:

    Check disable-model-invocation.

    line 216
  18. Distinctive:

    Consider whether the description is too narrow or too broad.

    line 218
  19. Distinctive:

    Read the description aloud as if you were the agent scanning skills.

    line 221
  20. Distinctive:

    Before finalizing a new skill, verify:

    line 226

“Common” is measured: kept by at least 6 in 10 of the 179 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Creator

When to Use This Skill

Activate this skill when:

  • The user asks to create, add, or write a new Agent Skill
  • The ai-engineer promotes an issue and the routing table says to create a new skill
  • An existing skill needs its frontmatter fixed, its description improved, or its body restructured
  • The user asks "how do I write a good skill" or similar

The Agent Skills Standard

prompt-forge skills follow the agentskills.io specification, an open format supported by Claude Code, GitHub Copilot, OpenAI Codex, Cursor, Gemini CLI, and many others.

Directory Structure

Each skill is a directory under .github/skills/ containing a SKILL.md file. The directory name must match the name field in the frontmatter.

.github/skills/<skill-name>/
├── SKILL.md          # Required: YAML frontmatter + Markdown body
├── scripts/          # Optional: executable code the agent can run
├── references/       # Optional: additional docs loaded on demand
└── assets/           # Optional: templates, images, data files

Frontmatter Specification

The SKILL.md file begins with YAML frontmatter between --- delimiters. The agentskills.io spec defines these fields:

FieldRequiredConstraints
nameYesMax 64 chars. Lowercase letters, numbers, hyphens only. Must match directory name.
descriptionYesMax 1024 chars. Describes what the skill does AND when to use it.
licenseNoSPDX identifier or reference to bundled license file
compatibilityNoMax 500 chars. Environment requirements (OS, packages, network)
metadataNoArbitrary key-value map. Use for extended attributes.
allowed-toolsNoExperimental. Space-separated list of pre-approved tools.
disable-model-invocationNoIf true, skill loads only on explicit user request, not automatic trigger

prompt-forge Extended Metadata

prompt-forge adds these fields inside metadata for every skill:

FieldPurpose
metadata.authorGitHub username of the skill author
metadata.urlCanonical URL for the skill source
metadata.versionSemantic version string
metadata.tokensEstimated token count of the Markdown body (4 chars per token)
metadata.sourcesComma-separated list of reference URLs used to build the skill

These fields are optional per the spec but required by prompt-forge convention. Always include them when creating a new skill.

Creating a New Skill

Step 1: Choose the Name

The name must match the directory that will contain the skill.

Rules:

  • Lowercase letters, numbers, and hyphens only
  • Must not start or end with a hyphen
  • Must not contain consecutive hyphens (--)
  • Max 64 characters

Good names: pdf-processing, data-analysis, code-review Bad names: PDF-Processing, -pdf, pdf--processing

Step 2: Write the Description

The description is the most critical field. It is the ONLY information the agent has when deciding whether to activate the skill. A poorly written description means the skill never triggers, or triggers on irrelevant tasks.

A good description:

  • States what the skill does in concrete terms
  • Includes specific keywords the agent should match against
  • Mentions the context or user intent that should trigger it
  • Is between 50 and 300 characters

Example of a strong description:

description: |
  Create, update, review, fix, or debug Agent Skills following the
  agentskills.io specification and prompt-forge conventions. Use when
  the user wants to add a new skill, improve an existing skill, or when
  ai-engineer promotes an issue to a new skill. Covers frontmatter
  format, description writing, body structure, token estimation, and
  progressive disclosure patterns.

Example of a weak description:

description: Helps with skills.

Step 3: Structure the Body

The body after the frontmatter contains the instructions the agent follows. Follow these patterns from the agentskills.io best practices:

Add what the agent lacks, omit what it knows. Do not explain what a PDF is or how HTTP works. The agent already knows. Focus on project-specific conventions, non-obvious edge cases, and particular tool choices.

Include a gotchas section. The highest-value content is environment-specific facts that defy reasonable assumptions. If the agent would get something wrong without being told, put it in a gotchas section.

Favor procedures over declarations. Teach the agent how to approach a class of problems, not what to produce for a specific instance. "Read the schema file, join tables using the _id foreign key convention, and format results as a Markdown table" is reusable. "Join orders to customers on customer_id" works only for one query.

Provide defaults, not menus. Pick a recommended approach and mention alternatives only when necessary.

Use templates for output format. When the agent needs to produce output in a specific format, provide a concrete Markdown template. Agents pattern-match well against structures.

Use checklists for multi-step workflows. An explicit checklist helps the agent track progress and avoid skipping steps.

Keep the body under 500 lines and 5,000 tokens. Move detailed reference material to references/ files. The agent loads the full body on activation; every token competes for attention.

Step 4: Estimate Token Count

After writing the body, count its characters and divide by 4 to estimate tokens. This is the standard ratio for English text. Set the result in metadata.tokens, rounded to the nearest 0.1k.

PowerShell verification command:

$body = ($content -split '---', 3)[2]
$tokens = [Math]::Round($body.Length / 4)
$k = [Math]::Round($tokens / 100, 1)
Write-Host "$k k"

Step 5: Create the Files

Use the agent create_file tool to write SKILL.md to the new directory under .github/skills/<name>/. The directory must not already exist.

After creating the skill, verify:

  • The directory name matches the name field exactly
  • The description includes both WHAT and WHEN
  • The metadata block has all five prompt-forge fields
  • The token count is measured, not guessed
  • The body uses the structural patterns described above

Updating an Existing Skill

When updating a skill, use replace_string_in_file to make targeted edits. Always include 3-5 lines of surrounding context in the match string. After editing, re-measure the token count and update metadata.tokens if it changed by more than 0.1k.

Fixing Common Frontmatter Issues

Problem: The frontmatter --- delimiter is missing or malformed. Fix: Ensure exactly three dashes on the first and last line of the frontmatter block. No spaces before or after.

Problem: The name field does not match the directory name. Fix: Rename either the directory or the field. They must match exactly.

Problem: The description does not include trigger conditions. Fix: Add "Use when..." followed by specific user intents or task descriptions.

Problem: The description uses > instead of | for multi-line text. Fix: Use | (literal block scalar) for multi-line descriptions. The > folded scalar may collapse newlines, making the description harder to read.

Debugging Skill Activation

If a skill is not triggering when it should:

  1. Check the description field. Does it contain keywords the user's request would match? If the user says "I need to extract text from this PDF" but the description says "Document processing utilities," the match may fail.
  2. Check disable-model-invocation. If true, the skill only activates on explicit user request, never automatically.
  3. Consider whether the description is too narrow or too broad. Too narrow: misses valid triggers. Too broad: activates on irrelevant tasks, crowding out other skills.
  4. Read the description aloud as if you were the agent scanning skills. Would you know when to use it?

Skill Creation Checklist

Before finalizing a new skill, verify:

  • Directory name matches name field (lowercase, hyphens, max 64 chars)
  • description states what the skill does AND when to use it (50-300 chars)
  • license is set (use MIT for prompt-forge skills)
  • metadata.author is set to a GitHub username
  • metadata.url points to the canonical source
  • metadata.version uses semantic versioning
  • metadata.tokens is measured, not estimated by eye
  • Body is under 500 lines
  • Body includes a gotchas section if there are non-obvious pitfalls
  • Body favors procedures over specific one-off instructions
  • No content explains things the agent already knows

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.