Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计通过

skill-registry-sync技能注册表同步

Agent Skill

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

总安装

188

周安装

8

GitHub Stars

2

下载量

66
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/benjaminwestern/google-engineer-skills --skill skill-registry-sync

简介

用于处理 GitHub 仓库及协作元数据的同步管理。

  • 适合维护本地技能注册表与远程仓库的一致性。
  • 通过 npx 从 GitHub 安装,兼容多种 AI 编程工具。
  • 需授权访问目标仓库以完成同步操作。skill-registry-sync 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 频繁同步可能受 API 速率限制影响,应注意控制频率。

SKILL.md

Skill Registry Sync

Synchronise external skill repository references in README.md based on installed skills from .skill-lock.json.

Quick Start

# Sync references using default lock file path
npx opencode -s skill-registry-sync sync

# Sync with custom lock file path
npx opencode -s skill-registry-sync sync --lock-file /path/to/.skill-lock.json

# Sync with custom README path
npx opencode -s skill-registry-sync sync --readme /path/to/README.md

How It Works

This skill:

  1. Reads the .skill-lock.json file (or path you specify)
  2. Extracts all unique sourceUrl values from installed skills
  3. Updates the "Other Skill Registries" section in README.md
  4. Adds any missing repository URLs as npx skills add commands

Commands

sync

Synchronise README.md with installed skills from lock file.

# Default usage - uses ~/.agents/.skill-lock.json and ./README.md
skill-registry-sync sync

# Custom lock file path
skill-registry-sync sync --lock-file /custom/path/.skill-lock.json

# Custom README path
skill-registry-sync sync --readme /custom/path/README.md

# Both custom paths
skill-registry-sync sync --lock-file /custom/lock.json --readme /docs/README.md

Examples

Example 1: Basic Sync

After installing new skills from external repositories, update README references:

# Install skills from various repositories
npx skills add https://github.com/googleworkspace/cli
npx skills add https://github.com/google-gemini/gemini-skills

# Sync references to README
skill-registry-sync sync

Example 2: Manual Lock File Analysis

Extract unique source URLs manually using jq:

# Extract all unique source URLs
cat ~/.agents/.skill-lock.json | jq -r '.skills[].sourceUrl' | sort -u

# Count skills per source
cat ~/.agents/.skill-lock.json | jq -r '.skills[].source' | sort | uniq -c

# Get skills from specific source
cat ~/.agents/.skill-lock.json | jq -r '.skills | to_entries[] | select(.value.source == "googleworkspace/cli") | .key'

Implementation

Using jq to Parse Lock File

The skill uses the jq-tooling skill to parse .skill-lock.json:

# Extract unique source URLs
cat ~/.agents/.skill-lock.json | jq -r '.skills[].sourceUrl' | sort -u

# Output format:
# https://github.com/googleworkspace/cli.git
# https://github.com/google-gemini/gemini-skills.git
# https://github.com/google-gemini/gemini-cli.git
# https://github.com/google-labs-code/stitch-skills.git
# https://github.com/vercel-labs/skills.git

README.md Section Format

The skill updates the "Other Skill Registries" section:

### Other Skill Registries

Expand your agent's toolkit with these supplementary skill collections:
- 📦 `npx skills add https://github.com/google-gemini/gemini-skills`
- ⚛️ `npx skills add https://github.com/google-labs-code/stitch-skills --skill react:components`
- 🛠️ `npx skills add https://github.com/google-gemini/gemini-cli`
- 🏢 `npx skills add https://github.com/googleworkspace/cli`
- 📦 `npx skills add https://github.com/vercel-labs/skills`

Common Workflows

Workflow 1: After Installing New Skills

# 1. Install new skills from external repo
npx skills add https://github.com/example/new-skills-repo

# 2. Sync references to README
skill-registry-sync sync

# 3. Review changes
git diff README.md

# 4. Commit updates
git add README.md && git commit -m "docs: add new skill registry reference"

Workflow 2: Audit External Dependencies

# List all external skill sources
cat ~/.agents/.skill-lock.json | jq -r '.skills[].sourceUrl' | sort -u

# Identify which skills come from external repos (not local)
cat ~/.agents/.skill-lock.json | jq -r '.skills | to_entries[] | select(.value.source != "benjaminwestern/google-engineer-skills") | [.key, .value.source] | @tsv'

Workflow 3: Generate Custom Reference Documentation

# Create a custom markdown file with all skill sources
cat ~/.agents/.skill-lock.json | jq -r '
  [.skills[].sourceUrl] | unique |
  "## External Skill Registries\n\n" +
  (map("- `npx skills add " + . | rtrimstr(".git") + "`") | join("\n"))
' > SKILL_SOURCES.md

Tips and Best Practices

Run After Skill Installation

Always sync after installing skills from new repositories to keep documentation accurate:

npx skills add https://github.com/org/new-skills
skill-registry-sync sync

Verify Before Committing

Review changes before committing:

skill-registry-sync sync
git diff README.md

Handle Multiple Lock Files

If you have multiple environments or configurations:

# Production environment
skill-registry-sync sync --lock-file ~/.agents/prod/.skill-lock.json --readme README.prod.md

# Development environment
skill-registry-sync sync --lock-file ~/.agents/dev/.skill-lock.json --readme README.dev.md

Ignore Local Skills

The skill automatically filters out local skills (from the current repository) and only includes external registries in the references section.

Troubleshooting

Lock file not found

# Specify correct path
skill-registry-sync sync --lock-file /correct/path/.skill-lock.json

No changes detected

If no external skills are installed, the section will remain unchanged. Install some external skills first:

npx skills add https://github.com/googleworkspace/cli
skill-registry-sync sync

Duplicate entries

The skill automatically deduplicates URLs. If you see duplicates, ensure you're using the latest version.

Related Skills

SkillPurpose
jq-toolingParse and query JSON data including.skill-lock.json
playwright-cliCrawl documentation for creating new skills
skill-crawlerConvert crawled docs into opencode skills

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

31.69%
按下载量换算21

Claude

32.2%
按下载量换算21

Cursor

17.42%
按下载量换算11

Gemini CLI

9.35%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills