360 Secure SkillHub
360 安全技能中心

Test Publish CH

该 Skill 通过 ClawHub CLI 指导检查令牌与连通性、以 multipart 格式发布技能,并核验发布后的元数据和版本,同时给出认证、许可证和 API 错误的处理建议。

changhui123456
changhui123456
热度 8.83
最近更新 2026-07-08 07:34:35
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / API 集成 / 自动化脚本 / 工作流 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add test-publish-ch
Metadata
name
test-publish-skill
version
1.0.0
description
A comprehensive test skill for verifying ClawHub publish pipeline functionality
tags
["testing","pipeline","ci-cd"]

Test Publish Skill

Overview

This skill provides comprehensive testing and validation capabilities for the ClawHub skill publishing pipeline. It verifies API connectivity, token authentication, multipart upload format, and license acceptance status.

Architecture

The skill operates in three phases:

  1. Pre-flight checks - Validates token, connectivity, and configuration
  2. Upload validation - Confirms multipart/form-data format and file integrity
  3. Post-publish verification - Checks published skill metadata and version

Commands

Check Token Status

clawhub whoami

Publish a Skill

clawhub skill publish ./my-skill \
  --slug my-skill \
  --name "My Skill" \
  --version 1.0.0 \
  --changelog "Initial release"

Device Flow Login

clawhub login --device --no-browser

Configuration

Variable Description Default
CLAWHUB_REGISTRY Registry API base URL https://clawhub.ai
CLAWHUB_CONFIG_PATH Token config file path ~/.config/clawhub/config.json
CLAWHUB_DISABLE_TELEMETRY Disable install telemetry unset

Error Handling

Error Cause Resolution
401 Unauthorized Invalid or revoked token Run clawhub login
license terms must be accepted Account has not accepted MIT-0 Complete browser login at clawhub.ai
skillId: invalid value API response parsing issue Check CLI version and API compatibility

Changelog

1.0.0

  • Initial release with full pipeline validation
  • Device flow authentication support
  • Comprehensive error handling and diagnostics