Token导航 LogoToken导航TokenDH.com
开发external-servicegithub未标认证来源可访问许可证需确认审计提醒

add-skill添加技能

Agent Skill

add-skill 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

222

周安装

9

GitHub Stars

公开资料未说明

下载量

70
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/diegocanepa/agent-skills --skill add-skill

简介

add-skill 可将当前对话中的解决方案提炼为可复用的技能模板。

  • 适用于保存已解决问题、新工作流程或集成方法时调用。
  • 自动引导命名、描述和功能定义,并提交至共享仓库。
  • 需用户提供技能名称(kebab-case)和一句话功能说明方可执行。
  • add-skill 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

➕ Add Skill from Conversation

Distill a reusable pattern or solution from the current conversation into a new skill and submit it to the shared repository.

When to Use

Use this skill when:

  • You've solved a problem an agent will likely encounter again.
  • The user says "save this as a skill", "add this to our skills", or similar.
  • A new workflow, pattern, or integration approach has been developed.

Workflow

Step 1: Identify the Skill

Ask the user (if not already clear):

  • Name: What should this skill be called? (use kebab-case, e.g. postgres-migrations)
  • Description: One sentence — what does the skill do and when should an agent use it?
  • Category for docs/SKILLS.md: Orchestration / Development / VCS / Utilities?

Step 2: Extract Key Learnings from the Conversation

Review the conversation and extract:

  • The problem that was solved.
  • The approach or solution (tools, patterns, steps).
  • Any caveats, edge cases, or prerequisites.

Present a brief summary to the user before writing the file.

Step 3: Create the Skill using skill-creator

Use the skill-creator skill to scaffold and write the SKILL.md content for skills/<skill-name>/SKILL.md.

The skill-creator will guide the structure. Make sure the generated SKILL.md includes:

  • name and description frontmatter fields (required by the CLI).
  • Self-contained instructions that an agent can follow without prior context.
  • Relative links to other skills if applicable (e.g. [vcs-commit](../vcs-commit/SKILL.md)).

Quality check before proceeding:

Skill Content Review:
- [ ] Frontmatter has `name` and `description`
- [ ] Instructions are self-contained and clear
- [ ] No hardcoded values that should be user-configurable
- [ ] Links to other skills use relative paths
- [ ] An agent could follow this with no prior context

If any check fails → improve the content → re-check.

Step 4: Create the Branch

Use vcs-branch:

feat/add-skill-<skill-name>

Step 5: Commit and Push

Commit using vcs-commit:

git add skills/<skill-name>/SKILL.md
git commit -m "feat(skills): add <skill-name> skill"
git push -u origin feat/add-skill-<skill-name>

Step 6: Update the Skill Catalog

Add the new entry to docs/SKILLS.md under the appropriate category:

| **[<skill-name>](../skills/<skill-name>/SKILL.md)** | <description> |

Commit this as part of the same or a follow-up commit.

Step 7: Create the Pull Request

Use vcs-change-request to open a PR via the GitHub MCP against the skills repository:

  • Owner: diegocanepa
  • Repo: agent-skills
  • URL: https://github.com/diegocanepa/agent-skills
  • Head branch: feat/add-skill-<skill-name>
  • Base branch: main

PR description template:

## Summary

Adds a new skill: **<skill-name>**

<Description of what the skill does and when to use it.>

## Checklist
- [ ] Frontmatter with `name` and `description`
- [ ] Added to `docs/SKILLS.md`
- [ ] Instructions are self-contained

Step 8: MITM — Confirm with User

"The skill <skill-name> is ready and the PR has been submitted. Does the content look correct?"

Feedback Loop: If the USER wants to refine → update the file → amend/push → re-present.


Notes

  • Never push directly to main.
  • The skill file must be self-contained — the entire diegocanepa/agent-skills repo can be installed by anyone, so no project-specific assumptions.
  • The description frontmatter is the most important field — it's what the agent scans to decide whether to use the skill.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.33%
按下载量换算23

Claude

31.55%
按下载量换算22

Cursor

19.18%
按下载量换算13

Gemini CLI

8.98%
按下载量换算6

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills