跳到主内容
智客 ZICQ

技能库 智客分类:Agent 工作流 skills-updater

Skills Updater

检查和更新已安装 来自多来源的克洛德代码技能(克洛德插件和npx技能). 扫描可用更新,支持批量或单个更新,同时进行智能本地变化合并,并从technologymp.com和technology.sh市场推荐流行技能. 当用户想要更新技能,检查新版本,发现趋势技能,或管理技能收集时使用.

467 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

检查和更新已安装 来自多来源的克洛德代码技能(克洛德插件和npx技能). 对可用更新进行扫描,支持批量或单个更新与智能本地变化合并,并从willmp.com和技能推荐流行技能. 市场

何时用

用户想要更新技能,检查新版本,发现趋势技能,或管理其技能收集

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Skills Updater、Internationalization (i18n)、Supported Sources、Update Check Workflow、Step 1: Scan Installed Skills、Step 2: Confirm Update Strategy。 其中含规范建议的小节:分步指令。

文件分析

文件分析:除 SKILL.md 外,正文引用了 scripts/check_updates.py、scripts/update_marketplace.py、scripts/recommend_skills.py、scripts/i18n.py,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

Check and update installed Claude Code skills from multiple sources (Claude plugins and npx skills). Scans for available updates, supports batch or individual updates with intelligent local change merging, and recommends popular skills from skillsmp.com and skills.sh marketplaces. Use when users want to update skills, check for new versions, discover trending skills, or manage their skill collection.

Skills UpdaterInternationalization (i18n)Supported SourcesUpdate Check WorkflowStep 1: Scan Installed SkillsStep 2: Confirm Update StrategyStep 3: Handle Local ModificationsCheck if local skill has uncommitted changesStep 4: Execute UpdateTrigger marketplace refresh and skill reinstallThis uses Claude Code's built-in update mechanismAuto-Install After Marketplace Update

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
skills-updater
description
Check and update installed Claude Code skills from multiple sources (Claude plugins and npx skills). Scans for available updates, supports batch or individual updates with intelligent local change merging, and recommends popular skills from skillsmp.com and skills.sh marketplaces. Use when users want to update skills, check for new versions, discover trending skills, or manage their skill collection.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 4
  • scripts/check_updates.py
  • scripts/update_marketplace.py
  • scripts/recommend_skills.py
  • scripts/i18n.py

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「skills-updater」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-046407a0133d8a11-%E6%8A%80%E8%83%BD%E6%9B%B4%E6%96%B0%E5%99%A8.html
请存为 .cursor/skills/skills-updater/SKILL.md 或 .claude/skills/skills-updater/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/yizhiyanhua-ai/skills-updater 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/yizhiyanhua-ai/skills-updater' --list

