360 Secure SkillHub
360 安全技能中心

Verify Publish CH

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

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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