跳到正文
cccskills
免费在 GitHub 公开中文介绍

gh-skill

使用 `gh skill` 搜索和预览 Agent Skills,指定代理与保存范围进行安装,更新已安装的技能,并检查仓库布局和 `SKILL.md` 元数据,准备在 GitHub 上发布可搜索的技能来源。

原文查看原文说明

Manage agent skills with gh skill. Use this skill to discover, preview, install, update, and publish Agent Skills so an agent can self-manage the skills available in its environment.

cli/cli星标 46,747(GitHub 46,747 + cccskills 0)

实测评分 未实测

查看安装方法

适用场景

  • 搜索并安装 GitHub 技能
  • 安装前查看技能内容
  • 批量更新已安装技能
  • 准备发布自己的技能仓库

中文介绍

功能

使用 gh skill 搜索 GitHub 上的 Agent Skills,查看技能内容,再进行安装和更新。安装时可以指定目标代理,以及将技能保存到当前项目还是用户范围。也可以将安装版本固定到标签、分支或提交,或从本地仓库安装。准备发布时,此技能会检查仓库中的技能目录结构和 SKILL.md 元数据,并介绍如何将仓库作为可搜索的技能来源发布到 GitHub。

适用场景

想从 GitHub 寻找技能,并在安装前检查内容时,可以使用它。需要在多个代理环境中使用不同技能、集中更新已安装的技能,或整理自己的技能仓库并准备发布时,也适用。

使用示例

  • “搜索适合校对文章的技能,并查看候选技能的内容。”
  • “为 Codex 安装这个技能,并固定到指定版本。”
  • “检查这个仓库里的技能是否符合发布条件。”

注意事项

安装时需要指定目标代理。发布操作会涉及 GitHub 仓库,并且发布流程需要指定标签。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
B部分不足发布会推送提交并创建版本,确认保护措施说明有限。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足默认已有 `gh skill` 和目标代理,但未提供安装步骤。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月26日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(1)

  • SKILL.md3.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Managing skills with gh skill

gh skill installs, previews, searches, updates, and publishes Agent Skills. An agent can use it to keep its own skill set in sync with one or more GitHub repositories.

The command is also aliased as gh skills. Prefer the canonical singular gh skill in scripts and docs.

Search

gh skill search <query>                                  # free-text search
gh skill search <query> --owner <org>                    # restrict to one owner
gh skill search <query> --limit 20 --page 2
gh skill search <query> --json skillName,repo,description

Preview before installing

gh skill preview <owner>/<repo> <skill-name>
gh skill preview <owner>/<repo> <skill-name>@v1.2.0   # pin a version

Install

gh skill install <owner>/<repo> <skill-name>
gh skill install <owner>/<repo> <skill-name>@v1.2.0
gh skill install <owner>/<repo> skills/<scope>/<skill-name>   # exact path, fastest
gh skill install ./local-skills-repo --from-local

<owner>/<repo> and <skill-name> are both required.

Useful flags:

  • --agent <id> - target host (e.g. github-copilot, claude-code, cursor, codex, gemini-cli). Repeat for multiple. Default is github-copilot when non-interactive. You should know what agent you are, so set this appropriately to install for yourself.
  • --scope project|user - project (default) writes inside the current git repo; user writes to the home directory and applies everywhere.
  • --pin <ref> - pin to a tag, branch, or commit SHA. Mutually exclusive with --from-local and with inline @version syntax.
  • --allow-hidden-dirs - also discover skills under dot-directories such as .claude/skills/. Don't use this unless you need to, it comes with risks.
  • --force - overwrite an existing install.

Update

gh skill update --all          # update every installed skill
gh skill update <skill>        # update one
gh skill update <skill> --force
gh skill update --unpin        # drop the pin and move to latest

Publish

Publishing turns a repo into a discoverable skill source. Skills are discovered with these conventions:

  • skills/<name>/SKILL.md
  • skills/<scope>/<name>/SKILL.md
  • <name>/SKILL.md (root-level)
  • plugins/<scope>/skills/<name>/SKILL.md

Each SKILL.md needs YAML frontmatter:

---
name: my-skill                # must equal the directory name
description: One sentence...  # required, recommended <= 1024 chars
license: MIT                  # optional but recommended
---

Validate, then publish

gh skill publish --dry-run                 # validate only, no release
gh skill publish --dry-run ./path/to/repo  # validate a specific dir
gh skill publish --fix                     # auto-strip install metadata
gh skill publish --tag v1.0.0              # non-interactive publish
gh skill publish                           # interactive publish flow

--fix and --dry-run are mutually exclusive. --fix only rewrites install-injected metadata.github-* keys and does not publish; commit the result and re-run publish.

The publish flow will:

  1. Add the agent-skills topic to the repo (so search can find it).
  2. Use --tag (or prompt for one in a TTY).
  3. Auto-push any unpushed commits.
  4. Create a GitHub release with auto-generated notes.

Always pass --tag so it doesn't fall through to the interactive flow.

Self-management pattern for agents

A reasonable loop:

  1. gh skill search <topic> --json skillName,repo,namespace
  2. gh skill preview <repo> <skill> to inspect the SKILL.md.
  3. gh skill install <repo> <skill> --agent <host> --pin <ref> for a reproducible install.
  4. Periodically gh skill update --all to refresh.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

agentic-workflows

免费有简介

此技能识别 GitHub Agentic Workflows 相关请求的类型,并引导代理读取对应提示或技能文件,涵盖设计、创建、配置、更新、调试和升级。

  • 设计或创建新工作流
  • 更新现有工作流
  • 调查工作流错误
cli/cli4.7万2026年10月25日 更新

Exercise a real command-line program with specified cases or a stated goal, then capture and verify the observed behavior. It produces local media evidence such as a session video, helping reviewers see what the command did without treating the recording as proof of general correctness.

中文简介正在准备中。当前显示英语简介。

  • Record specified CLI test cases
  • Demonstrate a command’s behavior
  • Validate an interactive terminal workflow
cli/cli4.7万2026年10月25日 更新

cli-exercise-evidence

免费有简介

将命令行练习的预期与记录证据逐项核对,按需渲染并检查媒体,返回各案例结果和本地成果文件路径;默认不发布证据。

  • 核验命令行练习的预期
  • 从录制内容生成视频证据
  • 检查视频或屏幕内容
cli/cli4.7万2026年10月25日 更新

cli-exercise-exact

免费有简介

此技能按原样执行指定的命令行测试,保留命令、输入、顺序和预期条件;逐项准备、操作并验证,再依据实际证据标记通过、失败、受阻或仅作观察。

  • 按原样执行命令行测试
  • 保留输入值和案例顺序
  • 对照预期与实际输出
cli/cli4.7万2026年10月25日 更新

cli-exercise-explore

免费有简介

此技能根据目标和已批准的范围选择可观察的命令行检查,逐项完成准备、操作和即时验证,并整理证据、尚未达到的行为及检查结果。

  • 按目标检查命令行操作
  • 明确上传完成的判断条件
  • 逐项准备并验证操作
cli/cli4.7万2026年10月25日 更新

cli-exercise-preflight

免费有简介

这是供 `cli-exercise` 内部使用的准备检查模块,用于核验构建、终端和媒体工具是否可用;缺少依赖时先征得安装同意,安装后重新检查。

  • 录制前检查所需工具
  • 检查视频或 GIF 输出能力
  • 查看缺失依赖的安装步骤
cli/cli4.7万2026年10月25日 更新

查看 cli 的全部技能

报告此技能的问题