agentleFS
ElasticKnown publisherelastic/elastic-docs-skills/.claude/skills/create-skill/SKILL.md

create-skill

Skill72 starsChanged 5 months agoApache-2.0View on GitHub

Interactively create a new Claude Code skill and add it to the elastic-docs-skills catalog. Use when the user wants to generate a new skill, scaffold a slash command, or build automation for docs tasks.

100 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-rule, trigger-dev 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.
  • 32103210Skill

    create-rule

    Create Cursor rules for persistent AI guidance. Use when you want to create a rule, add coding standards, set up project conventions, configure file-specific patterns, create RULE.md files, or asks about .cursor/rules/ or AGENTS.md.

    Also in 9 projects that use this

  • xfstudioSkill

    trigger-dev

    Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.

    Also in 4 projects that use this

  • daianepepes-labSkill

    cost-reducer

    Analyze and reduce costs across cloud infrastructure, code, and services. Use when asked to cut costs, optimize spending, reduce bills, or improve cost efficiency.

    Also in 4 projects that use this

  • daianepepes-labSkill

    know-me

    Build and maintain persistent memory about the user — preferences, context, decisions, and working style. Use when asked to remember something, recall past context, or update user profile.

    Also in 5 projects that use this

  • vikneshwaran16032005-altSkill

    build-premium-website

    Build a premium, animated marketing website (React + Vite + Tailwind + GSAP) for any industry. Use when the user asks to "build a website", "make a landing page for [business]", "build a marketing site", or wants a high-end animated company website. Adapts color, copy, services, and signature animation to the industry.

    Also in 3 projects that use this

  • vikneshwaran16032005-altSkill

    instantly-campaign

    Create a new Instantly cold-email campaign in the proven 5-email structure of the user's top-performing campaign (~16% reply rate). Use when the user wants to launch a new outbound campaign, write a cold email sequence, create an Instantly campaign, draft outreach for a new service or niche, or set up a sales sequence.

    Also in 3 projects that use this

  • +1 more from daianepepes-lab

The file

Show its rules and text

We split this skill into the rules it gives an agent

29 rules. 0 are common, 13 are distinctive, and 16 are very specific to this project.

  • 0

    Common

    Most of the 93 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 16

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before anything else, you MUST understand what the user wants the skill to do.

    line 32
  2. Distinctive:

    Ask the user: "What should this skill do?

    line 34
  3. Very specific:

    If the user provided a skill name via $ARGUMENTS, acknowledge it, but still ask what the skill is for.

    line 36
  4. Very specific:

    If the provided name does not start with docs-, prepend it automatically and tell the user you normalized it to the catalog naming …

    line 38
  5. Distinctive:

    Wait for the user's answer.

    line 40
  6. Very specific:

    Trigger: Should it be user-invocable only (disable-model-invocation: true) or also auto-triggered by Claude?

    line 51
  7. Very specific:

    Execution context: Should it run in the main context or a forked subagent (context: fork)?

    line 54
  8. Very specific:

    Use of $ARGUMENTS or positional args ($0, $1) if the skill accepts input

    line 62
  9. Very specific:

    Every SKILL.md must include the Apache 2.0 license header immediately after the closing --- of the frontmatter:

    line 73
  10. Very specific:

    Write the skill to skills/<category>/<skill-name>/SKILL.md in the catalog.

    line 94
  11. Very specific:

    Before writing the file, validate skill-name:

    line 96
  12. Very specific:

    Must start with docs-.

    line 98
  13. Very specific:

    Must not duplicate an existing skill name in skills//SKILL.md.

    line 99
  14. Distinctive:

    After writing the file:

    line 103
  15. Distinctive:

    Read it back and present the full content to the user

    line 105
  16. Distinctive:

    Ask the user to review it: "Does this look right?

    line 106
  17. Distinctive:

    Do NOT move on until the user confirms they're happy with the result

    line 107
  18. Distinctive:

    If the user requests changes, edit the file and present the updated version again

    line 108
  19. Very specific:

    After the user approves the skill, generate eval test cases as evals/evals.json inside the skill directory.

    line 112
  20. Distinctive:

    Use realistic, substantive prompts (not "do X" — include file paths, context, specifics)

    line 126
  21. Distinctive:

    Test the skill's unique value-add, not things the base model already handles

    line 129
  22. Distinctive:

    If the user suggests additional scenarios, failure modes, or edge cases, add them.

    line 137
  23. Very specific:

    After evals are written, offer to optimize the skill's description field for better triggering accuracy.

    line 141
  24. Distinctive:

    After the skill is created, suggest the following to the user:

    line 156
  25. Very specific:

    If the user agrees, create a branch named add-skill-<skill-name>, commit the new skill directory, push, and open a PR with:

    line 166
  26. Distinctive:

    Keep skill instructions concise and focused — avoid over-engineering

    line 173
  27. Very specific:

    Prefer disable-model-invocation: true for skills with side effects (PRs, commits, deployments)

    line 174
  28. Very specific:

    Use context: fork for research-heavy skills that produce large output

    line 175
  29. Very specific:

    Always include an argument-hint if the skill accepts arguments

    line 176

“Common” is measured: kept by at least 6 in 10 of the 93 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
<!-- Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Elasticsearch B.V. licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->

You are a skill generator for the elastic/elastic-docs-skills catalog. Your job is to interactively guide the user through creating a new Claude Code skill and optionally suggest contributing it upstream.

Process

Step 1: Understand the purpose

Before anything else, you MUST understand what the user wants the skill to do. This is the most important step — do NOT proceed without a clear answer.

Ask the user: "What should this skill do? Describe the task or workflow you want to automate."

If the user provided a skill name via $ARGUMENTS, acknowledge it, but still ask what the skill is for. A name alone is not enough context to generate a useful skill.

If the provided name does not start with docs-, prepend it automatically and tell the user you normalized it to the catalog naming convention.

Wait for the user's answer. If the response is vague (e.g., "help with docs"), ask follow-up questions until you have a concrete understanding of:

  • What problem the skill solves
  • What inputs it needs (files, URLs, arguments)
  • What output or side effects it produces

Step 2: Collect details

Once the purpose is clear, use AskUserQuestion to collect the remaining details (you may batch related questions):

  1. Skill name: A short, kebab-case name that MUST start with docs- (e.g., docs-review-docs, docs-check-applies-to). Suggest one based on the purpose.
  2. Category: Which category does this skill belong to? (e.g., authoring, review, workflow, testing)
  3. Trigger: Should it be user-invocable only (disable-model-invocation: true) or also auto-triggered by Claude?
  4. Tools needed: Which tools should the skill have access to? (e.g., Read, Grep, Bash(gh *))
  5. Accepts arguments?: Does the skill need user input via $ARGUMENTS? If so, what's the hint?
  6. Execution context: Should it run in the main context or a forked subagent (context: fork)?

Step 3: Generate the skill

Based on the answers, generate a well-structured SKILL.md file with:

  • Proper YAML frontmatter including all relevant fields and version: 1.0.0
  • Clear, actionable instructions in the markdown body
  • Use of $ARGUMENTS or positional args ($0, $1) if the skill accepts input

Required frontmatter fields:

---
name: <skill-name>
version: 1.0.0
description: <what the skill does and when to use it>
---

Every SKILL.md must include the Apache 2.0 license header immediately after the closing --- of the frontmatter:

<!-- Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
or more contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright
ownership. Elasticsearch B.V. licenses this file to you under
the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License. -->

Write the skill to skills/<category>/<skill-name>/SKILL.md in the catalog.

Before writing the file, validate skill-name:

  • Must be kebab-case.
  • Must start with docs-.
  • Must not duplicate an existing skill name in skills/**/SKILL.md.

Step 4: Review with the user

After writing the file:

  1. Read it back and present the full content to the user
  2. Ask the user to review it: "Does this look right? Want me to change anything?"
  3. Do NOT move on until the user confirms they're happy with the result
  4. If the user requests changes, edit the file and present the updated version again

Step 5: Generate evals interactively

After the user approves the skill, generate eval test cases as evals/evals.json inside the skill directory. Follow the schema in references/eval-schemas.md.

5a: Draft initial evals

Generate 3-4 evals covering:

  1. Core use case — the happy path the skill is designed for
  2. Edge case — unusual input, boundary condition, or complex scenario
  3. Negative eval — input where the skill should NOT trigger, flag, or produce output. This is critical to prevent false positives and over-triggering. Examples:
    • For a linter/checker: valid input that should pass cleanly
    • For a generator: a request that falls outside the skill's scope
    • For an analyzer: input with nothing to report

Good evals:

  • Use realistic, substantive prompts (not "do X" — include file paths, context, specifics)
  • Have expectations that are discriminating (fail when the skill doesn't work, not just pass for any output)
  • Negative evals should use "Does NOT flag/generate/suggest" expectations
  • Test the skill's unique value-add, not things the base model already handles

5b: Review with the user

Present the evals and ask: "Here are the test cases I'd suggest — including a negative eval to catch false positives. Do these cover the right scenarios, or do you want to add/change any?"

5c: Iterate

If the user suggests additional scenarios, failure modes, or edge cases, add them. Pay special attention to cases the user has seen in practice — real-world failures make the best evals.

Step 6: Optimize the description (optional)

After evals are written, offer to optimize the skill's description field for better triggering accuracy. The description is the primary mechanism that determines whether Claude invokes a skill.

A good description:

  • States what the skill does AND specific contexts for when to use it
  • Is slightly "pushy" to combat under-triggering (Claude tends to not use skills even when they'd help)
  • Includes trigger words users would naturally say

Step 7: Suggest testing and contributing

Once the user approves, suggest testing:

  • Running ./install.sh to install it locally
  • Typing /<skill-name> in Claude Code

Then suggest contributing upstream:

After the skill is created, suggest the following to the user:

Want to share this skill? You can contribute it to the elastic/elastic-docs-skills catalog so other teams can use it too.

I can help you:

  1. Create a branch and commit the new skill
  2. Push it and open a PR against elastic/elastic-docs-skills

Would you like me to do that?

If the user agrees, create a branch named add-skill-<skill-name>, commit the new skill directory, push, and open a PR with:

  • Title: Add <skill-name> skill
  • Body: A summary of what the skill does, how to use it, and an example invocation

Guidelines

  • Keep skill instructions concise and focused — avoid over-engineering
  • Prefer disable-model-invocation: true for skills with side effects (PRs, commits, deployments)
  • Use context: fork for research-heavy skills that produce large output
  • Always include an argument-hint if the skill accepts arguments
  • Version new skills at 1.0.0 — follow SemVer for updates (MAJOR.MINOR.PATCH)

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.