npx skills add 'https://github.com/yizhiyanhua-ai/skills-updater' --skill 'skills-updater'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: skills-updater description: Check and update installed Claude Code skills from multiple sources (Claude plugins and npx skills). Scans for available updates, supports batch or individual updates with intelligent local change merging, and recommends popular skills from skillsmp.com and skills.sh marketplaces. Use when users want to update skills, check for new versions, discover trending skills, or manage their skill collection. --- # Skills Updater Manage, update, and discover Claude Code skills across multiple installation sources. ## Internationalization (i18n) All scripts automatically detect user locale from environment variables and display output in the appropriate language. **Supported Languages:** - English (en) - Default - Chinese (zh) - 中文 **Auto-detection order:** 1. `LANG` environment variable 2. `LC_ALL` environment variable 3. `LANGUAGE` environment variable 4. System locale **Manual override:** ```bash python scripts/check_updates.py --lang zh # Force Chinese python scripts/check_updates.py --lang en # Force English ``` ## Supported Sources **Claude Code Plugins** (`~/.claude/plugins/`): - `installed_plugins.json` - Tracks installed skills with versions - `known_marketplaces.json` - Registered marketplace sources - `cache/` - Installed skill files **npx skills** (`~/.skills/` if present): - Skills installed via `npx skills add ` - Managed by skills.sh infrastructure ## Update Check Workflow ### Step 1: Scan Installed Skills ```bash python scripts/check_updates.py ``` Output format: ``` 📦 Installed Skills Status ━━━━━━━━━━━━━━━━━━━━━━━━━━ ✅ Up-to-date (12): • skill-creator@daymade-skills (1.2.2) • github-ops@daymade-skills (1.0.0) ... ⬆️ Updates Available (3): • planning-with-files@planning-with-files Local: 2.5.0 → Remote: 2.6.1 • superpowers@superpowers-marketplace Local: 4.0.3 → Remote: 4.1.0 ... ⚠️ Unknown Version (2): • document-skills@anthropic-agent-skills (unknown) ... ``` ### Step 2: Confirm Update Strategy Present options to user: 1. **Update All** - Update all skills with available updates 2. **Select Individual** - Let user choose specific skills to update 3. **Skip** - Cancel the update process ### Step 3: Handle Local Modifications Before updating, check for local modifications: ```bash # Check if local skill has uncommitted changes cd ~/.claude/plugins/cache/// git status --porcelain ``` **If local changes detected:** 1. Create backup of modified files 2. Pull remote updates 3. Attempt 3-way merge 4. If conflicts: - Show conflict files to user - Offer manual resolution or keep local version ### Step 4: Execute Update For Claude Code plugins: ```bash # Trigger marketplace refresh and skill reinstall # This uses Claude Code's built-in update mechanism claude /install @ ``` For npx skills: ```bash npx skills add --force ``` ## Auto-Install After Marketplace Update The `update_marketplace.py` script can automatically reinstall affected skills after updating a marketplace repository. ### Usage ```bash # Update marketplace only (show affected skills) python scripts/update_marketplace.py anthropic-agent-skills # Update marketplace AND auto-reinstall affected skills python scripts/update_marketplace.py anthropic-agent-skills --auto-install # Output as JSON python scripts/update_marketplace.py anthropic-agent-skills --json # Force language python scripts/update_marketplace.py anthropic-agent-skills --lang zh ``` ### Output (Chinese locale) ``` 📡 正在获取远程更新... 当前提交: e5c60158df67 远程提交: 69c0b1a06741 状态: 落后 6 个提交 📝 更新内容: • 69c0b1a Add link to Agent Skills specification website • be229a5 Fix links in agent skills specification ... 📦 受影响的技能: document-skills 📥 正在更新市场: anthropic-agent-skills ✅ 市场更新成功 🔄 正在重新安装受影响的技能... 正在安装: document-skills ✅ 已安装: document-skills ✅ 所有受影响的技能已更新 ``` ### Workflow 1. **Fetch remote** - Git fetch to check for updates 2. **Compare commits** - Show how many commits behind 3. **List affected skills** - Find installed skills from this marketplace 4. **Pull updates** - Git pull to update local marketplace 5. **Auto-reinstall** - (with `--auto-install`) Reinstall each affected skill ## Skill Recommendations ### Fetch Trending Skills ```bash python scripts/recommend_skills.py --source all ``` Sources: - **skills.sh** - Leaderboard ranked by installs - **skillsmp.com** - Curated marketplace (if accessible) ### Output Format ``` 🔥 Trending Skills ━━━━━━━━━━━━━━━━━━ From skills.sh: 1. vercel-react-best-practices (25.5K installs) npx skills add vercel/react-best-practices 2. web-design-guidelines (19.2K installs) npx skills add webdesign/guidelines 3. remotion-best-practices (2.2K installs) npx skills add remotion/best-practices 💡 Personalized Recommendations: Based on your installed skills (developer-tools, productivity): - playwright-skill - Browser automation testing - github-ops - GitHub CLI operations ``` ### Install Recommended Skill After showing recommendations, offer to install: ``` Would you like to install any of these skills? 1. Install by number (e.g., "1" or "1,3,5") 2. Install by name 3. Skip ``` ## Version Detection Methods ### Primary: marketplace.json Read version from remote marketplace.json: ```bash curl -s "https://raw.githubusercontent.com///main/.claude-plugin/marketplace.json" | jq '.plugins[] | select(.name == "") | .version' ``` ### Fallback: GitHub API If marketplace.json unavailable or version not specified: ```bash # Get latest release tag curl -s "https://api.github.com/repos///releases/latest" | jq -r '.tag_name' # Or latest commit on main curl -s "https://api.github.com/repos///commits/main" | jq -r '.sha[:7]' ``` ### Commit SHA Comparison For skills tracking by commit (e.g., `e30768372b41`): ```bash # Compare local gitCommitSha with remote HEAD local_sha=$(jq -r '.plugins[""][0].gitCommitSha' ~/.claude/plugins/installed_plugins.json) remote_sha=$(curl -s "https://api.github.com/repos///commits/main" | jq -r '.sha') if [ "$local_sha" != "$remote_sha" ]; then echo "Update available" fi ``` ## Smart Merge Strategy When local modifications exist: 1. **Identify modified files**: ```bash git diff --name-only HEAD ``` 2. **Categorize changes**: - SKILL.md customizations → Preserve user sections - scripts/ modifications → Keep local, note for review - references/ additions → Merge both - assets/ → Keep both versions if different 3. **Merge approach**: ```python # Pseudo-code for smart merge for file in modified_files: if file == 'SKILL.md': merge_skill_md(local, remote) # Preserve user customizations elif file.startswith('scripts/'): backup_and_warn(local) # User scripts need review else: three_way_merge(base, local, remote) ``` ## User Interaction Patterns ### Check for Updates User says: "检查 skills 更新" / "check skill updates" / "update my skills" → Run `scripts/check_updates.py` and display results ### Update Specific Skill User says: "更新 skill-creator" / "update skill-creator" → Check and update only the specified skill ### Discover New Skills User says: "推荐一些好用的 skills" / "recommend skills" / "popular skills" → Run `scripts/recommend_skills.py` and show curated list ### Full Update Workflow User says: "更新所有 skills" / "update all skills" → Scan → Confirm → Handle merges → Update → Report results ## Error Handling **Network errors**: Retry with exponential backoff, cache last known state **Permission errors**: Suggest running with appropriate permissions **Merge conflicts**: Show conflict markers, offer resolution options: - Accept local (keep your changes) - Accept remote (use upstream) - Manual merge (show diff) **Missing marketplace**: Inform user if source is no longer available ## Resources ### scripts/ - `check_updates.py` - Scan and compare installed vs remote versions - `recommend_skills.py` - Fetch trending skills from marketplaces - `update_marketplace.py` - Update marketplace repos and auto-reinstall skills - `i18n.py` - Internationalization module (locale detection, translations) ### references/ - `marketplaces.md` - Supported marketplace documentation ## Adding New Languages To add a new language, edit `scripts/i18n.py`: 1. Add translations to `TRANSLATIONS` dict: ```python TRANSLATIONS["ja"] = { "checking_updates": "スキルの更新を確認中...", # ... other translations } ``` 2. Update `detect_locale()` to recognize the new locale: ```python if lang_lower.startswith('ja'): return 'ja' ```

相关技能

Agent 工作流

Skill Creator

创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.

Agent 工作流

Clawdhub

使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.

Agent 工作流

Agent Team Orchestration

管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.

Agent 工作流

Superpowers

Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…