Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计提醒

add-skill添加技能

Agent Skill

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

总安装

870

周安装

37

GitHub Stars

76

下载量

305
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/htlin222/dotfiles --skill add-skill

简介

用于创建新的 Claude Code 技能,基于官方文档生成标准结构文件。

  • 适合开发者快速构建符合规范的本地技能模板,减少重复工作。
  • 自动提取技能格式要求,引导用户填写名称、用途和触发条件。
  • 需联网获取最新文档,确保生成的技能与当前系统兼容。
  • add-skill 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Add Skill (Meta Skill)

Create new Claude Code skills by fetching the latest official documentation and generating properly structured skill files.

Workflow

Step 1: Fetch Latest Documentation

Always fetch official docs first to ensure compliance with current spec:

WebFetch: https://code.claude.com/docs/en/skills
Prompt: Extract skill file format, required fields, naming rules, and best practices

If WebFetch fails due to length, use WebSearch:

WebSearch: "Claude Code skills SKILL.md format site:code.claude.com"

Step 2: Gather Requirements

Ask user (use AskUserQuestion tool):

  1. Name: What should this skill be called? (lowercase, hyphens only)
  2. Purpose: What does it do? (1-2 sentences)
  3. Trigger: When should Claude use it? (keywords, scenarios)
  4. Complexity: Does it need scripts, or just instructions?

Step 3: Create Skill Structure

~/.claude/skills/{skill-name}/
├── SKILL.md           # Required: Main instructions
├── scripts/           # Optional: Executable code
└── references/        # Optional: Detailed documentation

Step 4: Generate SKILL.md

Use this template:

---
name: {skill-name}
description: {What it does}. Use when {trigger conditions}.
---

# {Skill Title}

{Brief overview - what this skill helps accomplish}

## When to Use

- {Scenario 1}
- {Scenario 2}

## Instructions

{Step-by-step guidance for Claude to follow}

## Examples

**Input:** {example user request}
**Output:** {expected Claude behavior}

Step 5: Validate

Before creating, verify:

  • Name: 1-64 chars, lowercase letters/numbers/hyphens only
  • Name: No leading/trailing -, no consecutive --
  • Description: States WHAT + WHEN clearly
  • SKILL.md: Under 500 lines (put details in references/)
  • Directory name matches name field exactly

Step 6: Create Files

mkdir -p ~/.claude/skills/{skill-name}
# Write SKILL.md using Write tool

Step 7: Verify

ls -la ~/.claude/skills/{skill-name}/
cat ~/.claude/skills/{skill-name}/SKILL.md

Test with: claude --debug to check for loading errors.

Naming Rules

RuleValidInvalid
Lowercase onlymy-skillMy-Skill
Hyphens OKtest-runnertest_runner
Numbers OKv2-helper-
No leading/trailing hyphenskill-skill-
No consecutive hyphensmy-skillmy--skill
1-64 charactersa to 64 charsempty or 65+

Best Practices

  1. Description is key: Claude uses it to decide when to invoke the skill
  2. Progressive disclosure: Keep SKILL.md light, put reference docs in references/
  3. Always include examples: Shows expected input/output
  4. Scripts must be referenced: Mention them explicitly in SKILL.md
  5. Test immediately: Use claude /your-skill to verify

Quick Mode

For rapid creation, user can provide all info at once:

/add-skill name=my-skill purpose="Does X" trigger="when user asks for Y"

Parse and generate without interactive prompts.

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

30.92%
按下载量换算94

Gemini CLI

22.42%
按下载量换算68

windsurf

18.19%
按下载量换算55

Antigravity

11.78%
按下载量换算36

OpenCode

7.92%
按下载量换算24

Cursor

3.61%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills