360 Secure SkillHub
360 安全技能中心

Test Publish CH

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

分类:开发
dev-skills-operator
dev-skills-operator
热度 0.00
最近更新 2026-07-08 07:34:35

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add changhui123456/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