Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

skill-builder技能构建

Agent Skill

skill-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

326

周安装

14

GitHub Stars

9

下载量

114
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/aiagentwithdhruv/skills --skill skill-builder

简介

skill-builder 指导技能开发流程,涵盖 frontmatter 配置、子代理调用与钩子机制设计。

  • 适用于技能审计、功能增强或故障排查,提供进阶模式与安全审查建议。
  • 通过 npx skills add 命令安装,内含 shell 命令需人工复核后再执行。
  • 强烈建议阅读完整技术文档后再实施复杂修改,以防破坏现有逻辑。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

What This Skill Does

Guides the creation and optimization of Claude Code skills using official best practices. Use this whenever:

  • Building a new skill from scratch
  • Optimizing or auditing an existing skill
  • Deciding on advanced features (subagent execution, hooks, dynamic context, etc.)
  • Troubleshooting a skill that isn't working correctly

For the complete technical reference on all frontmatter fields, advanced patterns, and troubleshooting, see reference.md.

Quick Start: What Is a Skill?

A skill is a reusable set of instructions that tells Claude Code how to handle a specific task. Skills live in .claude/skills/[skill-name]/SKILL.md inside your project. When you type /skill-name or describe what you need in natural language, Claude loads the skill's instructions and follows them.

Think of skills as SOPs for Claude. Instead of re-explaining a workflow every conversation, you write it once and invoke it forever.

How they work under the hood:

  • Your project's CLAUDE.md instructions are always loaded, every conversation
  • Skill *descriptions* (from frontmatter) are always loaded so Claude knows what's available
  • The full skill content only loads when the skill is actually invoked
  • Once loaded, Claude follows the skill's instructions while still respecting your CLAUDE.md rules

Mode 1: Build a New Skill

When building a new skill, run the Discovery Interview first. Do NOT start writing files until discovery is complete.

Discovery Interview

Ask questions using AskUserQuestion, one round at a time. Each round covers one topic. Move to the next round only after the user answers. Keep going until you're 95% confident you understand the skill well enough to build it without further clarification.

Round 1: Goal & Name *Why this matters: A clear goal prevents scope creep. The name becomes the /slash-command, so it needs to be memorable and specific.*

  • What does this skill do? What problem does it solve or what workflow does it automate?
  • What should we call it? (Suggest a name based on their answer -- lowercase, hyphens, max 64 chars)

Round 2: Trigger *Why this matters: The description field is how Claude decides whether to load your skill. Bad trigger words mean Claude never uses it. Too broad means Claude fires it when you don't want it.*

  • What would someone say to trigger this? (Get 2-3 natural language phrases)
  • Should it be user-only (/slash-command), Claude-auto-invocable, or both?
  • Does it accept arguments? If so, what? (e.g., a topic, a URL, a file path)

Round 3: Step-by-Step Process *Why this matters: Claude follows instructions literally. Vague steps produce vague results. Specific steps produce consistent output every time.*

  • Walk me through exactly what should happen from trigger to output. What's step 1? Step 2? Keep going.
  • For each step: Does Claude do it directly, or delegate to a subagent/script?
  • Does this need to be conversational (back-and-forth with the user) or is it a fire-and-forget task?

Round 4: Inputs, Outputs & Dependencies *Why this matters: Skills that don't specify where to find inputs or where to put outputs produce inconsistent results. Nailing this down makes the skill reliable.*

  • What inputs does the skill need? (Files, API responses, user arguments, live data)
  • What does it produce? (Files, text output, structured data) Where do outputs go?
  • Does it need external APIs, scripts, or tools? Which ones?
  • Does it need reference files, style guides, templates, or examples?

Round 5: Guardrails & Edge Cases *Why this matters: Skills without guardrails can produce unexpected behavior -- wrong outputs, unnecessary API costs, or actions you didn't intend.*

  • What could go wrong? What are the common failure modes?
  • What should this skill NOT do? Any hard boundaries?
  • Are there cost concerns? (API calls, AI image generation, etc.)
  • Any ordering or dependency constraints? (e.g., "must check X before doing Y")

Round 6: Confirmation *Why this matters: Misunderstandings caught here save you from rebuilding the skill later.*

After all rounds, summarize your understanding back to the user in this format:

## Skill Summary: [name]

**Goal:** [one sentence]
**Trigger:** `/name` + [natural language phrases]
**Arguments:** [what it accepts, or "none"]

**Process:**
1. [step]
2. [step]
...

**Inputs:** [what it reads/needs]
**Outputs:** [what it produces + where]
**Dependencies:** [APIs, scripts, agents, reference files]
**Guardrails:** [what can go wrong, what to avoid]

Ask: "Does this capture it? Anything to add or change?" Only proceed to building once the user confirms.

Skipping rounds: If the user provides enough context upfront (e.g., they describe the full workflow in their first message), skip rounds that are already answered. Don't re-ask what you already know.

Build Phase

Once discovery is complete, build the skill following these steps:

Step 1: Choose the skill type

  • Task skills (most common) give step-by-step instructions for a specific action. Invoked with /name or natural language. Examples: generate a report, summarize a PR, deploy code.
  • Reference skills add knowledge Claude applies to current work without performing an action. Examples: coding conventions, API patterns, style guides.

Step 2: Configure frontmatter

Set these fields based on what you learned in discovery:

  • name -- Matches the directory name. Lowercase, hyphens, max 64 chars.
  • description -- Written as: "Use when someone asks to [action], [action], or [action]." Include natural keywords from the trigger phrases.
  • disable-model-invocation: true -- Set if the skill has side effects (file generation, API calls, costs money). Prevents Claude from auto-invoking.
  • argument-hint -- Set if the skill accepts arguments. Shows in the / menu autocomplete.
  • context: fork + agent -- Set if the skill is self-contained and doesn't need conversation history.
  • model -- Set if a specific model capability is needed.
  • allowed-tools -- Set if the skill should have restricted tool access.

Only set fields you actually need. Don't add frontmatter just because you can.

For the full field reference and invocation control matrix, see reference.md.

Step 3: Write the skill content

Structure task skills as:

  1. Context -- Files to read, APIs to call, reference material to load
  2. Step-by-step workflow -- Numbered steps. Each step tells Claude exactly what to do.
  3. Output format -- What the result looks like. Include templates, file paths, structured formats.
  4. Notes -- Edge cases, constraints, what to delegate, what NOT to do.

Content rules:

  • Keep SKILL.md under 500 lines. Move detailed reference material to supporting files.
  • Use $ARGUMENTS / $N for dynamic input from arguments.
  • Use !command`` for dynamic context injection (preprocessing).
  • Be specific about agent delegation -- include exact prompt text.
  • Specify all file paths (inputs, outputs, scripts, references).

Step 4: Add supporting files (if needed)

If your skill needs detailed reference docs, examples, or scripts, add them alongside SKILL.md in the same directory. Reference them from SKILL.md so Claude knows they exist. Supporting files are NOT loaded automatically -- they load only when Claude needs them. See reference.md for the full pattern.

Step 5: Document in CLAUDE.md

Your project's CLAUDE.md file is where Claude loads project-wide instructions every conversation. After creating a skill, add a brief entry so you (and your team) know what's available:

  • Skill name and /slash-command
  • Trigger phrases
  • Brief description of what it does
  • Output location (if it produces files)

This isn't required for the skill to work, but it keeps your project organized and helps Claude understand how skills fit into your broader workflow.

Step 6: Test

Test both invocation methods:

  1. Natural language -- Say something matching the description. Does Claude load the skill?

- If not, revise the description field to include the keywords you used - Try 2-3 different phrasings to verify it triggers reliably

  1. Direct invocation -- Run /skill-name with test arguments

- Verify $ARGUMENTS / $N are substituting correctly - Check that outputs go where expected

  1. Edge cases -- Try invoking with missing arguments, unusual input, or empty input
  2. Character budget -- If you have many skills, run /context to confirm your skill's description is being loaded. If it's not, your total descriptions may exceed the budget (see reference.md for details).

If issues arise, see Troubleshooting in reference.md.

Complete Example

Here's a minimal but complete skill you can use as a starting template:

File: .claude/skills/meeting-notes/SKILL.md

---
name: meeting-notes
description: Use when someone asks to summarize meeting notes, recap a meeting, or format meeting minutes.
argument-hint: [topic or date]
---

## What This Skill Does

Takes raw meeting notes and produces a structured summary with action items.

## Steps

1. Ask the user to paste their raw meeting notes (or provide a file path).
2. Extract the following from the notes:
   - **Attendees** -- Who was in the meeting
   - **Key decisions** -- What was decided
   - **Action items** -- Who owes what, with deadlines if mentioned
   - **Open questions** -- Anything unresolved
3. Format the output using the template below.
4. If $ARGUMENTS is provided, use it as the meeting title. Otherwise, infer a title from the content.

## Output Template

# Meeting: [title]
**Date:** [date if mentioned, otherwise "Not specified"]
**Attendees:** [comma-separated list]

## Key Decisions
- [decision]

## Action Items
- [ ] [person]: [task] (due: [date or "TBD"])

## Open Questions
- [question]

## Notes

- Keep summaries concise. Don't add commentary or embellish.
- If notes are too vague to extract action items, flag that to the user instead of making them up.

Mode 2: Audit an Existing Skill

Use this checklist to audit any existing skill. Read the skill file first before running through the checklist. Fix issues before marking the audit complete.

Frontmatter Audit

  • name matches the directory name
  • description uses natural keywords someone would actually say when they need this skill
  • description is specific enough to avoid false triggers but broad enough to catch real requests
  • disable-model-invocation: true is set if the skill has side effects (generates files, calls APIs, sends messages, costs money)
  • argument-hint is set if the skill accepts arguments via /name
  • allowed-tools is set if the skill should NOT have access to all tools
  • context: fork is used if the skill is self-contained and produces verbose output
  • model is set only if a specific model capability is needed
  • No unnecessary fields are set (don't add frontmatter just because you can)

Content Audit

  • Total SKILL.md is under 500 lines (detailed reference moved to supporting files)
  • Clear step-by-step workflow with numbered steps (for task skills)
  • Output format is specified with templates or examples
  • All file paths and locations are documented
  • Agent delegation instructions include the actual prompt text to send
  • Notes section covers edge cases, constraints, and what NOT to do
  • No vague instructions -- every step tells Claude exactly what to do
  • String substitutions ($ARGUMENTS, $N) are used where the skill takes input

Integration Audit

  • Skill is documented in CLAUDE.md (recommended, not required)
  • Supporting files (if any) are referenced from SKILL.md, not orphaned
  • Scripts (if any) have correct file paths and are executable
  • API keys (if any) are stored in environment variables, never hardcoded

Quality Audit

  • A beginner could follow the instructions without prior context
  • Instructions are actionable, not abstract
  • Delegates to subagents when appropriate to keep main context clean
  • Doesn't duplicate information that lives elsewhere (CLAUDE.md, other skills)
  • Output paths follow a predictable convention

Optimization Opportunities

After running the audit, check reference.md for advanced features that could improve the skill: context: fork, allowed-tools, dynamic context injection, hooks, and supporting files.


Recommended Conventions

Adapt these to fit your project:

  • Skills live in .claude/skills/[skill-name]/SKILL.md
  • Output files go in a predictable location (e.g., output/[skill-name]/)
  • API keys go in environment variables, never hardcoded in skill files
  • Document all active skills in your project's CLAUDE.md
  • Frontmatter description is written as: "Use when someone asks to [action], [action], or [action]."

Important Notes

  • Always read an existing skill before optimizing it. Never propose changes to a skill you haven't read.
  • When building a new skill, check if a similar skill already exists that could be extended instead.
  • For advanced patterns (subagent execution, hooks, permissions), see reference.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.14%
按下载量换算39

Claude

31.95%
按下载量换算36

Cursor

18.11%
按下载量换算21

Gemini CLI

9.16%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/aiagentwithdhruv/skills --skill skill-builder 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills