微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🦀

官方技能仓库 CLI 管理工具

Clawhub Cli · v1.0.0
开发 安全 S+ 级 作者 openlang-cn 公开目录收录
2.4k 下载 5 安装 7.1k 收藏 17 浏览

简介

ClawHub 官方 CLI 工具,支持技能搜索、安装、更新与发布,npm 全局安装,需登录使用

原始描述

Use the ClawHub CLI to search, install, update, and publish agent skills from clawhub.ai. Use when you need to fetch new skills on the fly, sync installed sk...

通过你的 Agent 添加

安装目录:clawhub-cli/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/clawhub-cli/
Codex CLI~/.codex/skills/clawhub-cli/
DeepSeek Harness~/.agents/skills/clawhub-cli/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

ClawHub CLI Helper 是一款纯文档型 Skill,专为指导用户使用 ClawHub CLI 工具而设计。它不包含任何可执行代码,仅通过结构化的 Markdown 文档提供完整的 CLI 操作指南。核心工作流程涵盖五大场景:

  1. 技能搜索:通过 clawhub search "query" 使用自然语言或关键词发现所需技能
  2. 技能安装:clawhub install <skill-slug> 将技能安装至工作区的 skills 目录,支持指定版本号
  3. 版本管理:clawhub list 查看已安装技能,clawhub update 实现单技能或全量更新
  4. 技能发布:clawhub publish 将本地技能文件夹(需含 SKILL.md)发布至 ClawHub 公共仓库
  5. 批量同步:clawhub sync --all 实现多技能批量管理,支持 --dry-run 预览变更

所有命令均需预先通过 npm/pnpm 全局安装 CLI 并完成 clawhub login 身份验证。

显著优点

极致安全性:S+ 安全评级,零可执行代码设计从根本上杜绝了代码注入、远程执行等攻击向量。所有 bash 代码块均为不可执行的文档示例,通过静态分析 100% 合规验证。

生态整合能力:深度绑定 ClawHub 官方平台(clawhub.ai),无缝对接 npm 生态,支持语义化版本控制(semver),满足企业级依赖管理需求。

操作完备性:覆盖 Skill 全生命周期管理——从发现、安装、版本锁定到发布回传,形成完整闭环。--dry-run、--changelog、--bump 等高级标志满足 CI/CD 自动化场景。

零维护成本:无第三方依赖,无运行时环境要求,不存在依赖冲突或版本漂移问题。

潜在缺点与局限性

功能边界受限:作为纯文档型 Skill,它本身不执行任何操作,仅生成 CLI 命令建议。用户必须自行在终端中执行这些命令,无法提供"一键安装"的端到端体验。

平台绑定深度:完整功能强依赖 ClawHub CLI 工具链及 clawhub.ai 服务可用性。若官方服务变更 API 或认证机制,文档存在滞后风险。

交互式场景覆盖不足:对于登录态过期、版本冲突解决、slug 命名协商等需要人工判断的场景,文档仅提供故障排查指引,无法主动感知或自动修复。

T3 来源可信度:维护者 openlang-cn 为社区项目,虽经安全扫描无恶意代码,但用户需自行评估其长期维护承诺与平台背书强度。

适合的目标群体

  • ClawHub 生态开发者:需要频繁发布、迭代个人或团队 Skills 的创作者
  • DevOps/平台工程师:负责企业内 Agent 技能仓库标准化管理的运维人员
  • 技术团队 Lead:需要为团队建立统一的技能安装规范和版本锁定策略
  • AI Agent 应用架构师:设计可插拔技能系统的技术决策者
  • 开源贡献者:希望将实用工具回馈 ClawHub 社区的外部开发者

常规使用风险

CLI 环境依赖:用户环境中 Node.js/npm 版本、全局包权限配置差异可能导致 clawhub 命令不可用,需预留环境排查时间。

认证令牌管理:clawhub login --token 涉及 API Token 传输,建议通过环境变量或密钥管理工具注入,避免命令历史泄露。

版本语义理解:--version 与 --bump 的交互逻辑(显式指定 vs 自动递增)易混淆,误操作可能导致意外版本跳跃或锁定失败。

网络与平台可用性:clawhub.ai 服务中断、npm registry 延迟或企业防火墙策略均可能阻断技能拉取流程。

发布权限风险:clawhub publish 操作不可逆(或需手动回撤),slug 命名冲突、版本重复上传将触发失败,需提前执行 --dry-run 验证。

技能正文


name: clawhub-cli description: Use the ClawHub CLI to search, install, update, and publish agent skills from clawhub.ai. Use when you need to fetch new skills on the fly, sync installed skills to the latest or a specific version, or publish new or updated skill folders with the npm-installed ClawHub CLI.

ClawHub CLI Helper

This skill guides the agent on how to use the ClawHub CLI to manage skills from the public ClawHub registry.

When to Use

Use this skill when:

  • The user wants to search for skills on ClawHub by name or natural language.
  • The user wants to install a skill from ClawHub into a local workspace.
  • The user wants to update installed skills to the latest or a specific version.
  • The user wants to publish or sync local skill folders to ClawHub.

Requirements

  • ClawHub CLI installed globally, for example:
npm i -g clawhub

or

pnpm add -g clawhub
  • User is logged in:
clawhub login

or

clawhub login --token <api-token>

Common Workflows

Search for skills

When the user wants to discover skills (for example "Postgres backup", "Git tools"):

clawhub search "your query"

You can suggest concrete queries or slugs based on what the user describes.

Install a skill

To install a skill by slug into the current workspace (default skills directory under workdir):

clawhub install <skill-slug>

Examples:

clawhub install postgres-backup-tools

Use --version <semver> if the user needs a specific version instead of latest.

List installed skills

To show what is currently installed according to the ClawHub lockfile:

clawhub list

Update installed skills

To update all installed skills to their latest tagged versions:

clawhub update --all

To update a single skill:

clawhub update <skill-slug>

Use --version <semver> if the user needs to pin a specific version.

Publish a single local skill

Given a local skill folder with a SKILL.md, for example skills/my-skill, recommend a command like:

clawhub publish ./skills/my-skill \
  --slug my-skill \
  --name "My Skill" \
  --version 0.1.0 \
  --tags latest

Adjust:

  • ./skills/my-skill to the user’s actual folder path.
  • slug to a unique, lowercase, hyphenated identifier.
  • version to a valid semver string (0.1.0, 1.0.0, etc.).
  • tags to appropriate labels (latest, beta, internal, and so on).

Sync many skills at once

If the user has many skill folders under a root (for example skills/), suggest:

clawhub sync --all

Optional flags:

  • --tags latest to tag new/updated versions.
  • --changelog "Update skills" in non-interactive runs.
  • --bump patch|minor|major for automatic version increments on existing skills.
  • --dry-run to see what would be uploaded without actually publishing.

Verification and Troubleshooting

After suggesting commands:

  • Ask the user to check CLI output for errors.
  • For publish/sync, optionally suggest:
    • clawhub list to verify local records.
    • Opening clawhub.ai and searching by slug or display name.
  • If an error occurs (for example slug already exists, version conflict, not logged in), explain what it means and propose a corrected command (new slug, bumped version, or re-login).

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

clipackage-managerskill-registrydeveloper-toolsautomationversion-control

同类 Skill