Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

create-skill创造技能

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

416

周安装

17

GitHub Stars

64

下载量

133
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-skill(创造技能)
来源仓库:https://github.com/elastic/elastic-docs-skills
仓库路径:skills/create-skill
安装命令:
npx skills add https://github.com/elastic/elastic-docs-skills --skill create-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/elastic/elastic-docs-skills --skill create-skill

简介

create-skill 交互式引导创建符合 elastic-docs-skills 标准的 Claude Code 技能。

  • 适用于贡献新技能到上游仓库的场景。
  • 提供技能用途澄清、README 编写和贡献流程指导。
  • 使用前需理解技能定义和上游仓库贡献规范。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

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)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.58%
按下载量换算51

Claude

28.07%
按下载量换算37

Cursor

20.64%
按下载量换算27

Gemini CLI

10.42%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills