360 Secure SkillHub
360 安全技能中心

Verify Publish CH

验证 ClawHub CLI 发布流水线:检查 ApiV1PublishResponseSchema 对同步与异步响应格式的兼容、clawhub skill publish 命令的 JSON 与默认输出,以及 clawhub_client.py 对 acceptLicenseTerms 和异步响应的处理。

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

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add changhui123456/verify-publish-ch
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
verify-publish
version
2.0.0
description
Verification test for ClawHub CLI publish async schema fix
tags
["testing","ci-cd"]

Verify Publish Skill

Overview

This skill provides comprehensive verification capabilities for the ClawHub CLI publish pipeline after the async API response schema fix. It validates that the CLI correctly handles both the legacy synchronous format {skillId, versionId} and the new asynchronous format {status, attemptId, slug, version}.

Architecture

The verification operates in three phases:

  1. Schema validation - Confirms ApiV1PublishResponseSchema accepts both response formats
  2. CLI integration - Tests clawhub skill publish command with --json and default output
  3. Python client - Validates clawhub_client.py handles acceptLicenseTerms and async responses

Commands

Publish a Skill (CLI)

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

Publish with JSON Output

clawhub skill publish ./my-skill \
  --slug my-skill \
  --name "My Skill" \
  --version 1.0.0 \
  --json

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
skillId: invalid value CLI schema mismatch with API Update CLI or patch schemas.js
Skill content is too thin Insufficient documentation Add meaningful content to SKILL.md

Changelog

2.0.0

  • Full verification suite for async schema fix
  • Comprehensive error handling documentation
  • Configuration reference table