Skill Creator 标志

Skill Creator

社区
HazAT
skill-creator

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.

Add to TypingMind

概览

发布者HazAT
代码仓库pi-config
技能名称skill-creator
星标数
450
复刻数
44
附带文件
6
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 6 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 HazAT 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Skill Creator AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/HazAT/pi-config/tree/main/skills/skill-creator
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HazAT/pi-config.git /tmp/pi-config
mkdir -p .claude/skills
cp -r /tmp/pi-config/skills/skill-creator .claude/skills/skill-creator
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Skill Creator,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Skill Creator。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Skill Creator 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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:

  • Lowercase letters, digits, and hyphens only (a-z, 0-9, -)
  • 1-64 characters; must not start or end with -; no consecutive hyphens (--)
  • Descriptive and unique among existing skills
  • Prefer action-oriented names: processing-pdfs, fix-issue, code-review
  • Check the target skills directory to avoid name collisions

Choose a complexity tier:

TierStructureUse When
SimpleSKILL.md onlySelf-contained instructions under ~200 lines
With referencesSKILL.md + references/Domain knowledge that agents load conditionally
With scriptsSKILL.md + scripts/Workflow automation needing Python scripts
FullAll of the aboveComplex 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:

  • "Rotate a PDF" → rotating requires rewriting the same code → scripts/rotate_pdf.py
  • "Query BigQuery metrics" → need table schemas each time → references/schema.md
  • "Build a frontend app" → same boilerplate HTML/React → assets/hello-world/

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 ---.

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

Required fields:

  • name — must match the directory name exactly
  • description — up to 1024 chars, no angle brackets (< or >); include trigger keywords that help agents match user intent

Optional fields:

  • allowed-tools — comma-separated list (e.g., Read, Grep, Glob, Bash); omit to allow all tools
  • license — license name or path (add when vendoring external content)
  • metadata — arbitrary key-value mapping for additional metadata
  • compatibility — environment requirements (max 500 chars); most skills don't need this

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:

  • Good: "Processes Excel files and generates reports. Use when..."
  • Bad: "I can help you process Excel files" or "You can use this to..."

Include natural trigger phrases:

yaml
# 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.

DoDon'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:

  • ${CLAUDE_SKILL_ROOT}/references/workflow-patterns.md — sequential workflows, feedback loops, plan-validate-execute
  • ${CLAUDE_SKILL_ROOT}/references/output-patterns.md — template, examples, and structured data patterns

Size limits:

  • Keep SKILL.md under 500 lines (< 5000 tokens recommended)
  • If approaching the limit, move reference material to references/ files
  • Load reference files conditionally based on context (not all at once)

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 ---:

markdown
---
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:

  • README.md, INSTALLATION_GUIDE.md, QUICK_REFERENCE.md, CHANGELOG.md

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:

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

Guidelines:

  • Keep each reference file focused on one topic
  • Keep references one level deep from SKILL.md (no nested reference chains)
  • For files over 100 lines, add a table of contents at the top
  • For files over 10k words, include grep search patterns in SKILL.md
  • Information should live in either SKILL.md or references, not both

Scripts (scripts/)

Use for workflow automation that benefits from structured Python.

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

Script requirements:

  • Always use uv run to execute: uv run ${CLAUDE_SKILL_ROOT}/scripts/do_thing.py
  • Add PEP 723 inline metadata for dependencies:
python
# /// script
# requires-python = ">=3.12"
# dependencies = ["requests"]
# ///
  • Output structured JSON for agent consumption
  • Run from the repository root, not the skill directory
  • Document the script's interface in SKILL.md (arguments, output format)
  • Handle errors explicitly — don't punt to the agent

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:

bash
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:

bash
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

  • name matches directory name
  • name uses only lowercase letters, digits, hyphens (no leading/trailing/consecutive hyphens)
  • description is under 1024 characters, no angle brackets
  • description is in third person and includes trigger keywords
  • All "when to use" info is in description, not in body
  • No content before the opening ---

Content

  • SKILL.md is under 500 lines
  • Written in imperative voice
  • Steps are numbered and clear
  • Examples of expected output included
  • Consistent terminology throughout
  • Reference files loaded conditionally (not unconditionally)
  • No extraneous files (README.md, CHANGELOG.md, etc.)

Registration

  • Directory name matches frontmatter name
  • Skill added to repo documentation (README or equivalent)
  • Permissions updated (if applicable)
  • Any repo-specific registration steps completed (check CLAUDE.md)

Scripts (if applicable)

  • Uses uv run ${CLAUDE_SKILL_ROOT}/scripts/...
  • Has PEP 723 inline metadata
  • Outputs structured JSON
  • Handles errors explicitly
  • Documented in SKILL.md

Validation

  • uv run ${CLAUDE_SKILL_ROOT}/scripts/quick_validate.py passes
  • Tested with a real usage scenario

Report any issues found and fix them before completing.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Skill Creator AI 技能有什么作用?

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.

为什么在 TypingMind 中使用 Skill Creator?

因为您只需安装一次,就能搭配任何模型使用。Skill Creator 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Skill Creator?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/HazAT/pi-config/tree/main/skills/skill-creator。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Skill Creator?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Skill Creator 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Skill Creator 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Skill Creator AI 技能免费吗?

是的。HazAT 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